@sec-ant/zxing-wasm
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,3 @@ | ||
import { g as ci, r as li, d as L, c as vi, w as di, b as G } from "../core-9bc51fdd.js"; | ||
import { Z as bi, a as Pi, p as Ci, s as Ti } from "../core-9bc51fdd.js"; | ||
import { g as ci, r as li, d as L, c as vi, w as di, b as G } from "../core-ea7003f1.js"; | ||
import { Z as bi, a as Pi, p as Ci, s as Ti } from "../core-ea7003f1.js"; | ||
var ke = (() => { | ||
@@ -4,0 +4,0 @@ var W = import.meta.url; |
@@ -1,3 +0,3 @@ | ||
import { g as si, r as ui, d as Ae } from "../core-9bc51fdd.js"; | ||
import { Z as pi, a as hi, b as _i, p as gi, s as yi } from "../core-9bc51fdd.js"; | ||
import { g as si, r as ui, d as Ae } from "../core-ea7003f1.js"; | ||
import { Z as pi, a as hi, b as _i, p as gi, s as yi } from "../core-ea7003f1.js"; | ||
var kr = (() => { | ||
@@ -4,0 +4,0 @@ var L = import.meta.url; |
@@ -1,3 +0,3 @@ | ||
import { g as yn, w as mn, b as V } from "../core-9bc51fdd.js"; | ||
import { Z as $n, a as An, d as Rn, p as Fn, s as En } from "../core-9bc51fdd.js"; | ||
import { g as yn, w as mn, b as V } from "../core-ea7003f1.js"; | ||
import { Z as $n, a as An, d as Rn, p as Fn, s as En } from "../core-ea7003f1.js"; | ||
var ht = (() => { | ||
@@ -4,0 +4,0 @@ var B = import.meta.url; |
{ | ||
"name": "@sec-ant/zxing-wasm", | ||
"private": false, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -236,3 +236,3 @@ # @sec-ant/zxing-wasm | ||
When using this package, the wasm binary needs to be served along with the JS glue code. In order to provide a smooth dev experience, the wasm binary serve path is automatically assigned the [jsDelivr CDN](https://cdn.jsdelivr.net/npm/@sec-ant/zxing-wasm/) url upon build. | ||
When using this package, the wasm binary needs to be served along with the JS glue code. In order to provide a smooth dev experience, the wasm binary serve path is automatically assigned the [jsDelivr CDN](https://cdn.jsdelivr.net/npm/@sec-ant/zxing-wasm@latest/) url upon build. | ||
@@ -249,6 +249,8 @@ If you would like to change the serve path (to one of your local network hosts or other CDNs), please use `setZXingModuleOverrides` to override the [`locateFile`](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#Module.locateFile) function in advance. `locateFile` is one of the [Emscripten `Module` attribute hooks](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#affecting-execution) that can affect the code execution of the `Module` object during its lifecycles. | ||
setZXingModuleOverrides({ | ||
locateFile: (path, prefix) => | ||
path.endsWith(".wasm") | ||
? "https://www.your-custom-host.com/path/" + path | ||
: prefix + path, | ||
locateFile: (path, prefix) => { | ||
if (path.endsWith(".wasm")) { | ||
return `https://esm.sh/@sec-ant/zxing-wasm/dist/full/${path}`; | ||
} | ||
return prefix + path; | ||
}, | ||
}); | ||
@@ -282,6 +284,8 @@ | ||
getZXingModule({ | ||
locateFile: (path, prefix) => | ||
path.endsWith(".wasm") | ||
? "https://www.your-custom-host.com/path/" + path | ||
: prefix + path, | ||
locateFile: (path, prefix) => { | ||
if (path.endsWith(".wasm")) { | ||
return `https://esm.sh/@sec-ant/zxing-wasm/dist/full/${path}`; | ||
} | ||
return prefix + path; | ||
}, | ||
}); | ||
@@ -288,0 +292,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2867288
294
12