8000 Update polyscript to fix a try/catch issue (#1968) · sugruedes/pyscript@53e9452 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53e9452

Browse files
Update polyscript to fix a try/catch issue (pyscript#1968)
1 parent 181d276 commit 53e9452

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

pyscript.core/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyscript.core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
"dependencies": {
4343
"@ungap/with-resolvers": "^0.1.0",
4444
"basic-devtools": "^0.1.6",
45-
"polyscript": "^0.7.0",
45+
"polyscript": "^0.7.1",
4646
"sticky-module": "^0.1.1",
4747
"to-json-callback": "^0.1.1",
4848
"type-checked-collections": "^0.1.7"
4949
},
5050
"devDependencies": {
5151
"@codemirror/commands": "^6.3.3",
5252
"@codemirror/lang-python": "^6.1.3",
53-
"@codemirror/language": "^6.10.0",
8000 53+
"@codemirror/language": "^6.10.1",
5454
"@codemirror/state": "^6.4.0",
5555
"@codemirror/view": "^6.23.1",
5656
"@playwright/test": "^1.41.2",

pyscript.core/types/core.d.ts

Lines changed: 5 additions & 1 deletion

0 commit comments

Comments
 (0)
0
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ declare const exportedHooks: {
3838
};
3939
worker: {
4040
onReady: Set<Function>;
41-
onBeforeRun: Set<Function>;
41+
onBeforeRun: Set<Function>; /**
42+
* Given a generic DOM Element, tries to fetch the 'src' attribute, if present.
43+
* It either throws an error if the 'src' can't be fetched or it returns a fallback
44+
* content as source.
45+
*/
4246
onBeforeRunAsync: Set<Function>;
4347
onAfterRun: Set<Function>;
4448
onAfterRunAsync: Set<Function>;