@min-pack/quickjs 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -574,11 +574,12 @@ g.o=(A,I)=>Object.prototype.hasOwnProperty.call(A,I)
|
|
|
574
574
|
g.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})
|
|
575
575
|
Object.defineProperty(A,"__esModule",{value:!0})}
|
|
576
576
|
var B={};(()=>{g.r(B)
|
|
577
|
-
g.d(B,{
|
|
577
|
+
g.d(B,{getQuickJS:()=>E,shouldInterruptAfterDeadline:()=>Q})
|
|
578
578
|
var A=g(722)
|
|
579
579
|
var I=g.n(A)
|
|
580
580
|
g(740)
|
|
581
|
-
function C(A){return A&&"default"in A&&A.default?A.default&&"default"in A.default&&A.default.default?A.default.default:A.default:A}
|
|
581
|
+
function C(A){return A&&"default"in A&&A.default?A.default&&"default"in A.default&&A.default.default?A.default.default:A.default:A}function Q(A){let I="number"==typeof A?A:A.getTime()
|
|
582
|
+
return function(){return Date.now()>I}}const E=async()=>async function(A){let I=C(await A),[Q,B,{QuickJSWASMModule:E}]=await Promise.all([I.importModuleLoader().then(C),I.importFFI(),Promise.resolve().then(g.bind(g,748)).then(C)]),D=await Q()
|
|
582
583
|
D.type="sync"
|
|
583
584
|
return new E(D,new B(D))}(I())})()
|
|
584
585
|
return B})(),"object"==typeof exports&&"object"==typeof module?module.exports=A():"function"==typeof define&&define.amd?define([],A):"object"==typeof exports?exports.QuickJS=A():this.QuickJS=A()
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@min-pack/quickjs","version":"0.0.
|
|
1
|
+
{"name":"@min-pack/quickjs","version":"0.0.2","description":"Latest quickjs-emscripten (singlefile release sync) for browser & Node.js usage","main":"index.js","config":{"QUICKJS_EMSCRIPTEN_CORE_VERSION":"0.29.2","QUICKJS_SINGLEFILE_CJS_RELEASE_SYNC_VERSION":"0.29.2"},"license":"MIT"}
|