@scandit/web-datacapture-parser 8.1.0 → 8.1.1

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2025 Scandit AG. All Rights Reserved.
1
+ Copyright © 2026 Scandit AG. All Rights Reserved.
2
2
 
3
3
  The use of this software is governed by the Scandit Terms and Conditions.
4
4
  https://ssl.scandit.com/terms/terms.pdf
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-K74I4SRW.js';import {a as a$1,b}from'./chunk-TQGBSFHQ.js';import {a as a$3}from'./chunk-FMXPREWL.js';import {a}from'./chunk-KR6BPLJA.js';var r=class extends a$2{constructor(){super(...arguments);this.command="djinniAction";}get worker(){return a$3.worker}async parseStringToJson(t){return {}}async setOptions(t){return false}getId(){return `${this.dataFormat}`}async create(t){return this.dataFormat=t,""}};a([a$1()],r.prototype,"parseStringToJson",1),a([a$1({argumentsSerializer:t=>[JSON.stringify(t[0])]})],r.prototype,"setOptions",1),a([a$1()],r.prototype,"create",1),r=a([b("ParserInterface")],r);export{r as a};
1
+ import {a as a$2}from'./chunk-K74I4SRW.js';import {a as a$1,b}from'./chunk-TQGBSFHQ.js';import {a as a$3}from'./chunk-XM34D7LJ.js';import {a}from'./chunk-HCIKY6BM.js';var r=class extends a$2{constructor(){super(...arguments);this.command="djinniAction";}get worker(){return a$3.worker}async parseStringToJson(t){return {}}async setOptions(t){return false}getId(){return `${this.dataFormat}`}async create(t){return this.dataFormat=t,""}};a([a$1()],r.prototype,"parseStringToJson",1),a([a$1({argumentsSerializer:t=>[JSON.stringify(t[0])]})],r.prototype,"setOptions",1),a([a$1()],r.prototype,"create",1),r=a([b("ParserInterface")],r);export{r as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-KR6BPLJA.js';import {Logger,DataCaptureVersion,DataCaptureError}from'@scandit/web-datacapture-core';import {getLibraryLocationURIs}from'@scandit/web-datacapture-core/build/js/private/Helper.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';import {isWorkerScope}from'@scandit/web-datacapture-core/build/js/private/utils/isWorkerScope.js';import {instantiateWebAssembly}from'@scandit/web-datacapture-core/build/js/worker/helper.js';import {setWasmMetadata}from'@scandit/web-datacapture-core/build/js/worker/helperFetch.js';import {importWasmScript}from'@scandit/web-datacapture-core/build/js/worker/importWasmScript.js';var _=s=>s.result!=null&&s.error==null;function l(s,e){return {type:"djinniResult",payload:{id:s.id,className:s.className,methodName:s.methodName,instanceId:s.instanceId,result:e}}}function m(s,e){return {type:"parserLoaderResult",payload:{id:s.id,className:s.className,methodName:s.methodName,result:e}}}function k(s){try{return {type:"result",result:JSON.parse(s)}}catch(e){return {type:"error",error:e}}}var f=class{constructor(e,r){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=r,isWorkerScope(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),setWasmMetadata(b);}get Module(){return this.moduleHandler.get()}setLogLevel(e){Logger.setLevel(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}catch(r){this.workerFunctions.postMessage(m(e,{type:"error",error:r}));}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{Logger.log(Logger.Level.Error,e);}),this.workerSelf.addEventListener("messageerror",e=>{Logger.log(Logger.Level.Error,e);});}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),true}async performDjinniAction(e){var n,i;let r;if(Logger.log(Logger.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let d=e.args[0].toString();if(this.parsers.has(d)){this.workerFunctions.postMessage(l(e,{type:"result",result:d}));return}r=this.createParser(e),Logger.log(Logger.Level.Debug,r),this.workerFunctions.postMessage(r);return}let o=this.parsers.get((n=e.instanceId)!=null?n:"");if(o==null){this.workerFunctions.postMessage(l(e,{type:"error",error:`parser is not defined: try to access instance with id ${(i=e.instanceId)!=null?i:""}`}));return}let a=o[e.methodName](...e.args);_(a)?(e.methodName.endsWith("ToJson")&&typeof a.result=="string"&&(a=k(a.result)),r=l(e,a)):r=l(e,{type:"error",error:a.error}),this.workerFunctions.postMessage(r);}async setup({libraryLocation:e,threadsSupport:r,simdSupport:o,verifyResponseHash:a,referredOrigin:n}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:i,reject:d,promise:g}=new Deferred;this.setupPromise=g;let c=DataCaptureVersion.sdkVersion();if(c==="")throw new DataCaptureError({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let M=getLibraryLocationURIs(c,e,this.getWasmParserFileName(o,r)),{jsURI:p,wasmURI:h}=M;return this.moduleHandler.set({mainScriptUrlOrBlob:p,locateFile:u=>e+u,onMainComplete:()=>{},onRuntimeInitialized:()=>{i();},print:u=>{Logger.log(Logger.Level.Info,u);},instantiateWasm:(u,R)=>(instantiateWebAssembly({importObject:u,wasmURI:h,expectedHash:this.getWasmParserExpectedHash(o,r),verifyResponseHash:a,successCallback:R,progressCallback:()=>{},referredOrigin:n}),{})}),await importWasmScript(p,c)||d(`Couldn't retrieve Parser library at ${p}, did you configure the path for it correctly?`),g}createParser(e){var n,i;let r=this.Module.ParserInterface.create(e.args[0]);if(Logger.log(Logger.Level.Debug,`Parser:create returns ${r.type}`,r),r.type==="error")return l(e,r);let o=(i=(n=e.args[0])==null?void 0:n.toString())!=null?i:"",a=l(e,{type:"result",result:o});return this.parsers.set(o,r.result),a}getWasmParserExpectedHash(e,r){return r?e?"f15e3fbec625799d11d7d9da93e029b7d1a237ee6898f76b22737657ca0b4db0":"452527ae75eef57b103ea0428d59a8b5db3280729dd8cd237a8c0afb31c4668d":e?"08711d156720ee3f1307f4b7ec8bba2db4db6af8a43de40f7cb6535e156e32d6":"d3de4f4802d84a38c39c57a65cfb784d3f29d73e5ad417242be5da9730bb61b6"}getWasmParserFileName(e,r){return r?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};export{f as a};
1
+ import {b}from'./chunk-HCIKY6BM.js';import {Logger,DataCaptureVersion,DataCaptureError}from'@scandit/web-datacapture-core';import {getLibraryLocationURIs}from'@scandit/web-datacapture-core/build/js/private/Helper.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';import {isWorkerScope}from'@scandit/web-datacapture-core/build/js/private/utils/isWorkerScope.js';import {instantiateWebAssembly}from'@scandit/web-datacapture-core/build/js/worker/helper.js';import {setWasmMetadata}from'@scandit/web-datacapture-core/build/js/worker/helperFetch.js';import {importWasmScript}from'@scandit/web-datacapture-core/build/js/worker/importWasmScript.js';var _=s=>s.result!=null&&s.error==null;function l(s,e){return {type:"djinniResult",payload:{id:s.id,className:s.className,methodName:s.methodName,instanceId:s.instanceId,result:e}}}function m(s,e){return {type:"parserLoaderResult",payload:{id:s.id,className:s.className,methodName:s.methodName,result:e}}}function k(s){try{return {type:"result",result:JSON.parse(s)}}catch(e){return {type:"error",error:e}}}var f=class{constructor(e,r){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=r,isWorkerScope(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),setWasmMetadata(b);}get Module(){return this.moduleHandler.get()}setLogLevel(e){Logger.setLevel(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}catch(r){this.workerFunctions.postMessage(m(e,{type:"error",error:r}));}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{Logger.log(Logger.Level.Error,e);}),this.workerSelf.addEventListener("messageerror",e=>{Logger.log(Logger.Level.Error,e);});}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),true}async performDjinniAction(e){var n,i;let r;if(Logger.log(Logger.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let d=e.args[0].toString();if(this.parsers.has(d)){this.workerFunctions.postMessage(l(e,{type:"result",result:d}));return}r=this.createParser(e),Logger.log(Logger.Level.Debug,r),this.workerFunctions.postMessage(r);return}let o=this.parsers.get((n=e.instanceId)!=null?n:"");if(o==null){this.workerFunctions.postMessage(l(e,{type:"error",error:`parser is not defined: try to access instance with id ${(i=e.instanceId)!=null?i:""}`}));return}let a=o[e.methodName](...e.args);_(a)?(e.methodName.endsWith("ToJson")&&typeof a.result=="string"&&(a=k(a.result)),r=l(e,a)):r=l(e,{type:"error",error:a.error}),this.workerFunctions.postMessage(r);}async setup({libraryLocation:e,threadsSupport:r,simdSupport:o,verifyResponseHash:a,referredOrigin:n}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:i,reject:d,promise:g}=new Deferred;this.setupPromise=g;let c=DataCaptureVersion.sdkVersion();if(c==="")throw new DataCaptureError({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let M=getLibraryLocationURIs(c,e,this.getWasmParserFileName(o,r)),{jsURI:p,wasmURI:h}=M;return this.moduleHandler.set({mainScriptUrlOrBlob:p,locateFile:u=>e+u,onMainComplete:()=>{},onRuntimeInitialized:()=>{i();},print:u=>{Logger.log(Logger.Level.Info,u);},instantiateWasm:(u,R)=>(instantiateWebAssembly({importObject:u,wasmURI:h,expectedHash:this.getWasmParserExpectedHash(o,r),verifyResponseHash:a,successCallback:R,progressCallback:()=>{},referredOrigin:n}),{})}),await importWasmScript(p,c)||d(`Couldn't retrieve Parser library at ${p}, did you configure the path for it correctly?`),g}createParser(e){var n,i;let r=this.Module.ParserInterface.create(e.args[0]);if(Logger.log(Logger.Level.Debug,`Parser:create returns ${r.type}`,r),r.type==="error")return l(e,r);let o=(i=(n=e.args[0])==null?void 0:n.toString())!=null?i:"",a=l(e,{type:"result",result:o});return this.parsers.set(o,r.result),a}getWasmParserExpectedHash(e,r){return r?e?"60331efc3ed0dbef7d6e14b535ab69c3560fb9e4cf5e95de7c925eec4658dcfd":"d91f23199a4963a037bbd8240b6a100bd9787baad618829287cd33e92400d652":e?"71b343f2fb2a79100c7a0626af778aa1d640b5efc031c3056a1c5c44f0fbca78":"b1c89e4b79f219cc369c2ef5cb4d9ed42d8dbb0d6bd74ff250454901f57d3c5a"}getWasmParserFileName(e,r){return r?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};export{f as a};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var b=(p,s,d,t)=>{for(var a=t>1?void 0:t?i(s,d):s,e=p.length-1,r;e>=0;e--)(r=p[e])&&(a=(t?r(s,d,a):r(a))||a);return t&&a&&c(s,d,a),a};var u={"scandit-datacapture-sdk-parser-simd.wasm":{bytes:7472743},"scandit-datacapture-sdk-parser-pthreads.wasm":{bytes:7636479},"scandit-datacapture-sdk-parser-simd-pthreads.wasm":{bytes:7568443},"scandit-datacapture-sdk-parser.wasm":{bytes:7541248}};export{b as a,u as b};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-G4NISQBY.js';import {a}from'./chunk-XO2EOL4N.js';import {LicensedFeature}from'@scandit/web-datacapture-core/build/js/worker/index.js';var o=class n{constructor(t){this.type="parser";this.settings=new a;this.settings.dataFormat=t;}get id(){return `${this.settings.dataFormat}`}static async forFormat(t,e){let i=t,r=new n(e);if(r.parserProxy=new a$1,!await i.isFeatureSupported(LicensedFeature.Parser))throw new Error("Parser not supported by the current license");return await r.parserProxy.create(e),r}async parseStringToJson(t){return this.parserProxy.parseStringToJson(t)}async setOptions(t){return this.parserProxy.setOptions(t)}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject()}}};export{o as a};
1
+ import {a as a$1}from'./chunk-7E4LXQM4.js';import {a}from'./chunk-XO2EOL4N.js';import {LicensedFeature}from'@scandit/web-datacapture-core/build/js/worker/index.js';var o=class n{constructor(t){this.type="parser";this.settings=new a;this.settings.dataFormat=t;}get id(){return `${this.settings.dataFormat}`}static async forFormat(t,e){let i=t,r=new n(e);if(r.parserProxy=new a$1,!await i.isFeatureSupported(LicensedFeature.Parser))throw new Error("Parser not supported by the current license");return await r.parserProxy.create(e),r}async parseStringToJson(t){return this.parserProxy.parseStringToJson(t)}async setOptions(t){return this.parserProxy.setOptions(t)}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject()}}};export{o as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-FMXPREWL.js';import {Logger}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function p(r){return r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"Parser",load:async a$1=>{var i,t;let e=a$1,o=a.create({libraryLocation:(i=r==null?void 0:r.libraryLocation)!=null?i:e.libraryLocation,simdSupport:e.simdSupport,threadsSupport:e.threadsSupport,verifyResponseHash:true,referredOrigin:globalThis.location.origin});await o.setLogLevel((t=a$1.logLevel)!=null?t:Logger.Level.Debug),await o.load();}}}export{p as a};
1
+ import {a}from'./chunk-XM34D7LJ.js';import {Logger}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function p(r){return r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"Parser",load:async a$1=>{var i,t;let e=a$1,o=a.create({libraryLocation:(i=r==null?void 0:r.libraryLocation)!=null?i:e.libraryLocation,simdSupport:e.simdSupport,threadsSupport:e.threadsSupport,verifyResponseHash:true,referredOrigin:globalThis.location.origin});await o.setLogLevel((t=a$1.logLevel)!=null?t:Logger.Level.Debug),await o.load();}}}export{p as a};
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-2APDEN7H.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';function o(t){let e=URL.createObjectURL(new Blob(['"use strict";(()=>{var V=(r,e)=>()=>(r&&(e=r(r=0)),e);var p,n=V(()=>{p={"scandit-datacapture-sdk-parser-pthreads.wasm":{bytes:7636113},"scandit-datacapture-sdk-parser-simd-pthreads.wasm":{bytes:7568077},"scandit-datacapture-sdk-parser-simd.wasm":{bytes:7472406},"scandit-datacapture-sdk-parser.wasm":{bytes:7540902}}});n();n();n();n();function k(){if(typeof self=="object")return!1;let r=(()=>{if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof self<"u")return self;throw new Error("No global object found")})();return Object.defineProperty(r,"globalThis",{value:r,writable:!0,configurable:!0}),!0}n();var s;(r=>{(l=>(l.Debug="debug",l.Info="info",l.Warn="warn",l.Error="error",l.Quiet="quiet"))(r.Level||(r.Level={}));let e=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),t="debug";function a(l){t=l}r.setLevel=a;function o(l,...f){if(!(e.get(t)>e.get(l)))switch(l){case"debug":{console.debug(...f);break}case"info":{console.log(...f);break}case"warn":{console.warn(...f);break}case"error":{console.error(...f);break}}}r.log=o;function i(...l){o("warn",...l)}r.warn=i;function u(...l){o("debug",...l)}r.debug=u;function c(...l){o("info",...l)}r.info=c;function m(...l){o("error",...l)}r.error=m})(s||(s={}));n();var w=class D extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,D.prototype),this.name=e.name}toString(){return`${this.name}: ${this.message}`}};n();n();n();var C={};function B(r){return[...new Uint8Array(r)].map(e=>{let t=e.toString(16);return t.length===1?`0${t}`:t}).join("")}async function*z(r){let e=r.getReader();try{for(;;){let{done:t,value:a}=await e.read();if(t)return;yield a}}finally{e.releaseLock()}}async function J(r){let e=[],t=0,a=0;for await(let i of z(r))e.push(i),t+=i.length;let o=new Uint8Array(t);for(let i of e)o.set(i,a),a+=i.length;return o.buffer}var N=(r=>(r.VALID="VALID",r.INVALID="INVALID",r.NOT_VERIFIABLE="NOT_VERIFIABLE",r))(N||{});async function _(r,e,t){if(typeof crypto.subtle.digest!="function")return s.log(s.Level.Warn,`Insecure context (see https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts): The hash of the Scandit Data Capture library WASM file found at ${t} could not be verified`),"NOT_VERIFIABLE";try{let a=r instanceof Promise?await r:r,o=await crypto.subtle.digest("SHA-256",a),i=B(o);return e==null?(s.log(s.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):i===e?(s.log(s.Level.Debug,`Data Capture library WASM integrity found at ${t} has been verified correctly.`),"VALID"):(s.log(s.Level.Warn,`The Scandit Data Capture library WASM file found at ${t} seems invalid: expected file hash doesn\'t match (received: ${i}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(a){return s.log(s.Level.Warn,"Wasm response could not be verified",a),"NOT_VERIFIABLE"}}var P=new Map([["br",4.4],["gzip",2.9],["none",1]]);function q(r){var e;let t="content-encoding";if(r==null||r.get(t)==null)return P.get("none");let a=new Set(((e=r.get(t))!=null?e:"").split(",").map(o=>o.trim()));for(let[o,i]of P)if(a.has(o))return i;return P.get("none")}function Q(r){var e,t;if(r==null)return 0;let a=(e=q(r))!=null?e:1,o=Number.parseInt((t=r.get("content-length"))!=null?t:"0",10);return Number.isNaN(o)?0:Math.floor(o*a*100)/100}function G(r){let{pathname:e}=new URL(r);for(let[t,a]of Object.entries(C))if(e.endsWith(t))return a.bytes;return 0}function R(r){C=r}var $=(r,e)=>{let t=Q(e);return t===0?G(r):t};function F(r,e,t,{onProgress:a,onError:o,onComplete:i}){if(!e.body)return[e];let u=$(r,e.headers),c=0,m=0;if(typeof TransformStream>"u")return s.warn("TransformStream is not supported in this environment. Progress tracking will be disabled."),[e];let[l,f]=t?e.body.tee():[e.body],d=l.pipeThrough(new TransformStream({async transform(g,b){try{c+=g.length,m=Number((c/u*100).toFixed(2)),u>0&&g.length>0&&m<100?a==null||a({percentage:m,loadedBytes:c,privateUri:r}):u===0&&g.length>0&&(a==null||a({percentage:null,loadedBytes:c,privateUri:r})),b.enqueue(g)}catch(h){b.error(h),o==null||o({error:h})}},flush(g){a==null||a({percentage:100,loadedBytes:c,privateUri:r}),i==null||i({percentage:100,loadedBytes:c,privateUri:r}),g.terminate()}}));return[new Response(d,{headers:new Headers(e.headers),status:e.status,statusText:e.statusText}),f]}async function v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,onComplete:o,onError:i,referredOrigin:u}){let c=await fetch(r,{referrerPolicy:"origin",referrer:u!=null?u:""});if(!c.ok)throw new Error(`HTTP status code is not ok: ${c.status}, ${c.statusText}`);let[m,l]=F(r,c,t,{onProgress:a,onError:i,onComplete:o});return l!=null&&_(J(l),e,r),m}function M({wasmURI:r,expectedHash:e,verifyResponseHash:t,progressCallback:a,successCallback:o,errorCallback:i,importObject:u,referredOrigin:c}){async function m(f){try{let d=await v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,referredOrigin:c}),g=await(f!=null?f:d).arrayBuffer(),b=await self.WebAssembly.instantiate(g,u);o(b.instance,b.module)}catch(d){s.log(s.Level.Error,d),s.log(s.Level.Error,`Couldn\'t instantiate Scandit SDK DataCapture library at ${r}, did you configure the path for it correctly?`),i==null||i(d)}}async function l(){let f;try{f=await v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,referredOrigin:c});let d=await self.WebAssembly.instantiateStreaming(f,u);o(d.instance,d.module)}catch(d){s.log(s.Level.Warn,d),s.log(s.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),m((f==null?void 0:f.bodyUsed)===!0?void 0:f)}}typeof self.WebAssembly.instantiateStreaming=="function"?l():m()}async function x(r,e,t,a){return new Promise((o,i)=>{r().then(o).catch(u=>{let c=e*2;if(c>t){i(u);return}a(u),self.setTimeout(()=>{x(r,c,t,a).then(o).catch(i)},e)})})}async function A(r,e){async function t(){return importScripts(r)}try{await x(t,250,4e3,o=>{s.log(s.Level.Warn,o),s.log(s.Level.Warn,`Couldn\'t retrieve Scandit Data Capture library at ${r}, retrying...`)}),self.Module.mainScriptUrlOrBlob=r;let a=self.SDC_WASM_JS_VERSION;return a!==e&&s.log(s.Level.Warn,`The Scandit Data Capture library JS file found at ${r} seems invalid: expected version doesn\'t match (received: ${a}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(a){return s.log(s.Level.Error,a),!1}}n();var I=class{constructor(){this.promise=new Promise((r,e)=>{this.reject=e,this.resolve=r})}};n();var S;(r=>{function e(){return"8.1.0"}r.sdkVersion=e})(S||(S={}));n();function U(r){return/^https?:\\/\\/(?:[^./]*\\.)*cdn.jsdelivr.net\\//.test(r)?{result:!0,cdnBaseURL:"https://cdn.jsdelivr.net/npm/"}:/^https?:\\/\\/(?:[^./]*\\.)*unpkg.com\\//.test(r)?{result:!0,cdnBaseURL:"https://unpkg.com/"}:{result:!1,cdnBaseURL:""}}function O(r){let e=/@scandit\\/web-datacapture-[a-z]+/i.exec(r);return e?e[0]:null}function E(r,e,t){let a=e,o=U(a);if(o.result){let u=O(a);u!=null&&(a=`${o.cdnBaseURL}${u}@${r}/sdc-lib/`)}let i=t.replace(".wasm","");return o.result?{jsURI:`${a}${i}.js`,wasmURI:`${a}${i}.wasm`}:{jsURI:`${a}${i}.js?v=${r}`,wasmURI:`${a}${i}.wasm?v=${r}`}}n();function W(r){return typeof r=="object"&&r!=null&&r.document==null&&"addEventListener"in r&&typeof r.importScripts=="function"}k();n();n();n();n();n();n();var K=r=>r.result!=null&&r.error==null;function y(r,e){return{type:"djinniResult",payload:{id:r.id,className:r.className,methodName:r.methodName,instanceId:r.instanceId,result:e}}}function T(r,e){return{type:"parserLoaderResult",payload:{id:r.id,className:r.className,methodName:r.methodName,result:e}}}function Z(r){try{return{type:"result",result:JSON.parse(r)}}catch(e){return{type:"error",error:e}}}var L=class{constructor(e,t){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=t,W(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),R(p)}get Module(){return this.moduleHandler.get()}setLogLevel(e){s.setLevel(e.args[0]),this.workerFunctions.postMessage(T(e,{type:"result",result:!0}))}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(T(e,{type:"result",result:!0}))}catch(t){this.workerFunctions.postMessage(T(e,{type:"error",error:t}))}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{s.log(s.Level.Error,e)}),this.workerSelf.addEventListener("messageerror",e=>{s.log(s.Level.Error,e)})}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),!0}async performDjinniAction(e){var i,u;let t;if(s.log(s.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let c=e.args[0].toString();if(this.parsers.has(c)){this.workerFunctions.postMessage(y(e,{type:"result",result:c}));return}t=this.createParser(e),s.log(s.Level.Debug,t),this.workerFunctions.postMessage(t);return}let a=this.parsers.get((i=e.instanceId)!=null?i:"");if(a==null){this.workerFunctions.postMessage(y(e,{type:"error",error:`parser is not defined: try to access instance with id ${(u=e.instanceId)!=null?u:""}`}));return}let o=a[e.methodName](...e.args);K(o)?(e.methodName.endsWith("ToJson")&&typeof o.result=="string"&&(o=Z(o.result)),t=y(e,o)):t=y(e,{type:"error",error:o.error}),this.workerFunctions.postMessage(t)}async setup({libraryLocation:e,threadsSupport:t,simdSupport:a,verifyResponseHash:o,referredOrigin:i}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:u,reject:c,promise:m}=new I;this.setupPromise=m;let l=S.sdkVersion();if(l==="")throw new w({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let f=E(l,e,this.getWasmParserFileName(a,t)),{jsURI:d,wasmURI:g}=f;return this.moduleHandler.set({mainScriptUrlOrBlob:d,locateFile:h=>e+h,onMainComplete:()=>{},onRuntimeInitialized:()=>{u()},print:h=>{s.log(s.Level.Info,h)},instantiateWasm:(h,H)=>(M({importObject:h,wasmURI:g,expectedHash:this.getWasmParserExpectedHash(a,t),verifyResponseHash:o,successCallback:H,progressCallback:()=>{},referredOrigin:i}),{})}),await A(d,l)||c(`Couldn\'t retrieve Parser library at ${d}, did you configure the path for it correctly?`),m}createParser(e){var i,u;let t=this.Module.ParserInterface.create(e.args[0]);if(s.log(s.Level.Debug,`Parser:create returns ${t.type}`,t),t.type==="error")return y(e,t);let a=(u=(i=e.args[0])==null?void 0:i.toString())!=null?u:"",o=y(e,{type:"result",result:a});return this.parsers.set(a,t.result),o}getWasmParserExpectedHash(e,t){return t?e?"f15e3fbec625799d11d7d9da93e029b7d1a237ee6898f76b22737657ca0b4db0":"452527ae75eef57b103ea0428d59a8b5db3280729dd8cd237a8c0afb31c4668d":e?"08711d156720ee3f1307f4b7ec8bba2db4db6af8a43de40f7cb6535e156e32d6":"d3de4f4802d84a38c39c57a65cfb784d3f29d73e5ad417242be5da9730bb61b6"}getWasmParserFileName(e,t){return t?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};var lr=new L(self,{get:()=>self.Module,set:r=>{self.Module=r}});function ur(r){}})();\n'],{type:"application/javascript"})),r=new Worker(e,t);return URL.revokeObjectURL(e),r}var i=class t{constructor(e){this.moduleName="Parser";this.id=0;this.loadingOptions=e;}static get worker(){var r;let e=(r=a.get("ParserWorker"))!=null?r:o({name:"ParserWorker"});return a.has("ParserWorker")||a.set("ParserWorker",e),e}static create(e){return new t(e)}async load(){var e;await this.sendMessage({id:this.id++,methodName:"load",className:"ParserLoader",args:[{libraryLocation:this.loadingOptions.libraryLocation,simdSupport:this.loadingOptions.simdSupport,threadsSupport:this.loadingOptions.threadsSupport,verifyResponseHash:this.loadingOptions.verifyResponseHash,referredOrigin:(e=this.loadingOptions.referredOrigin)!=null?e:""}]});}async setLogLevel(e){await this.sendMessage({id:this.id++,methodName:"setLogLevel",className:"ParserLoader",args:[e]});}async sendMessage(e){let r=new Deferred,n=l=>{let{data:s}=l;e.id===s.payload.id&&(s.payload.result.type==="result"?r.resolve(s.payload.result.result):r.reject(s.payload.result.error),t.worker.removeEventListener("message",n));};return t.worker.addEventListener("message",n),t.worker.postMessage(e),r.promise}};
1
+ import {a}from'./chunk-2APDEN7H.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';function o(t){let e=URL.createObjectURL(new Blob(['"use strict";(()=>{var V=(r,e)=>()=>(r&&(e=r(r=0)),e);var p,n=V(()=>{p={"scandit-datacapture-sdk-parser-simd.wasm":{bytes:7472743},"scandit-datacapture-sdk-parser-pthreads.wasm":{bytes:7636479},"scandit-datacapture-sdk-parser-simd-pthreads.wasm":{bytes:7568443},"scandit-datacapture-sdk-parser.wasm":{bytes:7541248}}});n();n();n();n();function k(){if(typeof self=="object")return!1;let r=(()=>{if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof self<"u")return self;throw new Error("No global object found")})();return Object.defineProperty(r,"globalThis",{value:r,writable:!0,configurable:!0}),!0}n();var s;(r=>{(l=>(l.Debug="debug",l.Info="info",l.Warn="warn",l.Error="error",l.Quiet="quiet"))(r.Level||(r.Level={}));let e=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),t="debug";function a(l){t=l}r.setLevel=a;function o(l,...f){if(!(e.get(t)>e.get(l)))switch(l){case"debug":{console.debug(...f);break}case"info":{console.log(...f);break}case"warn":{console.warn(...f);break}case"error":{console.error(...f);break}}}r.log=o;function i(...l){o("warn",...l)}r.warn=i;function u(...l){o("debug",...l)}r.debug=u;function c(...l){o("info",...l)}r.info=c;function m(...l){o("error",...l)}r.error=m})(s||(s={}));n();var w=class D extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,D.prototype),this.name=e.name}toString(){return`${this.name}: ${this.message}`}};n();n();n();var C={};function B(r){return[...new Uint8Array(r)].map(e=>{let t=e.toString(16);return t.length===1?`0${t}`:t}).join("")}async function*z(r){let e=r.getReader();try{for(;;){let{done:t,value:a}=await e.read();if(t)return;yield a}}finally{e.releaseLock()}}async function J(r){let e=[],t=0,a=0;for await(let i of z(r))e.push(i),t+=i.length;let o=new Uint8Array(t);for(let i of e)o.set(i,a),a+=i.length;return o.buffer}var N=(r=>(r.VALID="VALID",r.INVALID="INVALID",r.NOT_VERIFIABLE="NOT_VERIFIABLE",r))(N||{});async function _(r,e,t){if(typeof crypto.subtle.digest!="function")return s.log(s.Level.Warn,`Insecure context (see https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts): The hash of the Scandit Data Capture library WASM file found at ${t} could not be verified`),"NOT_VERIFIABLE";try{let a=r instanceof Promise?await r:r,o=await crypto.subtle.digest("SHA-256",a),i=B(o);return e==null?(s.log(s.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):i===e?(s.log(s.Level.Debug,`Data Capture library WASM integrity found at ${t} has been verified correctly.`),"VALID"):(s.log(s.Level.Warn,`The Scandit Data Capture library WASM file found at ${t} seems invalid: expected file hash doesn\'t match (received: ${i}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(a){return s.log(s.Level.Warn,"Wasm response could not be verified",a),"NOT_VERIFIABLE"}}var P=new Map([["br",4.4],["gzip",2.9],["none",1]]);function q(r){var e;let t="content-encoding";if(r==null||r.get(t)==null)return P.get("none");let a=new Set(((e=r.get(t))!=null?e:"").split(",").map(o=>o.trim()));for(let[o,i]of P)if(a.has(o))return i;return P.get("none")}function Q(r){var e,t;if(r==null)return 0;let a=(e=q(r))!=null?e:1,o=Number.parseInt((t=r.get("content-length"))!=null?t:"0",10);return Number.isNaN(o)?0:Math.floor(o*a*100)/100}function G(r){let{pathname:e}=new URL(r);for(let[t,a]of Object.entries(C))if(e.endsWith(t))return a.bytes;return 0}function R(r){C=r}var $=(r,e)=>{let t=Q(e);return t===0?G(r):t};function F(r,e,t,{onProgress:a,onError:o,onComplete:i}){if(!e.body)return[e];let u=$(r,e.headers),c=0,m=0;if(typeof TransformStream>"u")return s.warn("TransformStream is not supported in this environment. Progress tracking will be disabled."),[e];let[l,f]=t?e.body.tee():[e.body],d=l.pipeThrough(new TransformStream({async transform(g,b){try{c+=g.length,m=Number((c/u*100).toFixed(2)),u>0&&g.length>0&&m<100?a==null||a({percentage:m,loadedBytes:c,privateUri:r}):u===0&&g.length>0&&(a==null||a({percentage:null,loadedBytes:c,privateUri:r})),b.enqueue(g)}catch(h){b.error(h),o==null||o({error:h})}},flush(g){a==null||a({percentage:100,loadedBytes:c,privateUri:r}),i==null||i({percentage:100,loadedBytes:c,privateUri:r}),g.terminate()}}));return[new Response(d,{headers:new Headers(e.headers),status:e.status,statusText:e.statusText}),f]}async function v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,onComplete:o,onError:i,referredOrigin:u}){let c=await fetch(r,{referrerPolicy:"origin",referrer:u!=null?u:""});if(!c.ok)throw new Error(`HTTP status code is not ok: ${c.status}, ${c.statusText}`);let[m,l]=F(r,c,t,{onProgress:a,onError:i,onComplete:o});return l!=null&&_(J(l),e,r),m}function M({wasmURI:r,expectedHash:e,verifyResponseHash:t,progressCallback:a,successCallback:o,errorCallback:i,importObject:u,referredOrigin:c}){async function m(f){try{let d=await v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,referredOrigin:c}),g=await(f!=null?f:d).arrayBuffer(),b=await self.WebAssembly.instantiate(g,u);o(b.instance,b.module)}catch(d){s.log(s.Level.Error,d),s.log(s.Level.Error,`Couldn\'t instantiate Scandit SDK DataCapture library at ${r}, did you configure the path for it correctly?`),i==null||i(d)}}async function l(){let f;try{f=await v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,referredOrigin:c});let d=await self.WebAssembly.instantiateStreaming(f,u);o(d.instance,d.module)}catch(d){s.log(s.Level.Warn,d),s.log(s.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),m((f==null?void 0:f.bodyUsed)===!0?void 0:f)}}typeof self.WebAssembly.instantiateStreaming=="function"?l():m()}async function x(r,e,t,a){return new Promise((o,i)=>{r().then(o).catch(u=>{let c=e*2;if(c>t){i(u);return}a(u),self.setTimeout(()=>{x(r,c,t,a).then(o).catch(i)},e)})})}async function A(r,e){async function t(){return importScripts(r)}try{await x(t,250,4e3,o=>{s.log(s.Level.Warn,o),s.log(s.Level.Warn,`Couldn\'t retrieve Scandit Data Capture library at ${r}, retrying...`)}),self.Module.mainScriptUrlOrBlob=r;let a=self.SDC_WASM_JS_VERSION;return a!==e&&s.log(s.Level.Warn,`The Scandit Data Capture library JS file found at ${r} seems invalid: expected version doesn\'t match (received: ${a}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(a){return s.log(s.Level.Error,a),!1}}n();var I=class{constructor(){this.promise=new Promise((r,e)=>{this.reject=e,this.resolve=r})}};n();var S;(r=>{function e(){return"8.1.1"}r.sdkVersion=e})(S||(S={}));n();function U(r){return/^https?:\\/\\/(?:[^./]*\\.)*cdn.jsdelivr.net\\//.test(r)?{result:!0,cdnBaseURL:"https://cdn.jsdelivr.net/npm/"}:/^https?:\\/\\/(?:[^./]*\\.)*unpkg.com\\//.test(r)?{result:!0,cdnBaseURL:"https://unpkg.com/"}:{result:!1,cdnBaseURL:""}}function O(r){let e=/@scandit\\/web-datacapture-[a-z]+/i.exec(r);return e?e[0]:null}function E(r,e,t){let a=e,o=U(a);if(o.result){let u=O(a);u!=null&&(a=`${o.cdnBaseURL}${u}@${r}/sdc-lib/`)}let i=t.replace(".wasm","");return o.result?{jsURI:`${a}${i}.js`,wasmURI:`${a}${i}.wasm`}:{jsURI:`${a}${i}.js?v=${r}`,wasmURI:`${a}${i}.wasm?v=${r}`}}n();function W(r){return typeof r=="object"&&r!=null&&r.document==null&&"addEventListener"in r&&typeof r.importScripts=="function"}k();n();n();n();n();n();n();var K=r=>r.result!=null&&r.error==null;function y(r,e){return{type:"djinniResult",payload:{id:r.id,className:r.className,methodName:r.methodName,instanceId:r.instanceId,result:e}}}function T(r,e){return{type:"parserLoaderResult",payload:{id:r.id,className:r.className,methodName:r.methodName,result:e}}}function Z(r){try{return{type:"result",result:JSON.parse(r)}}catch(e){return{type:"error",error:e}}}var L=class{constructor(e,t){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=t,W(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),R(p)}get Module(){return this.moduleHandler.get()}setLogLevel(e){s.setLevel(e.args[0]),this.workerFunctions.postMessage(T(e,{type:"result",result:!0}))}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(T(e,{type:"result",result:!0}))}catch(t){this.workerFunctions.postMessage(T(e,{type:"error",error:t}))}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{s.log(s.Level.Error,e)}),this.workerSelf.addEventListener("messageerror",e=>{s.log(s.Level.Error,e)})}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),!0}async performDjinniAction(e){var i,u;let t;if(s.log(s.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let c=e.args[0].toString();if(this.parsers.has(c)){this.workerFunctions.postMessage(y(e,{type:"result",result:c}));return}t=this.createParser(e),s.log(s.Level.Debug,t),this.workerFunctions.postMessage(t);return}let a=this.parsers.get((i=e.instanceId)!=null?i:"");if(a==null){this.workerFunctions.postMessage(y(e,{type:"error",error:`parser is not defined: try to access instance with id ${(u=e.instanceId)!=null?u:""}`}));return}let o=a[e.methodName](...e.args);K(o)?(e.methodName.endsWith("ToJson")&&typeof o.result=="string"&&(o=Z(o.result)),t=y(e,o)):t=y(e,{type:"error",error:o.error}),this.workerFunctions.postMessage(t)}async setup({libraryLocation:e,threadsSupport:t,simdSupport:a,verifyResponseHash:o,referredOrigin:i}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:u,reject:c,promise:m}=new I;this.setupPromise=m;let l=S.sdkVersion();if(l==="")throw new w({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let f=E(l,e,this.getWasmParserFileName(a,t)),{jsURI:d,wasmURI:g}=f;return this.moduleHandler.set({mainScriptUrlOrBlob:d,locateFile:h=>e+h,onMainComplete:()=>{},onRuntimeInitialized:()=>{u()},print:h=>{s.log(s.Level.Info,h)},instantiateWasm:(h,H)=>(M({importObject:h,wasmURI:g,expectedHash:this.getWasmParserExpectedHash(a,t),verifyResponseHash:o,successCallback:H,progressCallback:()=>{},referredOrigin:i}),{})}),await A(d,l)||c(`Couldn\'t retrieve Parser library at ${d}, did you configure the path for it correctly?`),m}createParser(e){var i,u;let t=this.Module.ParserInterface.create(e.args[0]);if(s.log(s.Level.Debug,`Parser:create returns ${t.type}`,t),t.type==="error")return y(e,t);let a=(u=(i=e.args[0])==null?void 0:i.toString())!=null?u:"",o=y(e,{type:"result",result:a});return this.parsers.set(a,t.result),o}getWasmParserExpectedHash(e,t){return t?e?"60331efc3ed0dbef7d6e14b535ab69c3560fb9e4cf5e95de7c925eec4658dcfd":"d91f23199a4963a037bbd8240b6a100bd9787baad618829287cd33e92400d652":e?"71b343f2fb2a79100c7a0626af778aa1d640b5efc031c3056a1c5c44f0fbca78":"b1c89e4b79f219cc369c2ef5cb4d9ed42d8dbb0d6bd74ff250454901f57d3c5a"}getWasmParserFileName(e,t){return t?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};var lr=new L(self,{get:()=>self.Module,set:r=>{self.Module=r}});function ur(r){}})();\n'],{type:"application/javascript"})),r=new Worker(e,t);return URL.revokeObjectURL(e),r}var i=class t{constructor(e){this.moduleName="Parser";this.id=0;this.loadingOptions=e;}static get worker(){var r;let e=(r=a.get("ParserWorker"))!=null?r:o({name:"ParserWorker"});return a.has("ParserWorker")||a.set("ParserWorker",e),e}static create(e){return new t(e)}async load(){var e;await this.sendMessage({id:this.id++,methodName:"load",className:"ParserLoader",args:[{libraryLocation:this.loadingOptions.libraryLocation,simdSupport:this.loadingOptions.simdSupport,threadsSupport:this.loadingOptions.threadsSupport,verifyResponseHash:this.loadingOptions.verifyResponseHash,referredOrigin:(e=this.loadingOptions.referredOrigin)!=null?e:""}]});}async setLogLevel(e){await this.sendMessage({id:this.id++,methodName:"setLogLevel",className:"ParserLoader",args:[e]});}async sendMessage(e){let r=new Deferred,n=l=>{let{data:s}=l;e.id===s.payload.id&&(s.payload.result.type==="result"?r.resolve(s.payload.result.result):r.reject(s.payload.result.error),t.worker.removeEventListener("message",n));};return t.worker.addEventListener("message",n),t.worker.postMessage(e),r.promise}};
2
2
  export{i as a};
package/build/js/index.js CHANGED
@@ -1 +1 @@
1
- export{a as parserLoader}from'./chunks/chunk-7A6JEER5.js';export{a as ParserIssueCode}from'./chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'./chunks/chunk-LANBTLHP.js';export{a as ParserDataFormat}from'./chunks/chunk-LRSHQXFM.js';
1
+ export{a as parserLoader}from'./chunks/chunk-WYF3XTHR.js';export{a as ParserIssueCode}from'./chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'./chunks/chunk-KGZHPSVO.js';export{a as ParserDataFormat}from'./chunks/chunk-LRSHQXFM.js';
@@ -1 +1 @@
1
- export{a as parserLoader}from'./chunks/chunk-7A6JEER5.js';
1
+ export{a as parserLoader}from'./chunks/chunk-WYF3XTHR.js';
@@ -1 +1 @@
1
- export{a as Parser}from'../chunks/chunk-LANBTLHP.js';
1
+ export{a as Parser}from'../chunks/chunk-KGZHPSVO.js';
@@ -1 +1 @@
1
- export{a as ParserIssueCode}from'../chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'../chunks/chunk-LANBTLHP.js';export{a as ParserDataFormat}from'../chunks/chunk-LRSHQXFM.js';
1
+ export{a as ParserIssueCode}from'../chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'../chunks/chunk-KGZHPSVO.js';export{a as ParserDataFormat}from'../chunks/chunk-LRSHQXFM.js';
@@ -1 +1 @@
1
- export{a as ParserInterfaceProxy}from'../../chunks/chunk-G4NISQBY.js';
1
+ export{a as ParserInterfaceProxy}from'../../chunks/chunk-7E4LXQM4.js';
@@ -1 +1 @@
1
- export{a as ParserLoader}from'../../chunks/chunk-FMXPREWL.js';
1
+ export{a as ParserLoader}from'../../chunks/chunk-XM34D7LJ.js';
@@ -1 +1 @@
1
- export{a as ParserComponent}from'../chunks/chunk-FMNS4W3Q.js';
1
+ export{a as ParserComponent}from'../chunks/chunk-G355EQCH.js';
@@ -1 +1 @@
1
- import {a}from'../chunks/chunk-FMNS4W3Q.js';new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function s(e){}export{s as InlineWorker};
1
+ import {a}from'../chunks/chunk-G355EQCH.js';new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function s(e){}export{s as InlineWorker};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scandit/web-datacapture-parser",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "description": "Scandit Data Capture SDK for the Web",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -93,8 +93,8 @@
93
93
  "test-ci-coverage": "jest --ci --coverage --silent"
94
94
  },
95
95
  "peerDependencies": {
96
- "@scandit/web-datacapture-barcode": "8.1.0",
97
- "@scandit/web-datacapture-core": "8.1.0"
96
+ "@scandit/web-datacapture-barcode": "8.1.1",
97
+ "@scandit/web-datacapture-core": "8.1.1"
98
98
  },
99
99
  "dependencies": {
100
100
  "@types/emscripten": "1.40.1"