@execbox/quickjs 0.1.2 → 0.2.0
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/README.md +2 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/runner/index.cjs +1 -1
- package/dist/runner/index.d.cts +4 -1
- package/dist/runner/index.d.cts.map +1 -1
- package/dist/runner/index.d.ts +4 -1
- package/dist/runner/index.d.ts.map +1 -1
- package/dist/runner/index.js +1 -1
- package/dist/runner/protocolEndpoint.cjs +1 -1
- package/dist/runner/protocolEndpoint.js +1 -1
- package/dist/{runner-O4f_FOhI.js → runner-B4UG88h1.js} +2 -1
- package/dist/{runner-O4f_FOhI.js.map → runner-B4UG88h1.js.map} +1 -1
- package/dist/{runner-9_N9h2rp.cjs → runner-DhOZH9xz.cjs} +2 -1
- package/dist/{runner-9_N9h2rp.cjs.map → runner-DhOZH9xz.cjs.map} +1 -1
- package/package.json +3 -3
|
@@ -5480,6 +5480,7 @@ function createToolHandle(context, providerName, safeToolName, signal, trustedHo
|
|
|
5480
5480
|
*/
|
|
5481
5481
|
async function runQuickJsSession(request, options = {}) {
|
|
5482
5482
|
const loadModule = async () => {
|
|
5483
|
+
if (options.module) return options.module;
|
|
5483
5484
|
return options.loadModule ? await options.loadModule() : await loadDefaultModule();
|
|
5484
5485
|
};
|
|
5485
5486
|
const maxLogChars = options.maxLogChars ?? DEFAULT_MAX_LOG_CHARS;
|
|
@@ -5572,4 +5573,4 @@ Object.defineProperty(exports, 'runQuickJsSession', {
|
|
|
5572
5573
|
return runQuickJsSession;
|
|
5573
5574
|
}
|
|
5574
5575
|
});
|
|
5575
|
-
//# sourceMappingURL=runner-
|
|
5576
|
+
//# sourceMappingURL=runner-DhOZH9xz.cjs.map
|