Atom eve seo
This commit is contained in:
2
.output/server/node_modules/quickjs-emscripten-core/dist/chunk-TAV5CUKK.mjs
generated
vendored
Normal file
2
.output/server/node_modules/quickjs-emscripten-core/dist/chunk-TAV5CUKK.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{Lifetime,QuickJSContext,QuickJSNotImplemented,QuickJSRuntime,QuickJSWASMModule,Scope,applyBaseRuntimeOptions,applyModuleEvalRuntimeOptions,evalOptionsToFlags,intrinsicsToFlags}from"./chunk-V2S4ZYJR.mjs";var QuickJSAsyncContext=class extends QuickJSContext{async evalCodeAsync(code,filename="eval.js",options){let detectModule=options===void 0?1:0,flags=evalOptionsToFlags(options),resultPtr=0;try{resultPtr=await this.memory.newHeapCharPointer(code).consume(charHandle=>this.ffi.QTS_Eval_MaybeAsync(this.ctx.value,charHandle.value.ptr,charHandle.value.strlen,filename,detectModule,flags))}catch(error){throw this.runtime.debugLog("QTS_Eval_MaybeAsync threw",error),error}let errorPtr=this.ffi.QTS_ResolveException(this.ctx.value,resultPtr);return errorPtr?(this.ffi.QTS_FreeValuePointer(this.ctx.value,resultPtr),this.fail(this.memory.heapValueHandle(errorPtr))):this.success(this.memory.heapValueHandle(resultPtr))}newAsyncifiedFunction(name,fn){return this.newFunction(name,fn)}};var QuickJSAsyncRuntime=class extends QuickJSRuntime{constructor(args){super(args)}newContext(options={}){let intrinsics=intrinsicsToFlags(options.intrinsics),ctx=new Lifetime(this.ffi.QTS_NewContext(this.rt.value,intrinsics),void 0,ctx_ptr=>{this.contextMap.delete(ctx_ptr),this.callbacks.deleteContext(ctx_ptr),this.ffi.QTS_FreeContext(ctx_ptr)}),context=new QuickJSAsyncContext({module:this.module,ctx,ffi:this.ffi,rt:this.rt,ownedLifetimes:[],runtime:this,callbacks:this.callbacks});return this.contextMap.set(ctx.value,context),context}setModuleLoader(moduleLoader,moduleNormalizer){super.setModuleLoader(moduleLoader,moduleNormalizer)}setMaxStackSize(stackSize){return super.setMaxStackSize(stackSize)}};var QuickJSAsyncWASMModule=class extends QuickJSWASMModule{constructor(module,ffi){super(module,ffi);this.ffi=ffi,this.module=module}newRuntime(options={}){let rt=new Lifetime(this.ffi.QTS_NewRuntime(),void 0,rt_ptr=>{this.callbacks.deleteRuntime(rt_ptr),this.ffi.QTS_FreeRuntime(rt_ptr)}),runtime=new QuickJSAsyncRuntime({module:this.module,ffi:this.ffi,rt,callbacks:this.callbacks});return applyBaseRuntimeOptions(runtime,options),options.moduleLoader&&runtime.setModuleLoader(options.moduleLoader),runtime}newContext(options={}){let runtime=this.newRuntime(),lifetimes=options.ownedLifetimes?options.ownedLifetimes.concat([runtime]):[runtime],context=runtime.newContext({...options,ownedLifetimes:lifetimes});return runtime.context=context,context}evalCode(){throw new QuickJSNotImplemented("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead")}evalCodeAsync(code,options){return Scope.withScopeAsync(async scope=>{let vm=scope.manage(this.newContext());applyModuleEvalRuntimeOptions(vm.runtime,options);let result=await vm.evalCodeAsync(code,"eval.js");if(options.memoryLimitBytes!==void 0&&vm.runtime.setMemoryLimit(-1),result.error)throw vm.dump(scope.manage(result.error));return vm.dump(scope.manage(result.value))})}};export{QuickJSAsyncContext,QuickJSAsyncRuntime,QuickJSAsyncWASMModule};
|
||||
//# sourceMappingURL=chunk-TAV5CUKK.mjs.map
|
||||
7
.output/server/node_modules/quickjs-emscripten-core/dist/chunk-V2S4ZYJR.mjs
generated
vendored
Normal file
7
.output/server/node_modules/quickjs-emscripten-core/dist/chunk-V2S4ZYJR.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
.output/server/node_modules/quickjs-emscripten-core/dist/index.mjs
generated
vendored
Normal file
2
.output/server/node_modules/quickjs-emscripten-core/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
.output/server/node_modules/quickjs-emscripten-core/dist/module-ES6BEMUI.mjs
generated
vendored
Normal file
2
.output/server/node_modules/quickjs-emscripten-core/dist/module-ES6BEMUI.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{QuickJSModuleCallbacks,QuickJSWASMModule,applyBaseRuntimeOptions,applyModuleEvalRuntimeOptions}from"./chunk-V2S4ZYJR.mjs";export{QuickJSModuleCallbacks,QuickJSWASMModule,applyBaseRuntimeOptions,applyModuleEvalRuntimeOptions};
|
||||
//# sourceMappingURL=module-ES6BEMUI.mjs.map
|
||||
2
.output/server/node_modules/quickjs-emscripten-core/dist/module-asyncify-2EFITU5U.mjs
generated
vendored
Normal file
2
.output/server/node_modules/quickjs-emscripten-core/dist/module-asyncify-2EFITU5U.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{QuickJSAsyncWASMModule}from"./chunk-TAV5CUKK.mjs";import"./chunk-V2S4ZYJR.mjs";export{QuickJSAsyncWASMModule};
|
||||
//# sourceMappingURL=module-asyncify-2EFITU5U.mjs.map
|
||||
49
.output/server/node_modules/quickjs-emscripten-core/package.json
generated
vendored
Normal file
49
.output/server/node_modules/quickjs-emscripten-core/package.json
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "quickjs-emscripten-core",
|
||||
"version": "0.32.0",
|
||||
"sideEffects": false,
|
||||
"license": "MIT",
|
||||
"type": "commonjs",
|
||||
"keywords": [
|
||||
"eval",
|
||||
"quickjs",
|
||||
"vm",
|
||||
"interpreter",
|
||||
"runtime",
|
||||
"safe",
|
||||
"emscripten",
|
||||
"wasm"
|
||||
],
|
||||
"author": {
|
||||
"name": "Jake Teton-Landis",
|
||||
"url": "https://jake.tl"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/justjake/quickjs-emscripten"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"dist/**/*",
|
||||
"!dist/*.test.js",
|
||||
"!dist/*.tsbuildinfo"
|
||||
],
|
||||
"types": "./dist/index.d.ts",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"tsc": "npx tsc -p . --noEmit",
|
||||
"test": "npx vitest run",
|
||||
"build": "npx tsup"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jitl/quickjs-ffi-types": "0.32.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user