@pie-players/pie-calculator-cortex 0.3.74 → 0.3.75

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.
@@ -1,6 +1,6 @@
1
1
  import { a as xn, c as Oi, s as X, t as Ho } from "./settings-C0zxv5EL.js";
2
2
  import { n as wn, t as Jt } from "./mathlive-RSoc75Wx.js";
3
- import { t as Po } from "./compute-engine-BZSGMexT.js";
3
+ import { t as Po } from "./compute-engine--6mXOR7C.js";
4
4
  var Rr = Array.isArray, _o = Array.prototype.indexOf, kr = Array.prototype.includes, Gr = Array.from, Zi = Object.keys, Mi = Object.defineProperty, It = Object.getOwnPropertyDescriptor, $o = Object.getOwnPropertyDescriptors, ea = Object.prototype, ta = Array.prototype, kn = Object.getPrototypeOf, Hi = Object.isExtensible, Cn = () => {
5
5
  };
6
6
  function ra(e) {
@@ -4571,7 +4571,7 @@ var jl = class {
4571
4571
  try {
4572
4572
  const e = Yl((t) => new t(new URL(
4573
4573
  /* @vite-ignore */
4574
- new URL("../assets/evaluation-worker-DkU_wGh3.js", import.meta.url).href,
4574
+ new URL("../assets/evaluation-worker-CORp9m0K.js", import.meta.url).href,
4575
4575
  "" + import.meta.url
4576
4576
  ), {
4577
4577
  type: "module",
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var h = class {
26
26
  async createCalculator(e, r, s = {}) {
27
27
  if (this.initialized || await this.initialize(), !this.supportsType(e)) throw new t("unsupported-expression", `Cortex does not support calculator type: ${e}.`);
28
28
  if (!(r instanceof HTMLElement)) throw new t("invalid-state", "A valid HTML container is required.");
29
- const o = l(e, s), { createCortexCalculator: a } = await import("./chunks/runtime-C7H1jS4E.js"), i = a(this, r, o, this.onTelemetry, (n) => this.instances.delete(n));
29
+ const o = l(e, s), { createCortexCalculator: a } = await import("./chunks/runtime-wcU7KOFU.js"), i = a(this, r, o, this.onTelemetry, (n) => this.instances.delete(n));
30
30
  return this.instances.add(i), i;
31
31
  }
32
32
  supportsType(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-calculator-cortex",
3
- "version": "0.3.74",
3
+ "version": "0.3.75",
4
4
  "description": "Fully bundled open-source calculator provider for PIE assessment tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "test": "bun test tests",
23
23
  "test:corpus": "bun scripts/build-expression-corpus.mjs --full --out .corpus/gsm8k-arithmetic.json && CORTEX_CORPUS=.corpus/gsm8k-arithmetic.json bun test tests/calculator-cortex-corpus.test.ts",
24
24
  "test:e2e": "bun run build && bunx playwright test --config playwright.config.ts",
25
- "typecheck": "tsc --noEmit && tsc -p tsconfig.demo.json",
25
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.demo.json && tsc -p tsconfig.tests.json",
26
26
  "check": "svelte-check --tsconfig ./tsconfig.json",
27
27
  "lint": "biome lint ."
28
28
  },
@@ -47,12 +47,12 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@pie-players/pie-calculator": "0.3.74"
50
+ "@pie-players/pie-calculator": "0.3.75"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@axe-core/playwright": "^4.13.0",
54
54
  "@biomejs/biome": "^2.5.15",
55
- "@cortex-js/compute-engine": "0.146.0",
55
+ "@cortex-js/compute-engine": "0.147.0",
56
56
  "@playwright/test": "^1.63.0",
57
57
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
58
58
  "jsxgraph": "1.13.3",
@@ -61,7 +61,7 @@
61
61
  "svelte-check": "^4.7.6",
62
62
  "typescript": "^5.9.3",
63
63
  "vite": "^8.3.2",
64
- "vite-plugin-dts": "^5.1.1"
64
+ "vite-plugin-dts": "^5.1.2"
65
65
  },
66
66
  "sideEffects": false,
67
67
  "homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/calculator-cortex#readme",