@slithy/prim-interface 0.3.0 → 0.3.2
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.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ function run(source, cfg, callbacks = {}) {
|
|
|
74
74
|
// src/runWorker.ts
|
|
75
75
|
import { Canvas as Canvas2, renderStepToCtx, stepDataToSVGElement } from "@slithy/prim-lib";
|
|
76
76
|
function runWorker(source, cfg, callbacks = {}) {
|
|
77
|
-
const url = source instanceof File ? URL.createObjectURL(source) : source;
|
|
77
|
+
const url = source instanceof File ? URL.createObjectURL(source) : new URL(source, globalThis.location.href).href;
|
|
78
78
|
const isBlob = source instanceof File;
|
|
79
79
|
let stopped = false;
|
|
80
80
|
let result = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slithy/prim-interface",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Browser-facing API for primitive-based image reconstruction.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@slithy/prim-lib": "0.4.
|
|
21
|
+
"@slithy/prim-lib": "0.4.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@vitest/coverage-v8": "^4.1.2",
|