eliscript 0.0.2 → 0.0.3
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 +9 -7
- package/browser/host.mjs +643 -11
- package/browser/worker.mjs +6 -3
- package/dist/browser/host.mjs +643 -11
- package/dist/browser/worker.mjs +6 -3
- package/dist/compiler-artifact.json +1 -1
- package/dist/literal-sources/runtime/core/collection.eli +76 -16
- package/dist/literal-sources/runtime/core/metadata.eli +25 -8
- package/dist/literal-sources/runtime/core/vector.eli +7 -2
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +18 -7
- package/dist/literal-sources/stdlib/managed-literals.eli +121 -66
- package/dist/stage3-release.json +1 -1
- package/package.json +10 -2
- package/stdlib/core/zipper.eli +73 -40
- package/stdlib/managed-literal-protocols.eli +18 -7
- package/stdlib/managed-literals.eli +121 -66
- package/stdlib/managed-runtime-collection.eli +76 -16
- package/stdlib/managed-runtime-metadata.eli +25 -8
- package/stdlib/managed-runtime-vector.eli +7 -2
- package/tools/backends/dist/release-cli.mjs +2 -0
- package/tools/backends/dist/release-cli.mjs.map +1 -1
- package/tools/backends/stage3-targets.mjs +121 -114
- package/bootstrap/host/eliscript-cli-legacy.mjs +0 -37
package/dist/browser/worker.mjs
CHANGED
|
@@ -14,9 +14,12 @@ import { compileProject, compileSource, outputPathFor } from "./host.mjs";
|
|
|
14
14
|
function externalResolver(runtimeBase) {
|
|
15
15
|
if (typeof runtimeBase !== "string" || runtimeBase.length === 0) return undefined;
|
|
16
16
|
const base = new URL(runtimeBase);
|
|
17
|
-
return (specifier) =>
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
return (specifier) => {
|
|
18
|
+
if (!specifier.startsWith("eliscript/")) return undefined;
|
|
19
|
+
const subpath = specifier.slice("eliscript/".length);
|
|
20
|
+
const normalized = /\.[a-z0-9]+$/iu.test(subpath) ? subpath : `${subpath}.mjs`;
|
|
21
|
+
return new URL(normalized, base).href;
|
|
22
|
+
};
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
function compile(request) {
|