mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Fixed py-editor offline use case (#2043)
This commit is contained in:
committed by
GitHub
parent
1a05ea5fd2
commit
d1d1c5740f
4
pyscript.core/package-lock.json
generated
4
pyscript.core/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pyscript/core",
|
"name": "@pyscript/core",
|
||||||
"version": "0.4.25",
|
"version": "0.4.26",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pyscript/core",
|
"name": "@pyscript/core",
|
||||||
"version": "0.4.25",
|
"version": "0.4.26",
|
||||||
"license": "APACHE-2.0",
|
"license": "APACHE-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ungap/with-resolvers": "^0.1.0",
|
"@ungap/with-resolvers": "^0.1.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pyscript/core",
|
"name": "@pyscript/core",
|
||||||
"version": "0.4.25",
|
"version": "0.4.26",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "PyScript",
|
"description": "PyScript",
|
||||||
"module": "./index.js",
|
"module": "./index.js",
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ async function execute({ currentTarget }) {
|
|||||||
? await import(/* webpackIgnore: true */ "../3rd-party/toml.js")
|
? await import(/* webpackIgnore: true */ "../3rd-party/toml.js")
|
||||||
: JSON;
|
: JSON;
|
||||||
details.config = parse(await fetch(config).then((r) => r.text()));
|
details.config = parse(await fetch(config).then((r) => r.text()));
|
||||||
|
const { interpreter } = details.config;
|
||||||
|
if (interpreter) details.version = interpreter;
|
||||||
}
|
}
|
||||||
|
|
||||||
const xworker = XWorker.call(new Hook(null, hooks), srcLink, details);
|
const xworker = XWorker.call(new Hook(null, hooks), srcLink, details);
|
||||||
|
|||||||
Reference in New Issue
Block a user