Skip to content

Commit 2e1d754

Browse files
committed
Simplified loadProgress by type
1 parent bfeff43 commit 2e1d754

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: esm/exports.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// this file simply exports enough stuff to allow
22
// 3rd party libraries, including PyScript, to work
33
import { buffered } from './interpreter/_io.js';
4-
import { loadProgress } from './interpreter/_python.js';
4+
import { loadProgress as lP } from './interpreter/_python.js';
5+
import { registry } from './interpreters.js';
6+
7+
const loadProgress = (type, ...rest) => lP(registry.get(type), ...rest);
8+
59
export { buffered, loadProgress };
610
export * from './index.js';
711
export * from './script-handler.js';

0 commit comments

Comments
 (0)