@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.
@@ -15463,7 +15463,7 @@ var threads = () => (async (e) => {
15463
15463
 
15464
15464
  // package.json
15465
15465
  var name = "@duckdb/duckdb-wasm";
15466
- var version = "1.13.0";
15466
+ var version = "1.13.1-dev7.0";
15467
15467
  var description = "DuckDB powered by WebAssembly";
15468
15468
  var license = "MPL-2.0";
15469
15469
  var repository = {
@@ -16440,12 +16440,12 @@ var DuckDB = function() {
16440
16440
  }
16441
16441
  var wasmBinaryFile;
16442
16442
  if (Module["locateFile"]) {
16443
- wasmBinaryFile = "./duckdb-wasm.wasm";
16443
+ wasmBinaryFile = "./duckdb.wasm";
16444
16444
  if (!isDataURI(wasmBinaryFile)) {
16445
16445
  wasmBinaryFile = locateFile(wasmBinaryFile);
16446
16446
  }
16447
16447
  } else {
16448
- wasmBinaryFile = new URL("duckdb_wasm.wasm", import_meta.url).toString();
16448
+ wasmBinaryFile = new URL("./duckdb.wasm", import_meta.url).toString();
16449
16449
  }
16450
16450
  function getBinary(file) {
16451
16451
  try {
@@ -21278,15 +21278,13 @@ var DuckDBBrowserBindings = class extends DuckDBBindingsBase {
21278
21278
  instantiateWasm(imports, success) {
21279
21279
  globalThis.DUCKDB_RUNTIME = this._runtime;
21280
21280
  if (WebAssembly.instantiateStreaming) {
21281
- WebAssembly.instantiateStreaming(fetch(this.mainModuleURL, {
21282
- mode: "cors"
21283
- }), imports).then((output) => {
21281
+ const request = new Request(this.mainModuleURL);
21282
+ WebAssembly.instantiateStreaming(fetch(request), imports).then((output) => {
21284
21283
  success(output.instance, output.module);
21285
21284
  });
21286
21285
  } else {
21287
- fetch(this.mainModuleURL, {
21288
- mode: "cors"
21289
- }).then((resp) => resp.arrayBuffer()).then((bytes) => WebAssembly.instantiate(bytes, imports).then((output) => {
21286
+ const request = new Request(this.mainModuleURL);
21287
+ fetch(request).then((resp) => resp.arrayBuffer()).then((bytes) => WebAssembly.instantiate(bytes, imports).then((output) => {
21290
21288
  success(output.instance, output.module);
21291
21289
  })).catch((error) => {
21292
21290
  console.error("Failed to instantiate WASM:", error);
@@ -21765,12 +21763,12 @@ var DuckDB3 = function() {
21765
21763
  }
21766
21764
  var wasmBinaryFile;
21767
21765
  if (Module["locateFile"]) {
21768
- wasmBinaryFile = "./duckdb-wasm-eh.wasm";
21766
+ wasmBinaryFile = "./duckdb-eh.wasm";
21769
21767
  if (!isDataURI(wasmBinaryFile)) {
21770
21768
  wasmBinaryFile = locateFile(wasmBinaryFile);
21771
21769
  }
21772
21770
  } else {
21773
- wasmBinaryFile = new URL("duckdb_wasm.wasm", import_meta2.url).toString();
21771
+ wasmBinaryFile = new URL("./duckdb-eh.wasm", import_meta2.url).toString();
21774
21772
  }
21775
21773
  function getBinary(file) {
21776
21774
  try {