Socket
Socket
Sign inDemoInstall

@sec-ant/zxing-wasm

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sec-ant/zxing-wasm - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/core-ea7003f1.js

4

dist/full/index.js

@@ -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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc