@netlify/edge-bundler 8.8.0 → 8.8.1
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/deno/lib/common.ts +3 -3
- package/deno/lib/stage2.ts +2 -2
- package/deno/vendor/deno.land/std@0.178.0/_util/asserts.ts +25 -0
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/_util/os.ts +4 -3
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/_constants.ts +1 -1
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/_interface.ts +1 -1
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/_util.ts +63 -2
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/common.ts +1 -1
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/glob.ts +10 -5
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/mod.ts +20 -2
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/posix.ts +76 -105
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/separator.ts +1 -1
- package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/win32.ts +36 -82
- package/deno/vendor/deno.land/x/{eszip@v0.28.0 → eszip@v0.37.0}/eszip_wasm.generated.js +350 -114
- package/deno/vendor/deno.land/x/eszip@v0.37.0/eszip_wasm_bg.wasm +0 -0
- package/deno/vendor/deno.land/x/{eszip@v0.28.0 → eszip@v0.37.0}/loader.ts +1 -1
- package/deno/vendor/deno.land/x/{eszip@v0.28.0 → eszip@v0.37.0}/mod.ts +4 -2
- package/dist/test/util.js +1 -1
- package/package.json +1 -1
- package/deno/vendor/deno.land/std@0.127.0/_util/assert.ts +0 -15
- package/deno/vendor/deno.land/x/eszip@v0.28.0/eszip_wasm_bg.wasm +0 -0
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
|
|
7
7
|
export type { LoadResponse } from "./loader.ts";
|
|
8
8
|
|
|
9
|
+
export const options: { wasmURL: URL | undefined } = { wasmURL: undefined };
|
|
10
|
+
|
|
9
11
|
export class Parser extends InternalParser {
|
|
10
12
|
private constructor() {
|
|
11
13
|
super();
|
|
@@ -13,7 +15,7 @@ export class Parser extends InternalParser {
|
|
|
13
15
|
|
|
14
16
|
static async createInstance() {
|
|
15
17
|
// insure instantiate is called
|
|
16
|
-
await instantiate();
|
|
18
|
+
await instantiate({ url: options.wasmURL });
|
|
17
19
|
return new Parser();
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -23,7 +25,7 @@ export async function build(
|
|
|
23
25
|
loader: (url: string) => Promise<LoadResponse | undefined> = load,
|
|
24
26
|
importMapUrl?: string,
|
|
25
27
|
): Promise<Uint8Array> {
|
|
26
|
-
const { build } = await instantiate();
|
|
28
|
+
const { build } = await instantiate({ url: options.wasmURL });
|
|
27
29
|
return build(
|
|
28
30
|
roots,
|
|
29
31
|
(specifier: string) =>
|
package/dist/test/util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
|
|
3
|
-
export class DenoStdInternalError extends Error {
|
|
4
|
-
constructor(message: string) {
|
|
5
|
-
super(message);
|
|
6
|
-
this.name = "DenoStdInternalError";
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/** Make an assertion, if not `true`, then throw. */
|
|
11
|
-
export function assert(expr: unknown, msg = ""): asserts expr {
|
|
12
|
-
if (!expr) {
|
|
13
|
-
throw new DenoStdInternalError(msg);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
Binary file
|