@utterance/core 0.0.2 → 0.0.3

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.
package/dist/index.cjs CHANGED
@@ -484,7 +484,9 @@ var ONNXModel = class {
484
484
  }
485
485
  } else if (path === "bundled") {
486
486
  try {
487
- const response = await fetch(new URL("../../models/utterance-v1.onnx", import_meta.url).href);
487
+ const getUrl = new Function("p", "b", "return new URL(p, b).href");
488
+ const href = getUrl("../../models/utterance-v1.onnx", import_meta.url);
489
+ const response = await fetch(href);
488
490
  if (response.ok) {
489
491
  modelSource = await response.arrayBuffer();
490
492
  } else {
package/dist/index.js CHANGED
@@ -447,7 +447,9 @@ var ONNXModel = class {
447
447
  }
448
448
  } else if (path === "bundled") {
449
449
  try {
450
- const response = await fetch(new URL("../../models/utterance-v1.onnx", import.meta.url).href);
450
+ const getUrl = new Function("p", "b", "return new URL(p, b).href");
451
+ const href = getUrl("../../models/utterance-v1.onnx", import.meta.url);
452
+ const response = await fetch(href);
451
453
  if (response.ok) {
452
454
  modelSource = await response.arrayBuffer();
453
455
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utterance/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Client-side semantic endpointing. Know when they're done talking.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -76,7 +76,7 @@
76
76
  "dependencies": {
77
77
  "@next/third-parties": "^16.1.6",
78
78
  "@react-three/fiber": "^9.5.0",
79
- "@utterance/core": "^0.0.1",
79
+ "@utterance/core": "^0.0.2",
80
80
  "class-variance-authority": "^0.7.1",
81
81
  "clsx": "^2.1.1",
82
82
  "fumadocs-core": "^16.6.3",