mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
[next] Updated coincident to fix a MicroPython bug (#1591)
This commit is contained in:
committed by
GitHub
parent
45af96aad4
commit
77234f6df3
296
pyscript.core/package-lock.json
generated
296
pyscript.core/package-lock.json
generated
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"name": "@pyscript/core",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@pyscript/core",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ungap/structured-clone": "^1.2.0",
|
||||
"@ungap/with-resolvers": "^0.1.0",
|
||||
"basic-devtools": "^0.1.6",
|
||||
"coincident": "^0.8.3"
|
||||
"coincident": "^0.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@node-loader/import-maps": "^1.1.0",
|
||||
@@ -20,6 +20,7 @@
|
||||
"@rollup/plugin-terser": "^0.4.3",
|
||||
"ascjs": "^5.0.1",
|
||||
"c8": "^8.0.0",
|
||||
"chokidar": "^3.5.3",
|
||||
"eslint": "^8.43.0",
|
||||
"linkedom": "^0.14.26",
|
||||
"rollup": "^3.25.3",
|
||||
@@ -409,6 +410,19 @@
|
||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/anymatch": {
|
||||
"version": "3.1.3",
|
||||
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
|
||||
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"normalize-path": "^3.0.0",
|
||||
"picomatch": "^2.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 8"
|
||||
}
|
||||
},
|
||||
"node_modules/argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
@@ -438,6 +452,15 @@
|
||||
"resolved": "https://registry.npmjs.org/basic-devtools/-/basic-devtools-0.1.6.tgz",
|
||||
"integrity": "sha512-g9zJ63GmdUesS3/Fwv0B5SYX6nR56TQXmGr+wE5PRTNCnGQMYWhUx/nZB/mMWnQJVLPPAp89oxDNlasdtNkW5Q=="
|
||||
},
|
||||
"node_modules/binary-extensions": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
||||
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/boolbase": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
||||
@@ -454,6 +477,18 @@
|
||||
"concat-map": "0.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/braces": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
|
||||
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"fill-range": "^7.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/buffer-from": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||
@@ -523,6 +558,45 @@
|
||||
"url": "https://github.com/chalk/chalk?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/chokidar": {
|
||||
"version": "3.5.3",
|
||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
|
||||
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://paulmillr.com/funding/"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"anymatch": "~3.1.2",
|
||||
"braces": "~3.0.2",
|
||||
"glob-parent": "~5.1.2",
|
||||
"is-binary-path": "~2.1.0",
|
||||
"is-glob": "~4.0.1",
|
||||
"normalize-path": "~3.0.0",
|
||||
"readdirp": "~3.6.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 8.10.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"fsevents": "~2.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/chokidar/node_modules/glob-parent": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
||||
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"is-glob": "^4.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/cliui": {
|
||||
"version": "7.0.4",
|
||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
|
||||
@@ -535,11 +609,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/coincident": {
|
||||
"version": "0.8.3",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.8.3.tgz",
|
||||
"integrity": "sha512-F3tMajIF5YvnCWeaaMnHUskcTDAXbMi6as74OvwfSirVT/gc+V3KR40E0qCANZRyX26wKrhJtGqx9owyf3iSSA==",
|
||||
"version": "0.11.0",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.11.0.tgz",
|
||||
"integrity": "sha512-5WF1WNWGoDEedYCVXEkikcGrfXrsBvS7s9sjm6uORB8UJDt/iY1Wlb+JpUnPpnzYaGkQaJBVZmT9miXiGa+kEA==",
|
||||
"dependencies": {
|
||||
"@ungap/structured-clone": "^1.2.0"
|
||||
"@ungap/structured-clone": "^1.2.0",
|
||||
"@ungap/with-resolvers": "^0.1.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"ws": "^8.13.0"
|
||||
}
|
||||
},
|
||||
"node_modules/color-convert": {
|
||||
@@ -952,6 +1030,18 @@
|
||||
"node": "^10.12.0 || >=12.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/fill-range": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
||||
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"to-regex-range": "^5.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/find-up": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
|
||||
@@ -1184,6 +1274,18 @@
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/is-binary-path": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
||||
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"binary-extensions": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/is-builtin-module": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz",
|
||||
@@ -1247,6 +1349,15 @@
|
||||
"integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/is-number": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
||||
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.12.0"
|
||||
}
|
||||
},
|
||||
"node_modules/is-path-inside": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
|
||||
@@ -1435,6 +1546,15 @@
|
||||
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/normalize-path": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
|
||||
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/nth-check": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
|
||||
@@ -1607,6 +1727,18 @@
|
||||
"safe-buffer": "^5.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/readdirp": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
||||
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"picomatch": "^2.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/require-directory": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||
@@ -1911,6 +2043,18 @@
|
||||
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/to-regex-range": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"is-number": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/type-check": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
||||
@@ -2024,6 +2168,27 @@
|
||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "8.13.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
|
||||
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
|
||||
"optional": true,
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": ">=5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/y18n": {
|
||||
"version": "5.0.8",
|
||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||
@@ -2346,6 +2511,16 @@
|
||||
"color-convert": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"anymatch": {
|
||||
"version": "3.1.3",
|
||||
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
|
||||
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"normalize-path": "^3.0.0",
|
||||
"picomatch": "^2.0.4"
|
||||
}
|
||||
},
|
||||
"argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
@@ -2372,6 +2547,12 @@
|
||||
"resolved": "https://registry.npmjs.org/basic-devtools/-/basic-devtools-0.1.6.tgz",
|
||||
"integrity": "sha512-g9zJ63GmdUesS3/Fwv0B5SYX6nR56TQXmGr+wE5PRTNCnGQMYWhUx/nZB/mMWnQJVLPPAp89oxDNlasdtNkW5Q=="
|
||||
},
|
||||
"binary-extensions": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
||||
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
|
||||
"dev": true
|
||||
},
|
||||
"boolbase": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
||||
@@ -2388,6 +2569,15 @@
|
||||
"concat-map": "0.0.1"
|
||||
}
|
||||
},
|
||||
"braces": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
|
||||
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fill-range": "^7.0.1"
|
||||
}
|
||||
},
|
||||
"buffer-from": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||
@@ -2436,6 +2626,33 @@
|
||||
"supports-color": "^7.1.0"
|
||||
}
|
||||
},
|
||||
"chokidar": {
|
||||
"version": "3.5.3",
|
||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
|
||||
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"anymatch": "~3.1.2",
|
||||
"braces": "~3.0.2",
|
||||
"fsevents": "~2.3.2",
|
||||
"glob-parent": "~5.1.2",
|
||||
"is-binary-path": "~2.1.0",
|
||||
"is-glob": "~4.0.1",
|
||||
"normalize-path": "~3.0.0",
|
||||
"readdirp": "~3.6.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"glob-parent": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
||||
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-glob": "^4.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cliui": {
|
||||
"version": "7.0.4",
|
||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
|
||||
@@ -2448,11 +2665,13 @@
|
||||
}
|
||||
},
|
||||
"coincident": {
|
||||
"version": "0.8.3",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.8.3.tgz",
|
||||
"integrity": "sha512-F3tMajIF5YvnCWeaaMnHUskcTDAXbMi6as74OvwfSirVT/gc+V3KR40E0qCANZRyX26wKrhJtGqx9owyf3iSSA==",
|
||||
"version": "0.11.0",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.11.0.tgz",
|
||||
"integrity": "sha512-5WF1WNWGoDEedYCVXEkikcGrfXrsBvS7s9sjm6uORB8UJDt/iY1Wlb+JpUnPpnzYaGkQaJBVZmT9miXiGa+kEA==",
|
||||
"requires": {
|
||||
"@ungap/structured-clone": "^1.2.0"
|
||||
"@ungap/structured-clone": "^1.2.0",
|
||||
"@ungap/with-resolvers": "^0.1.0",
|
||||
"ws": "^8.13.0"
|
||||
}
|
||||
},
|
||||
"color-convert": {
|
||||
@@ -2761,6 +2980,15 @@
|
||||
"flat-cache": "^3.0.4"
|
||||
}
|
||||
},
|
||||
"fill-range": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
||||
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"to-regex-range": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"find-up": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
|
||||
@@ -2931,6 +3159,15 @@
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"dev": true
|
||||
},
|
||||
"is-binary-path": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
||||
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"binary-extensions": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"is-builtin-module": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz",
|
||||
@@ -2976,6 +3213,12 @@
|
||||
"integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==",
|
||||
"dev": true
|
||||
},
|
||||
"is-number": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
||||
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
||||
"dev": true
|
||||
},
|
||||
"is-path-inside": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
|
||||
@@ -3127,6 +3370,12 @@
|
||||
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
||||
"dev": true
|
||||
},
|
||||
"normalize-path": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
|
||||
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
|
||||
"dev": true
|
||||
},
|
||||
"nth-check": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
|
||||
@@ -3243,6 +3492,15 @@
|
||||
"safe-buffer": "^5.1.0"
|
||||
}
|
||||
},
|
||||
"readdirp": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
||||
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"picomatch": "^2.2.1"
|
||||
}
|
||||
},
|
||||
"require-directory": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||
@@ -3442,6 +3700,15 @@
|
||||
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
|
||||
"dev": true
|
||||
},
|
||||
"to-regex-range": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-number": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"type-check": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
||||
@@ -3521,6 +3788,13 @@
|
||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
||||
"dev": true
|
||||
},
|
||||
"ws": {
|
||||
"version": "8.13.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
|
||||
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
|
||||
"optional": true,
|
||||
"requires": {}
|
||||
},
|
||||
"y18n": {
|
||||
"version": "5.0.8",
|
||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pyscript/core",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"description": "PyScript Next core",
|
||||
"main": "./cjs/index.js",
|
||||
"types": "./types/index.d.ts",
|
||||
@@ -63,9 +63,9 @@
|
||||
"@ungap/structured-clone": "^1.2.0",
|
||||
"@ungap/with-resolvers": "^0.1.0",
|
||||
"basic-devtools": "^0.1.6",
|
||||
"coincident": "^0.8.3"
|
||||
"coincident": "^0.11.0"
|
||||
},
|
||||
"worker": {
|
||||
"blob": "sha256-RqQoRRJ0ik2sDD1m3dijbVQ9ODme4BBieI8XZCk8cME="
|
||||
"blob": "sha256-et4sTPirdlCWiNezIVZP4KVcDIX//rqZyy8vIPTJ2LA="
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
12
pyscript.core/test/multi-turtle/index.html
Normal file
12
pyscript.core/test/multi-turtle/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PyScript Turtles all the way down</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<script type="module" src="../../core.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="micropython" src="./main.py"></script>
|
||||
</body>
|
||||
</html>
|
||||
4
pyscript.core/test/multi-turtle/main.py
Normal file
4
pyscript.core/test/multi-turtle/main.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from xworker import XWorker
|
||||
|
||||
for i in range(4):
|
||||
sync = XWorker("pompom.py", config="turtle.toml")
|
||||
38
pyscript.core/test/multi-turtle/pompom.py
Normal file
38
pyscript.core/test/multi-turtle/pompom.py
Normal file
@@ -0,0 +1,38 @@
|
||||
import turtle
|
||||
import random
|
||||
|
||||
turtle.set_defaults(canvwidth=300, canvheight=240)
|
||||
|
||||
colours = [
|
||||
"red",
|
||||
"green",
|
||||
"blue",
|
||||
"yellow",
|
||||
"orange",
|
||||
"brown",
|
||||
"gold",
|
||||
"purple",
|
||||
"black",
|
||||
]
|
||||
|
||||
turtle.speed(8)
|
||||
turtle.pensize(12)
|
||||
|
||||
for i in range(100):
|
||||
turtle.penup()
|
||||
turtle.setpos(0, 0)
|
||||
turtle.left(random.randint(1, 360))
|
||||
turtle.pendown()
|
||||
turtle.color(random.choice(colours))
|
||||
turtle.forward(random.randint(20, 90))
|
||||
|
||||
turtle.Screen().show_scene()
|
||||
result = turtle.svg()
|
||||
|
||||
from xworker import xworker
|
||||
|
||||
document = xworker.window.document
|
||||
|
||||
container = document.createElement("span")
|
||||
container.innerHTML = result
|
||||
document.body.appendChild(container)
|
||||
164
pyscript.core/test/multi-turtle/svg.py
Normal file
164
pyscript.core/test/multi-turtle/svg.py
Normal file
@@ -0,0 +1,164 @@
|
||||
"""
|
||||
A rewrite of Brython's SVG module, to remove JavaScript / document related
|
||||
interactions (so this can be used within a web worker, where document is not
|
||||
conveniently available).
|
||||
|
||||
Author: Nicholas H.Tollervey (ntollervey@anaconda.com)
|
||||
Based on original work by: Romain Casati
|
||||
|
||||
License: GPL v3 or higher.
|
||||
"""
|
||||
|
||||
|
||||
class Node:
|
||||
"""
|
||||
Represents a node in the DOM.
|
||||
"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self._node = kwargs
|
||||
self.parent = kwargs.get("parent")
|
||||
|
||||
@property
|
||||
def outerHTML(self):
|
||||
"""
|
||||
Get a string representation of the element's outer HTML.
|
||||
"""
|
||||
return NotImplemented
|
||||
|
||||
|
||||
class ElementNode(Node):
|
||||
"""
|
||||
An element defined by a tag, may have attributes and children.
|
||||
"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.tagName = kwargs["tagName"]
|
||||
self.attributes = kwargs.get("attributes", {})
|
||||
self.value = kwargs.get("value")
|
||||
self.childNodes = []
|
||||
|
||||
def appendChild(self, child):
|
||||
"""
|
||||
Add a child node to the children of this node. Using DOM API naming
|
||||
conventions.
|
||||
"""
|
||||
child.parent = self
|
||||
self.childNodes.append(child)
|
||||
|
||||
def setAttribute(self, key, value):
|
||||
"""
|
||||
Sets an attribute on the node.
|
||||
"""
|
||||
self.attributes[key] = value
|
||||
|
||||
@property
|
||||
def outerHTML(self):
|
||||
"""
|
||||
Get a string representation of the element's outer HTML. Using DOM API
|
||||
naming conventions.
|
||||
"""
|
||||
result = "<" + self.tagName
|
||||
for attr, val in self.attributes.items():
|
||||
result += " " + attr + '="' + str(val) + '"'
|
||||
result += ">"
|
||||
result += self.innerHTML
|
||||
result += "</" + self.tagName + ">"
|
||||
return result
|
||||
|
||||
@property
|
||||
def innerHTML(self):
|
||||
"""
|
||||
Get a string representation of the element's inner HTML. Using DOM API
|
||||
naming conventions.
|
||||
"""
|
||||
result = ""
|
||||
for child in self.childNodes:
|
||||
result += child.outerHTML
|
||||
return result
|
||||
|
||||
|
||||
class TextNode(Node):
|
||||
"""
|
||||
Textual content inside an ElementNode.
|
||||
"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.nodeValue = kwargs.get("nodeValue")
|
||||
|
||||
@property
|
||||
def outerHTML(self):
|
||||
"""
|
||||
Get a string representation of the element's outer HTML.
|
||||
"""
|
||||
return self.nodeValue
|
||||
|
||||
|
||||
_svg_ns = "http://www.w3.org/2000/svg"
|
||||
_xlink_ns = "http://www.w3.org/1999/xlink"
|
||||
|
||||
|
||||
def _tag_func(tag):
|
||||
def func(*args, **kwargs):
|
||||
node = ElementNode(tagName=tag)
|
||||
# this is mandatory to display svg properly
|
||||
if tag == "svg":
|
||||
node.setAttribute("xmlns", _svg_ns)
|
||||
for arg in args:
|
||||
if isinstance(arg, (str, int, float)):
|
||||
arg = TextNode(nodeValue=str(arg))
|
||||
node.appendChild(arg)
|
||||
for key, value in kwargs.items():
|
||||
key = key.lower()
|
||||
if key[0:2] == "on":
|
||||
# Ignore event handlers within the SVG. This shouldn't happen.
|
||||
pass
|
||||
elif key == "style":
|
||||
node.setAttribute(
|
||||
"style", ";".join(f"{k}: {v}" for k, v in value.items())
|
||||
)
|
||||
elif value is not False:
|
||||
node.setAttribute(key.replace("_", "-"), str(value))
|
||||
return node
|
||||
|
||||
return func
|
||||
|
||||
|
||||
a = _tag_func("a")
|
||||
altGlyph = _tag_func("altGlyph")
|
||||
altGlyphDef = _tag_func("altGlyphDef")
|
||||
altGlyphItem = _tag_func("altGlyphItem")
|
||||
animate = _tag_func("animate")
|
||||
animateColor = _tag_func("animateColor")
|
||||
animateMotion = _tag_func("animateMotion")
|
||||
animateTransform = _tag_func("animateTransform")
|
||||
circle = _tag_func("circle")
|
||||
clipPath = _tag_func("clipPath")
|
||||
color_profile = _tag_func("color_profile")
|
||||
cursor = _tag_func("cursor")
|
||||
defs = _tag_func("defs")
|
||||
desc = _tag_func("desc")
|
||||
ellipse = _tag_func("ellipse")
|
||||
feBlend = _tag_func("feBlend")
|
||||
foreignObject = _tag_func("foreignObject")
|
||||
g = _tag_func("g")
|
||||
image = _tag_func("image")
|
||||
line = _tag_func("line")
|
||||
linearGradient = _tag_func("linearGradient")
|
||||
marker = _tag_func("marker")
|
||||
mask = _tag_func("mask")
|
||||
path = _tag_func("path")
|
||||
pattern = _tag_func("pattern")
|
||||
polygon = _tag_func("polygon")
|
||||
polyline = _tag_func("polyline")
|
||||
radialGradient = _tag_func("radialGradient")
|
||||
rect = _tag_func("rect")
|
||||
set = _tag_func("set")
|
||||
stop = _tag_func("stop")
|
||||
svg = _tag_func("svg")
|
||||
text = _tag_func("text")
|
||||
tref = _tag_func("tref")
|
||||
tspan = _tag_func("tspan")
|
||||
use = _tag_func("use")
|
||||
2486
pyscript.core/test/multi-turtle/turtle.py
Normal file
2486
pyscript.core/test/multi-turtle/turtle.py
Normal file
File diff suppressed because it is too large
Load Diff
2
pyscript.core/test/multi-turtle/turtle.toml
Normal file
2
pyscript.core/test/multi-turtle/turtle.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[[fetch]]
|
||||
files = ["svg.py", "turtle.py"]
|
||||
Reference in New Issue
Block a user