@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.
Files changed (21) hide show
  1. package/deno/lib/common.ts +3 -3
  2. package/deno/lib/stage2.ts +2 -2
  3. package/deno/vendor/deno.land/std@0.178.0/_util/asserts.ts +25 -0
  4. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/_util/os.ts +4 -3
  5. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/_constants.ts +1 -1
  6. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/_interface.ts +1 -1
  7. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/_util.ts +63 -2
  8. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/common.ts +1 -1
  9. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/glob.ts +10 -5
  10. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/mod.ts +20 -2
  11. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/posix.ts +76 -105
  12. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/separator.ts +1 -1
  13. package/deno/vendor/deno.land/{std@0.127.0 → std@0.178.0}/path/win32.ts +36 -82
  14. package/deno/vendor/deno.land/x/{eszip@v0.28.0 → eszip@v0.37.0}/eszip_wasm.generated.js +350 -114
  15. package/deno/vendor/deno.land/x/eszip@v0.37.0/eszip_wasm_bg.wasm +0 -0
  16. package/deno/vendor/deno.land/x/{eszip@v0.28.0 → eszip@v0.37.0}/loader.ts +1 -1
  17. package/deno/vendor/deno.land/x/{eszip@v0.28.0 → eszip@v0.37.0}/mod.ts +4 -2
  18. package/dist/test/util.js +1 -1
  19. package/package.json +1 -1
  20. package/deno/vendor/deno.land/std@0.127.0/_util/assert.ts +0 -15
  21. 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
@@ -42,7 +42,7 @@ const runESZIP = async (eszipPath) => {
42
42
  const extractCommand = execa('deno', [
43
43
  'run',
44
44
  '--allow-all',
45
- 'https://deno.land/x/eszip@v0.28.0/eszip.ts',
45
+ 'https://deno.land/x/eszip@v0.37.0/eszip.ts',
46
46
  'x',
47
47
  eszipPath,
48
48
  tmpDir.path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.js",
@@ -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
- }