@scandit/web-datacapture-parser 7.0.0-beta.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 +4 -0
- package/README.md +3 -0
- package/THIRD-PARTY.txt +73 -0
- package/build/js/chunks/chunk-2APDEN7H.js +3 -0
- package/build/js/chunks/chunk-2UOKL3I5.js +7 -0
- package/build/js/chunks/chunk-4XMQD7QU.js +6 -0
- package/build/js/chunks/chunk-6OAFJ67I.js +8 -0
- package/build/js/chunks/chunk-EBB5ZAIR.js +3 -0
- package/build/js/chunks/chunk-IJVANPAQ.js +3 -0
- package/build/js/chunks/chunk-IMSVTD2L.js +6 -0
- package/build/js/chunks/chunk-K74I4SRW.js +3 -0
- package/build/js/chunks/chunk-TQGBSFHQ.js +5 -0
- package/build/js/chunks/chunk-U5ZZ3UCW.js +3 -0
- package/build/js/chunks/chunk-UMSFEFZC.js +1 -0
- package/build/js/chunks/chunk-XO2EOL4N.js +3 -0
- package/build/js/chunks/chunk-Z3D22YY7.js +14 -0
- package/build/js/global.d.d.ts +36 -0
- package/build/js/global.d.js +1 -0
- package/build/js/index.d.ts +7 -0
- package/build/js/index.js +4 -0
- package/build/js/moduleLoader.d.ts +5 -0
- package/build/js/moduleLoader.js +1 -0
- package/build/js/parser/ParsedData.d.ts +31 -0
- package/build/js/parser/ParsedData.js +1 -0
- package/build/js/parser/Parser.d.ts +25 -0
- package/build/js/parser/Parser.js +1 -0
- package/build/js/parser/ParserDataFormat.d.ts +9 -0
- package/build/js/parser/ParserDataFormat.js +1 -0
- package/build/js/parser/index.d.ts +6 -0
- package/build/js/parser/index.js +3 -0
- package/build/js/parser/private/ParserInterfaceProxy.d.ts +20 -0
- package/build/js/parser/private/ParserInterfaceProxy.js +1 -0
- package/build/js/parser/private/ParserLoader.d.ts +22 -0
- package/build/js/parser/private/ParserLoader.js +1 -0
- package/build/js/parser/private/ParserSettings.d.ts +13 -0
- package/build/js/parser/private/ParserSettings.js +1 -0
- package/build/js/parser/private/WorkersRegistry.d.ts +3 -0
- package/build/js/parser/private/WorkersRegistry.js +1 -0
- package/build/js/parser/private/sdcParserCommon.d.ts +13 -0
- package/build/js/parser/private/sdcParserCommon.js +3 -0
- package/build/js/parser/private/sdcParserInternal.d.ts +28 -0
- package/build/js/parser/private/sdcParserInternal.js +1 -0
- package/build/js/parser/private/sdcParserModule.d.ts +5 -0
- package/build/js/parser/private/sdcParserModule.js +1 -0
- package/build/js/private/decorators/AbstractProxyableClass.d.ts +14 -0
- package/build/js/private/decorators/AbstractProxyableClass.js +1 -0
- package/build/js/private/decorators/Proxyable.d.ts +16 -0
- package/build/js/private/decorators/Proxyable.js +1 -0
- package/build/js/sdcParserModule-D2LEjMWn.d.ts +47 -0
- package/build/js/worker/ParserComponent.d.ts +35 -0
- package/build/js/worker/ParserComponent.js +1 -0
- package/build/js/worker/inlineWorker.d.d.ts +4 -0
- package/build/js/worker/inlineWorker.d.js +1 -0
- package/build/js/worker/parser.inlineWorker.d.ts +3 -0
- package/build/js/worker/parser.inlineWorker.js +5 -0
- package/build/js/worker/proxyableWorkerRelated.d.ts +120 -0
- package/build/js/worker/proxyableWorkerRelated.js +1 -0
- package/package.json +111 -0
- package/sdc-lib/resources/models/barcode_classification_default_model.5ed1ecfaacbd108767a80013d11d9af73b8e1d5e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default_model.f88251f1bff0c68526d9898ef4c8f3b411c3c59e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default_model.acd01c12893d98af3a7e472200dbce4afd57631d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_french_post_default_model.e1d7ffb4d1fb636b1c267d2da0ad6003584e668d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default_model.7852c9b58cc2d253466ca3ea60bbd02ca09533ca.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default_model.058a356e6c57475ec928de2f95440aefa46ed5fe.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default_model.54c8ddfd8620c8b508f4108fcba6529ce45f8440.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_upu_enhanced_orange.656bffc22efe3137515d791184b1aa471d439310.model +0 -0
- package/sdc-lib/resources/models/eu_dl_localization_model.579be0f8cae6c931b93e199d1afec3b61542474c.model +0 -0
- package/sdc-lib/resources/models/id_ocr_model.f5b3ffba2d21fa97fa4945f0bb0c1cff9651c677.model +0 -0
- package/sdc-lib/resources/models/invalidated_id_classification_default.1f8f6e0345ece7d50a7126f2e5d15aa6b2e2a9bf.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization_model.98a5b38e889546c69f1d43beeda91071ad132340.model +0 -0
- package/sdc-lib/resources/models/mrz_localization_model.87d7e0dacb3845548449cc8ccb78526d93212cff.model +0 -0
- package/sdc-lib/resources/models/ocr_mrz_default_model.e0dd4c48916ff4ee266439f87cc68eb1793093c3.model +0 -0
- package/sdc-lib/resources/models/uk_dl_code_localization_model.579be0f8cae6c931b93e199d1afec3b61542474c.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-pthreads.js +1 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-pthreads.worker.js +1 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-simd-pthreads.js +1 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-simd-pthreads.worker.js +1 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-simd.js +1 -0
- package/sdc-lib/scandit-datacapture-sdk-parser-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-parser.js +1 -0
- package/sdc-lib/scandit-datacapture-sdk-parser.wasm +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DataCaptureComponent } from '@scandit/web-datacapture-core';
|
|
2
|
+
import { ParserDataFormat } from './parser/ParserDataFormat.js';
|
|
3
|
+
import { ParsedDataInterface, ParserIssueInterface } from './parser/private/sdcParserInternal.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Copyright 2021 Snap, Inc.
|
|
7
|
+
* Copyright 2024 Scandit AG
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
interface ResultOutcome<T> {
|
|
22
|
+
type: "result";
|
|
23
|
+
result: T;
|
|
24
|
+
}
|
|
25
|
+
interface ErrorOutcome<E> {
|
|
26
|
+
type: "error";
|
|
27
|
+
error: E;
|
|
28
|
+
}
|
|
29
|
+
type ResultOrError<T, E> = ResultOutcome<T> | ErrorOutcome<E>;
|
|
30
|
+
|
|
31
|
+
interface ParserInterface {
|
|
32
|
+
getIdentifier(): ResultOrError<string, string>;
|
|
33
|
+
parseString(data: string): ResultOrError<ParsedDataInterface, ParserIssueInterface>;
|
|
34
|
+
parseRawData(data: Uint8Array): ResultOrError<ParsedDataInterface, ParserIssueInterface>;
|
|
35
|
+
parseStringToJson(data: string): ResultOrError<string, string>;
|
|
36
|
+
parseRawDataToJson(data: Uint8Array): ResultOrError<string, string>;
|
|
37
|
+
setOptions(options: string): ResultOrError<boolean, string>;
|
|
38
|
+
asDataCaptureComponent(): ResultOrError<DataCaptureComponent, string>;
|
|
39
|
+
}
|
|
40
|
+
interface ParserInterface_statics {
|
|
41
|
+
create(dataFormat: ParserDataFormat): ResultOrError<ParserInterface, string>;
|
|
42
|
+
}
|
|
43
|
+
interface SdcParserModule_statics {
|
|
44
|
+
ParserInterface: ParserInterface_statics;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type { ParserInterface_statics as P, ResultOrError as R, SdcParserModule_statics as S, ParserInterface as a };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ParserInterfaceResultMessage, ParserLoadResult, ParserSetLogLevelResult, AugmentedWorker, ParserModule, ParserSetLogLevelAction, ParserLoadAction, ParserInterfaceActionMessage } from './proxyableWorkerRelated.js';
|
|
2
|
+
import '../sdcParserModule-D2LEjMWn.js';
|
|
3
|
+
import '@scandit/web-datacapture-core';
|
|
4
|
+
import '../parser/ParserDataFormat.js';
|
|
5
|
+
import '../parser/private/sdcParserInternal.js';
|
|
6
|
+
import '../parser/private/sdcParserCommon.js';
|
|
7
|
+
|
|
8
|
+
interface ModuleHandler<M extends EmscriptenModule> {
|
|
9
|
+
get: () => M;
|
|
10
|
+
set: (v: M) => void;
|
|
11
|
+
}
|
|
12
|
+
interface ParserWorkerFunctions {
|
|
13
|
+
postMessage: (message: ParserInterfaceResultMessage | ParserLoadResult | ParserSetLogLevelResult, transfer?: Transferable[]) => void;
|
|
14
|
+
}
|
|
15
|
+
declare class ParserComponent {
|
|
16
|
+
private parsers;
|
|
17
|
+
private readonly workerFunctions;
|
|
18
|
+
private readonly workerSelf;
|
|
19
|
+
private onMessageListener;
|
|
20
|
+
private moduleHandler;
|
|
21
|
+
private setupPromise;
|
|
22
|
+
constructor(workerSelf: AugmentedWorker<ParserModule>, moduleHandler: ModuleHandler<ParserModule>);
|
|
23
|
+
private get Module();
|
|
24
|
+
setLogLevel(action: ParserSetLogLevelAction): void;
|
|
25
|
+
load(action: ParserLoadAction): Promise<void>;
|
|
26
|
+
listenToMessages(): void;
|
|
27
|
+
onMessage(event: MessageEvent<ParserInterfaceActionMessage | ParserLoadAction | ParserSetLogLevelAction>): boolean;
|
|
28
|
+
performDjinniAction(action: ParserInterfaceActionMessage): Promise<void>;
|
|
29
|
+
private setup;
|
|
30
|
+
private createParser;
|
|
31
|
+
private getWasmParserExpectedHash;
|
|
32
|
+
private getWasmParserFileName;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ParserComponent, type ParserWorkerFunctions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as ParserComponent } from '../chunks/chunk-Z3D22YY7.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { R as ResultOrError, P as ParserInterface_statics, a as ParserInterface } from '../sdcParserModule-D2LEjMWn.js';
|
|
2
|
+
import { OverrideState, Logger } from '@scandit/web-datacapture-core';
|
|
3
|
+
import '../parser/ParserDataFormat.js';
|
|
4
|
+
import '../parser/private/sdcParserInternal.js';
|
|
5
|
+
import '../parser/private/sdcParserCommon.js';
|
|
6
|
+
|
|
7
|
+
type ValuesOf<T> = T[keyof T];
|
|
8
|
+
type Djinni = "djinni";
|
|
9
|
+
type DjinniActionMessageKey = `${Djinni}Action`;
|
|
10
|
+
type DjinniResultMessageKey = `${Djinni}Result`;
|
|
11
|
+
type ClassInfo<T> = {
|
|
12
|
+
[K in keyof T]: T[K] extends (...arguments_: any[]) => any ? {
|
|
13
|
+
method: T[K];
|
|
14
|
+
methodName: K extends string ? K : never;
|
|
15
|
+
className: T extends {
|
|
16
|
+
constructor: {
|
|
17
|
+
name: infer ClassName;
|
|
18
|
+
};
|
|
19
|
+
} ? ClassName : never;
|
|
20
|
+
args: Parameters<T[K]>;
|
|
21
|
+
result: ReturnType<T[K]>;
|
|
22
|
+
} : never;
|
|
23
|
+
};
|
|
24
|
+
interface BaseAction {
|
|
25
|
+
id: number;
|
|
26
|
+
instanceId?: string;
|
|
27
|
+
command: DjinniActionMessageKey;
|
|
28
|
+
}
|
|
29
|
+
interface DjinniAction<C> extends BaseAction {
|
|
30
|
+
className: ValuesOf<ClassInfo<C>>["className"];
|
|
31
|
+
methodName: ValuesOf<ClassInfo<C>>["methodName"];
|
|
32
|
+
args: ValuesOf<ClassInfo<C>>["args"];
|
|
33
|
+
}
|
|
34
|
+
interface DjinniResult<T> {
|
|
35
|
+
type: DjinniResultMessageKey;
|
|
36
|
+
payload: {
|
|
37
|
+
id: number;
|
|
38
|
+
instanceId?: string;
|
|
39
|
+
className: ValuesOf<ClassInfo<T>>["className"];
|
|
40
|
+
methodName: ValuesOf<ClassInfo<T>>["methodName"];
|
|
41
|
+
result: ValuesOf<ClassInfo<T>>["result"];
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
interface ParserCreateAction extends BaseAction {
|
|
45
|
+
methodName: "create";
|
|
46
|
+
className: "ParserInterface";
|
|
47
|
+
args: [...Parameters<ParserInterface_statics["create"]>];
|
|
48
|
+
}
|
|
49
|
+
interface ParserLoadAction {
|
|
50
|
+
id: number;
|
|
51
|
+
methodName: "load";
|
|
52
|
+
className: "ParserLoader";
|
|
53
|
+
args: [
|
|
54
|
+
{
|
|
55
|
+
libraryLocation: string;
|
|
56
|
+
overrideSimdSupport: OverrideState;
|
|
57
|
+
overrideThreadsSupport: OverrideState;
|
|
58
|
+
verifyResponseHash: boolean;
|
|
59
|
+
referredOrigin: string;
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
interface ParserLoadResult {
|
|
64
|
+
type: "parserLoaderResult";
|
|
65
|
+
payload: {
|
|
66
|
+
id: number;
|
|
67
|
+
className: "ParserLoader";
|
|
68
|
+
methodName: "load";
|
|
69
|
+
result: ResultOrError<boolean, Error>;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
interface ParserSetLogLevelAction {
|
|
73
|
+
id: number;
|
|
74
|
+
methodName: "setLogLevel";
|
|
75
|
+
className: "ParserLoader";
|
|
76
|
+
args: [Logger.Level];
|
|
77
|
+
}
|
|
78
|
+
interface ParserSetLogLevelResult {
|
|
79
|
+
type: "parserLoaderResult";
|
|
80
|
+
payload: {
|
|
81
|
+
id: number;
|
|
82
|
+
className: "ParserLoader";
|
|
83
|
+
methodName: "setLogLevel";
|
|
84
|
+
result: ResultOrError<boolean, Error>;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
interface ParserCreateResult {
|
|
88
|
+
type: DjinniResultMessageKey;
|
|
89
|
+
payload: {
|
|
90
|
+
id: number;
|
|
91
|
+
instanceId?: string;
|
|
92
|
+
className: "ParserInterface";
|
|
93
|
+
methodName: "create";
|
|
94
|
+
result: ResultOrError<string, string>;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
type ProxyableActionMessage = ParserInterfaceActionMessage;
|
|
98
|
+
type ProxyableResultMessage = ParserInterfaceResultMessage;
|
|
99
|
+
interface SenderParserWorker extends Omit<Worker, "postMessage"> {
|
|
100
|
+
onmessage: ((this: Worker, event_: MessageEvent<ProxyableResultMessage>) => void) | null;
|
|
101
|
+
postMessage: (message: ProxyableActionMessage, transfer?: Transferable[]) => void;
|
|
102
|
+
}
|
|
103
|
+
interface ReceiverParserWorker extends Omit<Worker, "postMessage"> {
|
|
104
|
+
onmessage: ((this: Worker, event_: MessageEvent) => void) | null;
|
|
105
|
+
postMessage: (message: ProxyableResultMessage | ParserLoadResult | ParserSetLogLevelResult, transfer?: Transferable[]) => void;
|
|
106
|
+
}
|
|
107
|
+
interface ParserModule extends EmscriptenModule {
|
|
108
|
+
ParserInterface: ParserInterface_statics;
|
|
109
|
+
}
|
|
110
|
+
type AugmentedWorker<M extends EmscriptenModule> = ReceiverParserWorker & {
|
|
111
|
+
Module: M;
|
|
112
|
+
};
|
|
113
|
+
interface ModuleHandler<M extends ParserModule> {
|
|
114
|
+
get: () => M;
|
|
115
|
+
set: (v: M) => void;
|
|
116
|
+
}
|
|
117
|
+
type ParserInterfaceActionMessage = DjinniAction<ParserInterface> | ParserCreateAction;
|
|
118
|
+
type ParserInterfaceResultMessage = DjinniResult<ParserInterface> | ParserCreateResult;
|
|
119
|
+
|
|
120
|
+
export type { AugmentedWorker, ClassInfo, Djinni, DjinniActionMessageKey, ModuleHandler, ParserInterfaceActionMessage, ParserInterfaceResultMessage, ParserLoadAction, ParserLoadResult, ParserModule, ParserSetLogLevelAction, ParserSetLogLevelResult, ProxyableActionMessage, ProxyableResultMessage, ReceiverParserWorker, SenderParserWorker, ValuesOf };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scandit/web-datacapture-parser",
|
|
3
|
+
"version": "7.0.0-beta.1",
|
|
4
|
+
"description": "Scandit Data Capture SDK for the Web",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"engines": {
|
|
8
|
+
"npm": ">=7.0.0",
|
|
9
|
+
"node": ">=16.0.0"
|
|
10
|
+
},
|
|
11
|
+
"private": false,
|
|
12
|
+
"types": "./build/js/index.d.ts",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./build/js/index.js",
|
|
15
|
+
"module": "./build/js/index.js",
|
|
16
|
+
"browser": "./build/js/index.js",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./build/js/index.d.ts",
|
|
21
|
+
"import": "./build/js/index.js",
|
|
22
|
+
"default": "./build/js/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./sdc-lib/*": {
|
|
25
|
+
"import": "./sdc-lib/*",
|
|
26
|
+
"default": "./sdc-lib/*"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"author": {
|
|
30
|
+
"name": "Scandit",
|
|
31
|
+
"email": "support@scandit.com"
|
|
32
|
+
},
|
|
33
|
+
"contributors": [
|
|
34
|
+
{
|
|
35
|
+
"name": "Pasquale Mangialavori",
|
|
36
|
+
"email": "pasquale@scandit.com"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Anthony Penna",
|
|
40
|
+
"email": "anthony@scandit.com"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "S\u00e9bastien Roch",
|
|
44
|
+
"email": "sebastien@scandit.com"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Lorenzo W\u00f6lckner",
|
|
48
|
+
"email": "lorenzo@scandit.com"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"homepage": "https://www.scandit.com/products/sdk-web/",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"email": "support@scandit.com"
|
|
54
|
+
},
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "https://github.com/scandit"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"scandit",
|
|
61
|
+
"barcode",
|
|
62
|
+
"data capture",
|
|
63
|
+
"capture",
|
|
64
|
+
"qr",
|
|
65
|
+
"scan",
|
|
66
|
+
"scanner",
|
|
67
|
+
"scanning",
|
|
68
|
+
"code",
|
|
69
|
+
"webassembly",
|
|
70
|
+
"sdk",
|
|
71
|
+
"javascript",
|
|
72
|
+
"typescript"
|
|
73
|
+
],
|
|
74
|
+
"files": [
|
|
75
|
+
"package.json",
|
|
76
|
+
"README.md",
|
|
77
|
+
"README.txt",
|
|
78
|
+
"LICENSE",
|
|
79
|
+
"THIRD-PARTY.txt",
|
|
80
|
+
"build/",
|
|
81
|
+
"sdc-lib/"
|
|
82
|
+
],
|
|
83
|
+
"prettier": "@shared/prettier-config",
|
|
84
|
+
"scripts": {
|
|
85
|
+
"types-watch": "tsc -p tsconfig.json -w --noEmit --preserveWatchOutput",
|
|
86
|
+
"types:check": "tsc -p tsconfig.json --noEmit",
|
|
87
|
+
"build": "npx tsup",
|
|
88
|
+
"build-coverage": "COVERAGE=true npx tsup",
|
|
89
|
+
"build-dev": "NODE_ENV=debug npx tsup",
|
|
90
|
+
"build-watch": "NODE_ENV=debug npx tsup --watch",
|
|
91
|
+
"clean": "rm -rf build/* coverage/* .nyc_output/*",
|
|
92
|
+
"test": "jest",
|
|
93
|
+
"test-ci": "jest --ci",
|
|
94
|
+
"test-ci-coverage": "jest --ci --coverage",
|
|
95
|
+
"lint": "eslint --cache .",
|
|
96
|
+
"lint-fix": "eslint --cache --fix .",
|
|
97
|
+
"lint-diff": "eslint --config .eslintrc.diff.cjs --cache ."
|
|
98
|
+
},
|
|
99
|
+
"lint-staged": {
|
|
100
|
+
"*.{js,jsx,ts,tsx}": [
|
|
101
|
+
"eslint --config .eslintrc.diff.cjs --fix"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"peerDependencies": {
|
|
105
|
+
"@scandit/web-datacapture-barcode": "*",
|
|
106
|
+
"@scandit/web-datacapture-core": "7.0.0-beta.1"
|
|
107
|
+
},
|
|
108
|
+
"dependencies": {
|
|
109
|
+
"@types/emscripten": "^1.39.13"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|