-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6060d8
commit f0cd241
Showing
10 changed files
with
379 additions
and
383 deletions.
There are no files selected for viewing
670 changes: 335 additions & 335 deletions
670
.yarn/releases/yarn-4.0.1.cjs → .yarn/releases/yarn-4.0.2.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"format": "prettier -w *.md" | ||
"format": "prettier -w .github/workflows *.md", | ||
"prepare": "husky install" | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
] | ||
}, | ||
"packageManager": "yarn@4.0.1", | ||
"packageManager": "yarn@4.0.2", | ||
"devDependencies": { | ||
"lint-staged": "^15.0.2", | ||
"prettier": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"husky": "^8.0.3" | ||
}, | ||
"engines": { | ||
"node": "^18" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/pysandbox/src/sandbox/py/python/worker/bootstrap_common.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import js | ||
import polyscript | ||
import pysandbox | ||
import pyodide | ||
|
||
for name in pysandbox.api.__all__: | ||
setattr(polyscript.xworker.sync, name, getattr(pysandbox.api, name)) | ||
|
||
for name in polyscript.xworker.sync.jsExports().to_py(): | ||
setattr(js, name, getattr(polyscript.xworker.sync, name)) | ||
|
||
polyscript.xworker.sync.onWorkerReady() | ||
js.postMessage(pyodide.ffi.to_js({"name": "ready"})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters