@duckdb/duckdb-wasm 1.13.0 → 1.13.1-dev7.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.
@@ -16024,12 +16024,12 @@ return true;`);
16024
16024
  }
16025
16025
  var wasmBinaryFile;
16026
16026
  if (Module["locateFile"]) {
16027
- wasmBinaryFile = "./duckdb-wasm.wasm";
16027
+ wasmBinaryFile = "./duckdb.wasm";
16028
16028
  if (!isDataURI(wasmBinaryFile)) {
16029
16029
  wasmBinaryFile = locateFile(wasmBinaryFile);
16030
16030
  }
16031
16031
  } else {
16032
- wasmBinaryFile = new URL("duckdb_wasm.wasm", import_meta.url).toString();
16032
+ wasmBinaryFile = new URL("./duckdb.wasm", import_meta.url).toString();
16033
16033
  }
16034
16034
  function getBinary(file) {
16035
16035
  try {
@@ -20862,15 +20862,13 @@ return true;`);
20862
20862
  instantiateWasm(imports, success) {
20863
20863
  globalThis.DUCKDB_RUNTIME = this._runtime;
20864
20864
  if (WebAssembly.instantiateStreaming) {
20865
- WebAssembly.instantiateStreaming(fetch(this.mainModuleURL, {
20866
- mode: "cors"
20867
- }), imports).then((output) => {
20865
+ const request = new Request(this.mainModuleURL);
20866
+ WebAssembly.instantiateStreaming(fetch(request), imports).then((output) => {
20868
20867
  success(output.instance, output.module);
20869
20868
  });
20870
20869
  } else {
20871
- fetch(this.mainModuleURL, {
20872
- mode: "cors"
20873
- }).then((resp) => resp.arrayBuffer()).then((bytes) => WebAssembly.instantiate(bytes, imports).then((output) => {
20870
+ const request = new Request(this.mainModuleURL);
20871
+ fetch(request).then((resp) => resp.arrayBuffer()).then((bytes) => WebAssembly.instantiate(bytes, imports).then((output) => {
20874
20872
  success(output.instance, output.module);
20875
20873
  })).catch((error) => {
20876
20874
  console.error("Failed to instantiate WASM:", error);
@@ -21350,12 +21348,12 @@ return true;`);
21350
21348
  }
21351
21349
  var wasmBinaryFile;
21352
21350
  if (Module["locateFile"]) {
21353
- wasmBinaryFile = "./duckdb-wasm-eh.wasm";
21351
+ wasmBinaryFile = "./duckdb-eh.wasm";
21354
21352
  if (!isDataURI(wasmBinaryFile)) {
21355
21353
  wasmBinaryFile = locateFile(wasmBinaryFile);
21356
21354
  }
21357
21355
  } else {
21358
- wasmBinaryFile = new URL("duckdb_wasm.wasm", import_meta2.url).toString();
21356
+ wasmBinaryFile = new URL("./duckdb-eh.wasm", import_meta2.url).toString();
21359
21357
  }
21360
21358
  function getBinary(file) {
21361
21359
  try {
@@ -23206,9 +23204,8 @@ return true;`);
23206
23204
  // src/worker.ts
23207
23205
  var import_web_worker = __toESM(require_browser());
23208
23206
  async function createWorker(url) {
23209
- const workerScript = await fetch(url, {
23210
- mode: "cors"
23211
- });
23207
+ const request = new Request(url);
23208
+ const workerScript = await fetch(request);
23212
23209
  const workerURL = URL.createObjectURL(await workerScript.blob());
23213
23210
  return new import_web_worker.default(workerURL);
23214
23211
  }