mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
[next] Update MicroPython and other dependencies (#1535)
This commit is contained in:
committed by
GitHub
parent
8ba28989fb
commit
db27d52352
@@ -10,19 +10,12 @@ import {
|
||||
|
||||
const type = "micropython";
|
||||
|
||||
let patchPromise = true;
|
||||
|
||||
// REQUIRES INTEGRATION TEST
|
||||
/* c8 ignore start */
|
||||
export default {
|
||||
type: [type, "mpy"],
|
||||
module: () => `http://localhost:8080/micropython/micropython.mjs`,
|
||||
async engine({ loadMicroPython }, config, url) {
|
||||
// @bug https://github.com/micropython/micropython/issues/11749
|
||||
if (patchPromise) {
|
||||
patchPromise = false;
|
||||
globalThis.Promise = class extends Promise {};
|
||||
}
|
||||
const { stderr, stdout, get } = stdio();
|
||||
url = url.replace(/\.m?js$/, ".wasm");
|
||||
const runtime = await get(loadMicroPython({ stderr, stdout, url }));
|
||||
|
||||
@@ -63,8 +63,10 @@ add("message", ({ data: { options, code, hooks } }) => {
|
||||
const details = create(registry.get(type));
|
||||
const name = `runWorker${isAsync ? "Async" : ""}`;
|
||||
|
||||
if (hooks) {
|
||||
// patch code if needed
|
||||
const { beforeRun, beforeRunAsync, afterRun, afterRunAsync } = hooks;
|
||||
const { beforeRun, beforeRunAsync, afterRun, afterRunAsync } =
|
||||
hooks;
|
||||
|
||||
const after = afterRun || afterRunAsync;
|
||||
const before = beforeRun || beforeRunAsync;
|
||||
@@ -73,7 +75,12 @@ add("message", ({ data: { options, code, hooks } }) => {
|
||||
if (after) {
|
||||
const method = details[name];
|
||||
details[name] = function (runtime, code, xworker) {
|
||||
return method.call(this, runtime, `${code}\n${after}`, xworker);
|
||||
return method.call(
|
||||
this,
|
||||
runtime,
|
||||
`${code}\n${after}`,
|
||||
xworker,
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -89,6 +96,7 @@ add("message", ({ data: { options, code, hooks } }) => {
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
run = details[name].bind(details);
|
||||
run(engine, code, xworker);
|
||||
return engine;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
var _createMicroPythonModule = (() => {
|
||||
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
||||
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
|
||||
var _scriptDir = import.meta.url;
|
||||
|
||||
return (
|
||||
function(_createMicroPythonModule = {}) {
|
||||
async function(_createMicroPythonModule = {}) {
|
||||
|
||||
// include: shell.js
|
||||
// The Module object: Our interface to the outside world. We import
|
||||
@@ -98,6 +98,9 @@ if (ENVIRONMENT_IS_NODE) {
|
||||
// the require()` function. This is only necessary for multi-environment
|
||||
// builds, `-sENVIRONMENT=node` emits a static import declaration instead.
|
||||
// TODO: Swap all `require()`'s with `import()`'s?
|
||||
const { createRequire } = await import('module');
|
||||
/** @suppress{duplicate} */
|
||||
var require = createRequire(import.meta.url);
|
||||
// These modules will usually be used on Node.js. Load them eagerly to avoid
|
||||
// the complexity of lazy-loading.
|
||||
var fs = require('fs');
|
||||
@@ -106,7 +109,10 @@ if (ENVIRONMENT_IS_NODE) {
|
||||
if (ENVIRONMENT_IS_WORKER) {
|
||||
scriptDirectory = nodePath.dirname(scriptDirectory) + '/';
|
||||
} else {
|
||||
scriptDirectory = __dirname + '/';
|
||||
// EXPORT_ES6 + ENVIRONMENT_IS_NODE always requires use of import.meta.url,
|
||||
// since there's no way getting the current absolute path of the module when
|
||||
// support for that is not available.
|
||||
scriptDirectory = require('url').fileURLToPath(new URL('./', import.meta.url)); // includes trailing slash
|
||||
}
|
||||
|
||||
// include: node_shell_read.js
|
||||
@@ -718,10 +724,15 @@ function createExportWrapper(name, fixedasm) {
|
||||
// include: runtime_exceptions.js
|
||||
// end include: runtime_exceptions.js
|
||||
var wasmBinaryFile;
|
||||
if (Module['locateFile']) {
|
||||
wasmBinaryFile = 'micropython.wasm';
|
||||
if (!isDataURI(wasmBinaryFile)) {
|
||||
wasmBinaryFile = locateFile(wasmBinaryFile);
|
||||
}
|
||||
} else {
|
||||
// Use bundler-friendly `new URL(..., import.meta.url)` pattern; works in browsers too.
|
||||
wasmBinaryFile = new URL('micropython.wasm', import.meta.url).href;
|
||||
}
|
||||
|
||||
function getBinary(file) {
|
||||
try {
|
||||
@@ -999,15 +1010,14 @@ function dbg(text) {
|
||||
// end include: runtime_debug.js
|
||||
// === Body ===
|
||||
|
||||
function load_global(str,out) { let s = UTF8ToString(str); if (s in globalThis) { let value = globalThis[s]; if (typeof value == "function") { value = value.bind(globalThis); } convert_js_to_mp_obj_jsside(value, out); return true; } else { return false; } }
|
||||
function lookup_attr(jsref,str,out) { const base = proxy_js_ref[jsref]; const attr = UTF8ToString(str); console.debug("lookup_attr", jsref, base, attr); if (attr in base) { let value = base[attr]; if (typeof value == "function") { value = value.bind(base); } convert_js_to_mp_obj_jsside(value, out); return true; } else { return false; } }
|
||||
function store_attr(jsref,attr_ptr,value_ref) { const attr = UTF8ToString(attr_ptr); const value = convert_mp_to_js_obj_jsside(value_ref); console.debug("store_attr", proxy_js_ref[jsref], attr, value); proxy_js_ref[jsref][attr] = value; }
|
||||
function lookup_attr(jsref,str,out) { const base = proxy_js_ref[jsref]; const attr = UTF8ToString(str); if (attr in base) { let value = base[attr]; if (typeof value == "function") { if (base !== globalThis) { value = value.bind(base); } } convert_js_to_mp_obj_jsside(value, out); return true; } else { return false; } }
|
||||
function store_attr(jsref,attr_ptr,value_ref) { const attr = UTF8ToString(attr_ptr); const value = convert_mp_to_js_obj_jsside(value_ref); proxy_js_ref[jsref][attr] = value; }
|
||||
function call0(f_ref,out) { let f = proxy_js_ref[f_ref]; let ret = f(); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function call1(f_ref,a0,out) { const a0_js = convert_mp_to_js_obj_jsside(a0); const ret = proxy_js_ref[f_ref](a0_js); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function call0_kwarg(f_ref,n_kw,key,value,out) { let f = proxy_js_ref[f_ref]; let a = {}; for (let i = 0; i < n_kw; ++i) { let k = UTF8ToString(getValue(key + i * 4, "i32")); let v = convert_mp_to_js_obj_jsside(value + i * 3 * 4); a[k] = v; } let ret = f(a); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function call1_kwarg(f_ref,arg0,n_kw,key,value,out) { let f = proxy_js_ref[f_ref]; let a0 = convert_mp_to_js_obj_jsside(arg0); let a = {}; for (let i = 0; i < n_kw; ++i) { let k = UTF8ToString(getValue(key + i * 4, "i32")); let v = convert_mp_to_js_obj_jsside(value + i * 3 * 4); a[k] = v; } let ret = f(a0, a); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function call2(f_ref,a0,a1,out) { const a0_js = convert_mp_to_js_obj_jsside(a0); const a1_js = convert_mp_to_js_obj_jsside(a1); const ret = proxy_js_ref[f_ref](a0_js, a1_js); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function js_reflect_construct(a0_ref,a1,out) { const ret = Reflect.construct(proxy_js_ref[a0_ref], [UTF8ToString(a1)]); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function js_reflect_construct(f_ref,n_args,args,out) { const f = proxy_js_ref[f_ref]; const as = []; for (let i = 0; i < n_args; ++i) { as.push(convert_mp_to_js_obj_jsside(args + i * 4)); } const ret = Reflect.construct(f, as); convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function js_get_len(f_ref) { return proxy_js_ref[f_ref].length; }
|
||||
function js_subscr_int(f_ref,idx,out) { const ret = proxy_js_ref[f_ref][idx]; convert_js_to_mp_obj_jsside(ret, out); }
|
||||
function js_subscr_load(f_ref,index_ref,out) { const target = proxy_js_ref[f_ref]; const index = python_index_semantics(target, convert_mp_to_js_obj_jsside(index_ref)); const ret = target[index]; convert_js_to_mp_obj_jsside(ret, out); }
|
||||
@@ -1185,6 +1195,8 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
return (randomFill = initRandomFill())(view);
|
||||
}
|
||||
|
||||
|
||||
|
||||
var PATH_FS = {resolve:function() {
|
||||
var resolvedPath = '',
|
||||
resolvedAbsolute = false;
|
||||
@@ -1236,6 +1248,7 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
return outputParts.join('/');
|
||||
}};
|
||||
|
||||
|
||||
function lengthBytesUTF8(str) {
|
||||
var len = 0;
|
||||
for (var i = 0; i < str.length; ++i) {
|
||||
@@ -1508,6 +1521,7 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
}
|
||||
}}};
|
||||
|
||||
|
||||
function zeroMemory(address, size) {
|
||||
HEAPU8.fill(0, address, address + size);
|
||||
return address;
|
||||
@@ -1906,6 +1920,9 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
return mode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var ERRNO_MESSAGES = {0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"};
|
||||
|
||||
var ERRNO_CODES = {};
|
||||
@@ -3392,6 +3409,8 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
abort('FS.standardizePath has been removed; use PATH.normalize instead');
|
||||
}};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the
|
||||
* emscripten HEAP, returns a copy of that string as a Javascript String object.
|
||||
@@ -3826,6 +3845,9 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
return ((hi + 0x200000) >>> 0 < 0x400001 - !!lo) ? (lo >>> 0) + hi * 4294967296 : NaN;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
||||
try {
|
||||
|
||||
@@ -3892,7 +3914,6 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
|
||||
|
||||
|
||||
|
||||
function _mp_js_hook() {
|
||||
if (typeof window === 'undefined') {
|
||||
var mp_interrupt_char = Module.ccall('mp_hal_get_interrupt_char', 'number', ['number'], ['null']);
|
||||
@@ -3955,6 +3976,7 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
HEAP8.set(array, buffer);
|
||||
}
|
||||
|
||||
|
||||
function stringToUTF8OnStack(str) {
|
||||
var size = lengthBytesUTF8(str) + 1;
|
||||
var ret = stackAlloc(size);
|
||||
@@ -3962,6 +3984,7 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param {string|null=} returnType
|
||||
* @param {Array=} argTypes
|
||||
@@ -3988,6 +4011,7 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
|
||||
function convertReturnValue(ret) {
|
||||
if (returnType === 'string') {
|
||||
|
||||
return UTF8ToString(ret);
|
||||
}
|
||||
if (returnType === 'boolean') return Boolean(ret);
|
||||
@@ -4020,6 +4044,7 @@ function js_callable_proxy(callable,out) { const callback = function(js0, js1) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param {string=} returnType
|
||||
* @param {Array=} argTypes
|
||||
@@ -4258,7 +4283,6 @@ var wasmImports = {
|
||||
"js_subscr_int": js_subscr_int,
|
||||
"js_subscr_load": js_subscr_load,
|
||||
"js_subscr_store": js_subscr_store,
|
||||
"load_global": load_global,
|
||||
"lookup_attr": lookup_attr,
|
||||
"mp_js_hook": _mp_js_hook,
|
||||
"mp_js_ticks_ms": _mp_js_ticks_ms,
|
||||
@@ -4335,8 +4359,8 @@ var stackSave = createExportWrapper("stackSave");
|
||||
var stackRestore = createExportWrapper("stackRestore");
|
||||
/** @type {function(...*):?} */
|
||||
var stackAlloc = createExportWrapper("stackAlloc");
|
||||
var ___start_em_js = Module['___start_em_js'] = 169992;
|
||||
var ___stop_em_js = Module['___stop_em_js'] = 173353;
|
||||
var ___start_em_js = Module['___start_em_js'] = 168184;
|
||||
var ___stop_em_js = Module['___stop_em_js'] = 171314;
|
||||
function invoke_ii(index,a1) {
|
||||
var sp = stackSave();
|
||||
try {
|
||||
@@ -4403,10 +4427,10 @@ function invoke_vi(index,a1) {
|
||||
}
|
||||
}
|
||||
|
||||
function invoke_iiii(index,a1,a2,a3) {
|
||||
function invoke_vii(index,a1,a2) {
|
||||
var sp = stackSave();
|
||||
try {
|
||||
return getWasmTableEntry(index)(a1,a2,a3);
|
||||
getWasmTableEntry(index)(a1,a2);
|
||||
} catch(e) {
|
||||
stackRestore(sp);
|
||||
if (e !== e+0) throw e;
|
||||
@@ -4414,10 +4438,10 @@ function invoke_iiii(index,a1,a2,a3) {
|
||||
}
|
||||
}
|
||||
|
||||
function invoke_vii(index,a1,a2) {
|
||||
function invoke_iiii(index,a1,a2,a3) {
|
||||
var sp = stackSave();
|
||||
try {
|
||||
getWasmTableEntry(index)(a1,a2);
|
||||
return getWasmTableEntry(index)(a1,a2,a3);
|
||||
} catch(e) {
|
||||
stackRestore(sp);
|
||||
if (e !== e+0) throw e;
|
||||
@@ -4859,12 +4883,12 @@ run();
|
||||
|
||||
);
|
||||
})();
|
||||
if (typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = _createMicroPythonModule;
|
||||
else if (typeof define === 'function' && define['amd'])
|
||||
define([], function() { return _createMicroPythonModule; });
|
||||
else if (typeof exports === 'object')
|
||||
exports["_createMicroPythonModule"] = _createMicroPythonModule;
|
||||
export default _createMicroPythonModule;/*
|
||||
import { createRequire } from 'module';
|
||||
const require = createRequire(import.meta.url);
|
||||
var __dirname = "";
|
||||
*/
|
||||
|
||||
export async function loadMicroPython(options) {
|
||||
const {heapsize, url, stdin, stdout, stderr} = Object.assign({heapsize: 1024 * 1024}, options);
|
||||
const Module = {};
|
||||
@@ -4930,11 +4954,11 @@ class PythonError extends Error {
|
||||
Object.defineProperty(PythonError.prototype, "name", { value: "PythonError" });
|
||||
|
||||
function proxy_js_init() {
|
||||
globalThis.proxy_js_ref = [0];
|
||||
globalThis.proxy_js_ref = [globalThis];
|
||||
}
|
||||
|
||||
function proxy_call_python(target, argumentsList) {
|
||||
console.debug("APPLY", target, argumentsList);
|
||||
//console.debug("APPLY", target, argumentsList);
|
||||
let args = 0;
|
||||
|
||||
// TODO: is this the correct thing to do, strip trailing "undefined" args?
|
||||
@@ -4965,7 +4989,7 @@ const proxy_handler = {
|
||||
throw Error("has not implemented");
|
||||
},
|
||||
get(target, prop) {
|
||||
console.debug("GET", target._ref, prop);
|
||||
//console.debug("GET", target._ref, prop);
|
||||
if (prop in target || typeof prop === "symbol") {
|
||||
return Reflect.get(target, prop);
|
||||
}
|
||||
@@ -4974,7 +4998,7 @@ const proxy_handler = {
|
||||
return convert_mp_to_js_obj_jsside_with_free(value);
|
||||
},
|
||||
set(target, prop, value) {
|
||||
console.debug("SET", target, prop, value);
|
||||
//console.debug("SET", target, prop, value);
|
||||
if (typeof prop === "symbol") {
|
||||
return Reflect.set(target, prop, value);
|
||||
}
|
||||
@@ -5016,7 +5040,7 @@ function convert_js_to_mp_obj_jsside(js_obj, out) {
|
||||
Module.setValue(out + 4, id, "i32");
|
||||
}
|
||||
Module.setValue(out + 0, kind, "i32");
|
||||
console.debug("convert_js_to_mp_obj_jsside", js_obj, out, "->", kind, Module.getValue(out + 4, "i32"));
|
||||
//console.debug("convert_js_to_mp_obj_jsside", js_obj, out, "->", kind, Module.getValue(out + 4, "i32"));
|
||||
}
|
||||
|
||||
function convert_mp_to_js_obj_jsside(value) {
|
||||
@@ -5065,7 +5089,7 @@ function convert_mp_to_js_obj_jsside(value) {
|
||||
obj = new Proxy(target, proxy_handler);
|
||||
}
|
||||
}
|
||||
console.debug("convert_mp_to_js_obj_jsside", value, kind, "->", obj, kind == 5 ? Module.getValue(value + 4, "i32") : "");
|
||||
//console.debug("convert_mp_to_js_obj_jsside", value, kind, "->", obj, kind == 5 ? Module.getValue(value + 4, "i32") : "");
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
68
pyscript.core/package-lock.json
generated
68
pyscript.core/package-lock.json
generated
@@ -11,25 +11,25 @@
|
||||
"dependencies": {
|
||||
"@ungap/with-resolvers": "^0.1.0",
|
||||
"basic-devtools": "^0.1.6",
|
||||
"coincident": "^0.2.3"
|
||||
"coincident": "^0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@node-loader/import-maps": "^1.1.0",
|
||||
"@rollup/plugin-node-resolve": "^15.1.0",
|
||||
"@rollup/plugin-terser": "^0.4.3",
|
||||
"ascjs": "^5.0.1",
|
||||
"c8": "^7.14.0",
|
||||
"c8": "^8.0.0",
|
||||
"eslint": "^8.42.0",
|
||||
"linkedom": "^0.14.26",
|
||||
"rollup": "^3.24.0",
|
||||
"rollup": "^3.25.1",
|
||||
"static-handler": "^0.4.1",
|
||||
"typescript": "^5.1.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/parser": {
|
||||
"version": "7.22.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz",
|
||||
"integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==",
|
||||
"version": "7.22.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz",
|
||||
"integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"parser": "bin/babel-parser.js"
|
||||
@@ -472,9 +472,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/c8": {
|
||||
"version": "7.14.0",
|
||||
"resolved": "https://registry.npmjs.org/c8/-/c8-7.14.0.tgz",
|
||||
"integrity": "sha512-i04rtkkcNcCf7zsQcSv/T9EbUn4RXQ6mropeMcjFOsQXQ0iGLAr/xT6TImQg4+U9hmNpN9XdvPkjUL1IzbgxJw==",
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/c8/-/c8-8.0.0.tgz",
|
||||
"integrity": "sha512-XHA5vSfCLglAc0Xt8eLBZMv19lgiBSjnb1FLAQgnwkuhJYEonpilhEB4Ea3jPAbm0FhD6VVJrc0z73jPe7JyGQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@bcoe/v8-coverage": "^0.2.3",
|
||||
@@ -494,7 +494,7 @@
|
||||
"c8": "bin/c8.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.12.0"
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/callsites": {
|
||||
@@ -534,9 +534,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/coincident": {
|
||||
"version": "0.2.3",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.2.3.tgz",
|
||||
"integrity": "sha512-zCHSEa8x6HcXTaPQLH89//mu7UQn/Iie2xcSOhTMPu546lboT7Js2vr1HIlZHISe82++0y7JSnX/7gIWy0bcrw==",
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.4.0.tgz",
|
||||
"integrity": "sha512-s4uoaRx9Tbaigy3iuD9+ap92hIp16ZejiF/S4ngI4AEtcXWs5Ad5GoKoUWfjUkYXwXtGQ6hlghwUTyW8j32vXw==",
|
||||
"dependencies": {
|
||||
"@ungap/structured-clone": "^1.2.0"
|
||||
}
|
||||
@@ -1667,9 +1667,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/rollup": {
|
||||
"version": "3.24.0",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.24.0.tgz",
|
||||
"integrity": "sha512-OgraHOIg2YpHQTjl0/ymWfFNBEyPucB7lmhXrQUh38qNOegxLapSPFs9sNr0qKR75awW41D93XafoR2QfhBdUQ==",
|
||||
"version": "3.25.1",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.25.1.tgz",
|
||||
"integrity": "sha512-tywOR+rwIt5m2ZAWSe5AIJcTat8vGlnPFAv15ycCrw33t6iFsXZ6mzHVFh2psSjxQPmI+xgzMZZizUAukBI4aQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"rollup": "dist/bin/rollup"
|
||||
@@ -1873,9 +1873,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/terser": {
|
||||
"version": "5.17.7",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz",
|
||||
"integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==",
|
||||
"version": "5.18.0",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.18.0.tgz",
|
||||
"integrity": "sha512-pdL757Ig5a0I+owA42l6tIuEycRuM7FPY4n62h44mRLRfnOxJkkOHd6i89dOpwZlpF6JXBwaAHF6yWzFrt+QyA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@jridgewell/source-map": "^0.3.3",
|
||||
@@ -2074,9 +2074,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.22.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz",
|
||||
"integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==",
|
||||
"version": "7.22.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz",
|
||||
"integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==",
|
||||
"dev": true
|
||||
},
|
||||
"@bcoe/v8-coverage": {
|
||||
@@ -2400,9 +2400,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"c8": {
|
||||
"version": "7.14.0",
|
||||
"resolved": "https://registry.npmjs.org/c8/-/c8-7.14.0.tgz",
|
||||
"integrity": "sha512-i04rtkkcNcCf7zsQcSv/T9EbUn4RXQ6mropeMcjFOsQXQ0iGLAr/xT6TImQg4+U9hmNpN9XdvPkjUL1IzbgxJw==",
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/c8/-/c8-8.0.0.tgz",
|
||||
"integrity": "sha512-XHA5vSfCLglAc0Xt8eLBZMv19lgiBSjnb1FLAQgnwkuhJYEonpilhEB4Ea3jPAbm0FhD6VVJrc0z73jPe7JyGQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@bcoe/v8-coverage": "^0.2.3",
|
||||
@@ -2447,9 +2447,9 @@
|
||||
}
|
||||
},
|
||||
"coincident": {
|
||||
"version": "0.2.3",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.2.3.tgz",
|
||||
"integrity": "sha512-zCHSEa8x6HcXTaPQLH89//mu7UQn/Iie2xcSOhTMPu546lboT7Js2vr1HIlZHISe82++0y7JSnX/7gIWy0bcrw==",
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.4.0.tgz",
|
||||
"integrity": "sha512-s4uoaRx9Tbaigy3iuD9+ap92hIp16ZejiF/S4ngI4AEtcXWs5Ad5GoKoUWfjUkYXwXtGQ6hlghwUTyW8j32vXw==",
|
||||
"requires": {
|
||||
"@ungap/structured-clone": "^1.2.0"
|
||||
}
|
||||
@@ -3281,9 +3281,9 @@
|
||||
}
|
||||
},
|
||||
"rollup": {
|
||||
"version": "3.24.0",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.24.0.tgz",
|
||||
"integrity": "sha512-OgraHOIg2YpHQTjl0/ymWfFNBEyPucB7lmhXrQUh38qNOegxLapSPFs9sNr0qKR75awW41D93XafoR2QfhBdUQ==",
|
||||
"version": "3.25.1",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.25.1.tgz",
|
||||
"integrity": "sha512-tywOR+rwIt5m2ZAWSe5AIJcTat8vGlnPFAv15ycCrw33t6iFsXZ6mzHVFh2psSjxQPmI+xgzMZZizUAukBI4aQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fsevents": "~2.3.2"
|
||||
@@ -3413,9 +3413,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"terser": {
|
||||
"version": "5.17.7",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz",
|
||||
"integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==",
|
||||
"version": "5.18.0",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.18.0.tgz",
|
||||
"integrity": "sha512-pdL757Ig5a0I+owA42l6tIuEycRuM7FPY4n62h44mRLRfnOxJkkOHd6i89dOpwZlpF6JXBwaAHF6yWzFrt+QyA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jridgewell/source-map": "^0.3.3",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"cjs": "ascjs --no-default esm cjs",
|
||||
"rollup:min": "rollup --config rollup/min.config.js",
|
||||
"rollup:xworker": "rollup --config rollup/xworker.config.js",
|
||||
"test": "c8 node --experimental-loader @node-loader/import-maps test/index.js",
|
||||
"test": "c8 --100 node --experimental-loader @node-loader/import-maps test/index.js ",
|
||||
"test:html": "npm run test && c8 report -r html",
|
||||
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
|
||||
"size": "npm run size:module && npm run size:worker",
|
||||
@@ -26,10 +26,10 @@
|
||||
"@rollup/plugin-node-resolve": "^15.1.0",
|
||||
"@rollup/plugin-terser": "^0.4.3",
|
||||
"ascjs": "^5.0.1",
|
||||
"c8": "^7.14.0",
|
||||
"c8": "^8.0.0",
|
||||
"eslint": "^8.42.0",
|
||||
"linkedom": "^0.14.26",
|
||||
"rollup": "^3.24.0",
|
||||
"rollup": "^3.25.1",
|
||||
"static-handler": "^0.4.1",
|
||||
"typescript": "^5.1.3"
|
||||
},
|
||||
@@ -47,9 +47,9 @@
|
||||
"dependencies": {
|
||||
"@ungap/with-resolvers": "^0.1.0",
|
||||
"basic-devtools": "^0.1.6",
|
||||
"coincident": "^0.2.3"
|
||||
"coincident": "^0.4.0"
|
||||
},
|
||||
"worker": {
|
||||
"blob": "sha256-6voWcbsOeEWD2McAxBkTW89la0C9rF93Fkz5z3+xGGc="
|
||||
"blob": "sha256-cyZ90yuiHhmQ0syjP+lzJYZoUaioBPzIDmKPEpGSXaU="
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user