@danielsimonjr/mathts-matrix 0.7.5 → 0.7.6

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.
@@ -2,8 +2,13 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __esm = (fn, res) => function __init() {
6
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
5
+ var __esm = (fn, res, err) => function __init() {
6
+ if (err) throw err[0];
7
+ try {
8
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
+ } catch (e) {
10
+ throw err = [e], e;
11
+ }
7
12
  };
8
13
  var __export = (target, all) => {
9
14
  for (var name in all)
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  __esm,
3
3
  __export,
4
4
  __toCommonJS
5
- } from "./chunk-PNKVD2UK.js";
5
+ } from "./chunk-4VMDO6W2.js";
6
6
 
7
7
  // src/types/Matrix.ts
8
8
  function isMatrix(value) {
@@ -2512,7 +2512,7 @@ var WASMBackend = class {
2512
2512
  */
2513
2513
  async resolveAsWasmPath() {
2514
2514
  const isNode = typeof process !== "undefined" && process.versions?.node !== void 0;
2515
- const { resolvePackagedWasm, defaultWasmLocation } = await import("./resolve-2SX6WJ6R.js");
2515
+ const { resolvePackagedWasm, defaultWasmLocation } = await import("./resolve-DDCEWHWX.js");
2516
2516
  if (isNode) {
2517
2517
  const found = await resolvePackagedWasm(import.meta.url, "mathts-as.wasm");
2518
2518
  if (found) return found;
@@ -2538,7 +2538,7 @@ var WASMBackend = class {
2538
2538
  Date
2539
2539
  };
2540
2540
  const isNode = typeof process !== "undefined" && process.versions?.node !== void 0;
2541
- const { loadWasmManifest, verifyWasmIntegrity } = await import("./integrity-IBNQNHXP.js");
2541
+ const { loadWasmManifest, verifyWasmIntegrity } = await import("./integrity-LIWCCDIJ.js");
2542
2542
  let instance;
2543
2543
  if (isNode) {
2544
2544
  const fs = await import("fs");
@@ -4318,7 +4318,7 @@ var WasmLoader = class _WasmLoader {
4318
4318
  if (this.compiledModule) return;
4319
4319
  const path = wasmPath || await this.getDefaultWasmPath();
4320
4320
  const startTime = performance.now();
4321
- const { loadWasmManifest, verifyWasmIntegrity } = await import("./integrity-IBNQNHXP.js");
4321
+ const { loadWasmManifest, verifyWasmIntegrity } = await import("./integrity-LIWCCDIJ.js");
4322
4322
  if (this.isNode) {
4323
4323
  const fs = await import("fs");
4324
4324
  const { promisify } = await import("util");
@@ -4379,20 +4379,20 @@ var WasmLoader = class _WasmLoader {
4379
4379
  async getDefaultWasmPath() {
4380
4380
  const wasmFile = "mathts-as.wasm";
4381
4381
  if (this.isNode) {
4382
- const { resolvePackagedWasm } = await import("./resolve-2SX6WJ6R.js");
4382
+ const { resolvePackagedWasm } = await import("./resolve-DDCEWHWX.js");
4383
4383
  const found = await resolvePackagedWasm(import.meta.url, wasmFile);
4384
4384
  if (found) return found;
4385
- const { defaultWasmLocation: defaultWasmLocation2 } = await import("./resolve-2SX6WJ6R.js");
4385
+ const { defaultWasmLocation: defaultWasmLocation2 } = await import("./resolve-DDCEWHWX.js");
4386
4386
  return defaultWasmLocation2(import.meta.url, wasmFile);
4387
4387
  }
4388
- const { defaultWasmLocation } = await import("./resolve-2SX6WJ6R.js");
4388
+ const { defaultWasmLocation } = await import("./resolve-DDCEWHWX.js");
4389
4389
  return defaultWasmLocation(import.meta.url, wasmFile, { browser: true });
4390
4390
  }
4391
4391
  async loadNodeWasm(path, totalStart) {
4392
4392
  const fs = await import("fs");
4393
4393
  const { promisify } = await import("util");
4394
4394
  const readFile = promisify(fs.readFile);
4395
- const { verifyWasmIntegrity } = await import("./integrity-IBNQNHXP.js");
4395
+ const { verifyWasmIntegrity } = await import("./integrity-LIWCCDIJ.js");
4396
4396
  const readStart = performance.now();
4397
4397
  const buffer = await readFile(path);
4398
4398
  const readEnd = performance.now();
@@ -4413,7 +4413,7 @@ var WasmLoader = class _WasmLoader {
4413
4413
  return instance.exports;
4414
4414
  }
4415
4415
  async loadBrowserWasm(path, totalStart) {
4416
- const { loadWasmManifest, verifyWasmIntegrity } = await import("./integrity-IBNQNHXP.js");
4416
+ const { loadWasmManifest, verifyWasmIntegrity } = await import("./integrity-LIWCCDIJ.js");
4417
4417
  const manifest = await loadWasmManifest(path);
4418
4418
  if (!manifest && typeof WebAssembly.instantiateStreaming === "function") {
4419
4419
  const instStart2 = performance.now();
@@ -1,4 +1,4 @@
1
- import "./chunk-PNKVD2UK.js";
1
+ import "./chunk-4VMDO6W2.js";
2
2
 
3
3
  // src/backends/wasm/integrity.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- import "./chunk-PNKVD2UK.js";
1
+ import "./chunk-4VMDO6W2.js";
2
2
 
3
3
  // src/backends/wasm/resolve.ts
4
4
  import { resolvePackagedWasm, defaultWasmLocation } from "@danielsimonjr/mathts-core/internal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielsimonjr/mathts-matrix",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Matrix operations for MathTS with WASM/WebGPU backend support",
5
5
  "author": "Daniel Simon Jr.",
6
6
  "license": "MIT",
@@ -32,9 +32,9 @@
32
32
  "build:prod": "tsup src/index.ts --format esm --clean --minify --treeshake && tsc -p tsconfig.dts.json && node scripts/copy-wasm.mjs"
33
33
  },
34
34
  "dependencies": {
35
- "@danielsimonjr/mathts-core": "^0.15.5",
35
+ "@danielsimonjr/mathts-core": "^0.16.0",
36
36
  "@danielsimonjr/mathts-gpu": "^0.2.1",
37
- "@danielsimonjr/mathts-parallel": "^0.6.7"
37
+ "@danielsimonjr/mathts-parallel": "^0.6.8"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^26.4.0",