@forgerock/recognize 0.0.0-beta-20260811162949
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 +21 -0
- package/README.md +56 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +3 -0
- package/dist/src/lib/defs/constants.d.ts +4 -0
- package/dist/src/lib/defs/constants.d.ts.map +1 -0
- package/dist/src/lib/defs/constants.js +19 -0
- package/dist/src/lib/defs/recognize-error-code.d.ts +43 -0
- package/dist/src/lib/defs/recognize-error-code.d.ts.map +1 -0
- package/dist/src/lib/defs/recognize-error-code.js +50 -0
- package/dist/src/lib/defs/recognize-sdk-to-recognize-proxy-error-map.d.ts +3 -0
- package/dist/src/lib/defs/recognize-sdk-to-recognize-proxy-error-map.d.ts.map +1 -0
- package/dist/src/lib/defs/recognize-sdk-to-recognize-proxy-error-map.js +57 -0
- package/dist/src/lib/functions/create-recognize-error.d.ts +4 -0
- package/dist/src/lib/functions/create-recognize-error.d.ts.map +1 -0
- package/dist/src/lib/functions/create-recognize-error.js +19 -0
- package/dist/src/lib/functions/get-recognize-error-code-key.d.ts +4 -0
- package/dist/src/lib/functions/get-recognize-error-code-key.d.ts.map +1 -0
- package/dist/src/lib/functions/get-recognize-error-code-key.js +15 -0
- package/dist/src/lib/functions/set-attributes.d.ts +3 -0
- package/dist/src/lib/functions/set-attributes.d.ts.map +1 -0
- package/dist/src/lib/functions/set-attributes.js +66 -0
- package/dist/src/lib/recognize-sdk/index.d.ts +1248 -0
- package/dist/src/lib/recognize-sdk/index.js +66981 -0
- package/dist/src/lib/recognize-sdk/pthreads/wasm.js +32828 -0
- package/dist/src/lib/recognize-sdk/pthreads/wasm.wasm +0 -0
- package/dist/src/lib/recognize-sdk/wasm.data +0 -0
- package/dist/src/lib/recognize-sdk/wasm.js +31578 -0
- package/dist/src/lib/recognize-sdk/wasm.wasm +0 -0
- package/dist/src/lib/recognize.d.ts +8 -0
- package/dist/src/lib/recognize.d.ts.map +1 -0
- package/dist/src/lib/recognize.js +122 -0
- package/dist/src/lib/recognize.types.d.ts +113 -0
- package/dist/src/lib/recognize.types.d.ts.map +1 -0
- package/dist/src/lib/recognize.types.js +9 -0
- package/dist/src/types.d.ts +2 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +71 -0
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RecognizeWebComponentClient, RecognizeWebComponentConfiguration } from './recognize.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* @function recognize - Returns a client to interact with the PingOne Recognize SDK web components
|
|
4
|
+
* @param {RecognizeWebComponentConfiguration} configuration - Configuration for the PingOne Recognize SDK
|
|
5
|
+
* @returns {RecognizeWebComponentClient}
|
|
6
|
+
*/
|
|
7
|
+
export declare function recognize(configuration: RecognizeWebComponentConfiguration): RecognizeWebComponentClient;
|
|
8
|
+
//# sourceMappingURL=recognize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recognize.d.ts","sourceRoot":"","sources":["../../../src/lib/recognize.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAIV,2BAA2B,EAC3B,kCAAkC,EAKnC,MAAM,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,aAAa,EAAE,kCAAkC,GAChD,2BAA2B,CAwI7B"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 Ping Identity Corporation. All right reserved.
|
|
4
|
+
*
|
|
5
|
+
* This software may be modified and distributed under the terms
|
|
6
|
+
* of the MIT license. See the LICENSE file for details.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { CAMERA_ONLY_DISABLE_STEPS } from './defs/constants.js';
|
|
10
|
+
import { RECOGNIZE_ERROR_CODE } from './defs/recognize-error-code.js';
|
|
11
|
+
import { RECOGNIZE_SDK_TO_RECOGNIZE_PROXY_ERROR_MAP } from './defs/recognize-sdk-to-recognize-proxy-error-map.js';
|
|
12
|
+
import { createRecognizeError } from './functions/create-recognize-error.js';
|
|
13
|
+
import { setAttributes } from './functions/set-attributes.js';
|
|
14
|
+
import { KeylessRecoverableErrorEvent } from './recognize-sdk/index.js';
|
|
15
|
+
/**
|
|
16
|
+
* @function recognize - Returns a client to interact with the PingOne Recognize SDK web components
|
|
17
|
+
* @param {RecognizeWebComponentConfiguration} configuration - Configuration for the PingOne Recognize SDK
|
|
18
|
+
* @returns {RecognizeWebComponentClient}
|
|
19
|
+
*/
|
|
20
|
+
export function recognize(configuration) {
|
|
21
|
+
const config = {
|
|
22
|
+
disableSteps: CAMERA_ONLY_DISABLE_STEPS,
|
|
23
|
+
...configuration,
|
|
24
|
+
};
|
|
25
|
+
const observers = new Set();
|
|
26
|
+
let element = null;
|
|
27
|
+
const aborter = new AbortController();
|
|
28
|
+
const dispatch = (event) => {
|
|
29
|
+
for (const observer of observers) {
|
|
30
|
+
observer.next(event);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const addEventListeners = (element) => {
|
|
34
|
+
const onError = (event) => {
|
|
35
|
+
if (event instanceof KeylessRecoverableErrorEvent) {
|
|
36
|
+
element?.dispose();
|
|
37
|
+
}
|
|
38
|
+
const code = RECOGNIZE_SDK_TO_RECOGNIZE_PROXY_ERROR_MAP[event.error?.message] ??
|
|
39
|
+
RECOGNIZE_ERROR_CODE.SDK_ERROR;
|
|
40
|
+
const error = createRecognizeError(code, { cause: event.error });
|
|
41
|
+
for (const observer of observers) {
|
|
42
|
+
observer.error?.(error);
|
|
43
|
+
}
|
|
44
|
+
observers.clear();
|
|
45
|
+
};
|
|
46
|
+
const onRecognitionFailure = (event) => {
|
|
47
|
+
return onError(new KeylessRecoverableErrorEvent({
|
|
48
|
+
error: new Error('SERVER_RECOGNITION_FAILED', { cause: event.detail }),
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
const onRecoverableError = (event) => onError(event);
|
|
52
|
+
const onSuccess = (event) => {
|
|
53
|
+
for (const observer of observers) {
|
|
54
|
+
observer.complete?.(event.detail);
|
|
55
|
+
}
|
|
56
|
+
observers.clear();
|
|
57
|
+
};
|
|
58
|
+
const onNonCancelable = () => dispatch({ type: 'non-cancelable' });
|
|
59
|
+
const onRecognitionStart = () => dispatch({ type: 'recognition-start' });
|
|
60
|
+
const onStepChange = (event) => dispatch({ type: 'step-change', detail: event.detail });
|
|
61
|
+
const onVideoFrameQuality = (event) => dispatch({ type: 'video-frame-quality', detail: event.detail });
|
|
62
|
+
const options = { signal: aborter.signal };
|
|
63
|
+
element.addEventListener('error', onError, options);
|
|
64
|
+
element.addEventListener('non-cancelable', onNonCancelable, options);
|
|
65
|
+
element.addEventListener('recognition-failure', onRecognitionFailure, options);
|
|
66
|
+
element.addEventListener('recognition-start', onRecognitionStart, options);
|
|
67
|
+
element.addEventListener('recoverable-error', onRecoverableError, options);
|
|
68
|
+
element.addEventListener('step-change', onStepChange, options);
|
|
69
|
+
element.addEventListener('success', onSuccess, options);
|
|
70
|
+
element.addEventListener('video-frame-quality', onVideoFrameQuality, options);
|
|
71
|
+
};
|
|
72
|
+
const client = {
|
|
73
|
+
subscribe: (observer) => {
|
|
74
|
+
observers.add(observer);
|
|
75
|
+
return () => observers.delete(observer);
|
|
76
|
+
},
|
|
77
|
+
async init(options) {
|
|
78
|
+
if (element !== null) {
|
|
79
|
+
return createRecognizeError(RECOGNIZE_ERROR_CODE.SDK_ERROR, {
|
|
80
|
+
cause: 'init() called more than once — call dispose() before re-initializing',
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
await import('./recognize-sdk/index.js');
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
return createRecognizeError(RECOGNIZE_ERROR_CODE.SDK_WEB_ASSEMBLY_IMPORT_FAILED, {
|
|
88
|
+
cause: error,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (options.mode === 'attach') {
|
|
92
|
+
const tag = options.element.tagName;
|
|
93
|
+
if (tag !== 'KL-AUTH' && tag !== 'KL-ENROLL') {
|
|
94
|
+
return createRecognizeError(RECOGNIZE_ERROR_CODE.SDK_ERROR, {
|
|
95
|
+
cause: `invalid element <${tag.toLowerCase()}> — options.element must be a <kl-auth> or <kl-enroll> custom element`,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
element = options.element;
|
|
99
|
+
element.username = options.username;
|
|
100
|
+
setAttributes(element, config);
|
|
101
|
+
addEventListeners(element);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const tag = options.type === 'auth' ? 'kl-auth' : 'kl-enroll';
|
|
105
|
+
element = document.createElement(tag);
|
|
106
|
+
element.username = options.username;
|
|
107
|
+
setAttributes(element, config);
|
|
108
|
+
addEventListeners(element);
|
|
109
|
+
options.container.appendChild(element);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
dispose: () => {
|
|
113
|
+
if (element === null)
|
|
114
|
+
return;
|
|
115
|
+
aborter.abort();
|
|
116
|
+
element.remove();
|
|
117
|
+
element = null;
|
|
118
|
+
observers.clear();
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
return client;
|
|
122
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { LocalizationPack, LocalizationVariables, LoggerLevel, Theme } from '@aracna/core';
|
|
2
|
+
import type { RECOGNIZE_ERROR_CODE } from './defs/recognize-error-code.js';
|
|
3
|
+
import type { KeylessAuthElement, KeylessCameraInstruction, KeylessComponentsStep, KeylessEnrollElement, KeylessStepChangeEventDetail, KeylessSuccessEventDetail, KeylessThemeOptions, KeylessVideoFrameQualityEventDetail } from './recognize-sdk/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'kl-auth': KeylessAuthElement;
|
|
7
|
+
'kl-enroll': KeylessEnrollElement;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/** @public */
|
|
11
|
+
export interface CreateRecognizeErrorOptions {
|
|
12
|
+
cause?: unknown;
|
|
13
|
+
}
|
|
14
|
+
/** @public */
|
|
15
|
+
export interface RecognizeError {
|
|
16
|
+
error: {
|
|
17
|
+
cause?: unknown;
|
|
18
|
+
code: RecognizeErrorCodeValue;
|
|
19
|
+
message: RecognizeErrorCodeKey;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** @public */
|
|
23
|
+
export type RecognizeErrorCodeKey = keyof typeof RECOGNIZE_ERROR_CODE;
|
|
24
|
+
/** @public */
|
|
25
|
+
export type RecognizeErrorCodeValue = (typeof RECOGNIZE_ERROR_CODE)[RecognizeErrorCodeKey];
|
|
26
|
+
/** @public */
|
|
27
|
+
export type RecognizeSessionType = 'auth' | 'enroll';
|
|
28
|
+
/**
|
|
29
|
+
* Events
|
|
30
|
+
*/
|
|
31
|
+
/** */
|
|
32
|
+
/** @public */
|
|
33
|
+
export type RecognizeWebComponentStepChangeEventDetail = KeylessStepChangeEventDetail;
|
|
34
|
+
/** @public */
|
|
35
|
+
export type RecognizeWebComponentVideoFrameQualityEventDetail = KeylessVideoFrameQualityEventDetail;
|
|
36
|
+
/**
|
|
37
|
+
* Web Components Client
|
|
38
|
+
*/
|
|
39
|
+
/** */
|
|
40
|
+
/** @public */
|
|
41
|
+
export interface RecognizeWebComponentClient {
|
|
42
|
+
subscribe: (observer: RecognizeWebComponentObserver) => RecognizeWebComponentUnsubscribe;
|
|
43
|
+
init(options: RecognizeWebComponentInitOptions): Promise<RecognizeError | void>;
|
|
44
|
+
dispose: () => void;
|
|
45
|
+
}
|
|
46
|
+
/** @public */
|
|
47
|
+
export type RecognizeWebComponentCompleteData = KeylessSuccessEventDetail;
|
|
48
|
+
/** @public */
|
|
49
|
+
export interface RecognizeWebComponentConfiguration {
|
|
50
|
+
aspectRatio?: number | string;
|
|
51
|
+
authorizationToken?: string;
|
|
52
|
+
cameraAspectRatio?: number | string;
|
|
53
|
+
cameraInstructions?: KeylessCameraInstruction[];
|
|
54
|
+
customer: string;
|
|
55
|
+
datadogEnv?: string;
|
|
56
|
+
datadogToken?: string;
|
|
57
|
+
disableDatadog?: boolean;
|
|
58
|
+
disableLogger?: boolean;
|
|
59
|
+
disablePoweredBy?: boolean;
|
|
60
|
+
disableSteps?: KeylessComponentsStep[];
|
|
61
|
+
enableCameraFlash?: boolean;
|
|
62
|
+
enableCameraInstructions?: boolean;
|
|
63
|
+
enableCameraInstructionsIcons?: boolean;
|
|
64
|
+
enableDatadogPII?: boolean;
|
|
65
|
+
enableWasmPthreads?: boolean;
|
|
66
|
+
lang?: string;
|
|
67
|
+
localizationPacks?: LocalizationPack[];
|
|
68
|
+
localizationVariables?: LocalizationVariables;
|
|
69
|
+
loggerLevel?: LoggerLevel;
|
|
70
|
+
operationID?: string;
|
|
71
|
+
seedEntropy?: boolean;
|
|
72
|
+
serviceURL: string;
|
|
73
|
+
theme?: Theme;
|
|
74
|
+
themeOptions?: KeylessThemeOptions;
|
|
75
|
+
transactionData?: string;
|
|
76
|
+
wasmBinaryURL?: string;
|
|
77
|
+
wasmDataURL?: string;
|
|
78
|
+
wasmScriptURL?: string;
|
|
79
|
+
}
|
|
80
|
+
/** @public */
|
|
81
|
+
export type RecognizeWebComponent = KeylessAuthElement | KeylessEnrollElement;
|
|
82
|
+
/** @public */
|
|
83
|
+
export type RecognizeWebComponentEvent = {
|
|
84
|
+
type: 'non-cancelable';
|
|
85
|
+
} | {
|
|
86
|
+
type: 'recognition-start';
|
|
87
|
+
} | {
|
|
88
|
+
type: 'step-change';
|
|
89
|
+
detail: RecognizeWebComponentStepChangeEventDetail;
|
|
90
|
+
} | {
|
|
91
|
+
type: 'video-frame-quality';
|
|
92
|
+
detail: RecognizeWebComponentVideoFrameQualityEventDetail;
|
|
93
|
+
};
|
|
94
|
+
/** @public */
|
|
95
|
+
export type RecognizeWebComponentInitOptions = {
|
|
96
|
+
mode: 'mount';
|
|
97
|
+
container: HTMLElement;
|
|
98
|
+
type: RecognizeSessionType;
|
|
99
|
+
username: string;
|
|
100
|
+
} | {
|
|
101
|
+
mode: 'attach';
|
|
102
|
+
element: HTMLElement;
|
|
103
|
+
username: string;
|
|
104
|
+
};
|
|
105
|
+
/** @public */
|
|
106
|
+
export interface RecognizeWebComponentObserver {
|
|
107
|
+
next: (event: RecognizeWebComponentEvent) => void;
|
|
108
|
+
error?: (error: RecognizeError) => void;
|
|
109
|
+
complete?: (data: RecognizeWebComponentCompleteData) => void;
|
|
110
|
+
}
|
|
111
|
+
/** @public */
|
|
112
|
+
export type RecognizeWebComponentUnsubscribe = () => void;
|
|
113
|
+
//# sourceMappingURL=recognize.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recognize.types.d.ts","sourceRoot":"","sources":["../../../src/lib/recognize.types.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEhG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,mCAAmC,EACpC,MAAM,0BAA0B,CAAC;AAElC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,kBAAkB,CAAC;QAC9B,WAAW,EAAE,oBAAoB,CAAC;KACnC;CACF;AAED,cAAc;AACd,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,cAAc;AACd,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE;QACL,KAAK,CAAC,EAAE,OAAO,CAAC;QACh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A;CAAE,GACvF;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,cAAc;AACd,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAClD,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,iCAAiC,KAAK,IAAI,CAAC;CAC9D;AAED,cAAc;AACd,MAAM,MAAM,gCAAgC,GAAG,MAAM,IAAI,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { CreateRecognizeErrorOptions, RecognizeError, RecognizeErrorCodeKey, RecognizeErrorCodeValue, RecognizeSessionType, RecognizeWebComponentClient, RecognizeWebComponentCompleteData, RecognizeWebComponentConfiguration, RecognizeWebComponentEvent, RecognizeWebComponentInitOptions, RecognizeWebComponentObserver, RecognizeWebComponentStepChangeEventDetail, RecognizeWebComponentUnsubscribe, RecognizeWebComponentVideoFrameQualityEventDetail, } from './lib/recognize.types.js';
|
|
2
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,2BAA2B,EAC3B,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,0CAA0C,EAC1C,gCAAgC,EAChC,iDAAiD,GAClD,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"5.8.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@forgerock/recognize",
|
|
3
|
+
"version": "0.0.0-beta-20260811162949",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/ForgeRock/ping-javascript-sdk.git",
|
|
7
|
+
"directory": "packages/recognize"
|
|
8
|
+
},
|
|
9
|
+
"description": "Facial recognition client for the Ping JavaScript SDK",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "ForgeRock",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"dist/src/lib/recognize-sdk/index.js"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/src/index.d.ts",
|
|
19
|
+
"import": "./dist/src/index.js",
|
|
20
|
+
"default": "./dist/src/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./package.json": "./package.json",
|
|
23
|
+
"./types": "./dist/src/types.js"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/src/index.js",
|
|
26
|
+
"module": "./dist/src/index.js",
|
|
27
|
+
"types": "./dist/src/index.d.ts",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@aracna/core": "^1.5.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@aracna/web-components": "^1.1.18"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"nx": {
|
|
41
|
+
"tags": [
|
|
42
|
+
"scope:package"
|
|
43
|
+
],
|
|
44
|
+
"targets": {
|
|
45
|
+
"build": {
|
|
46
|
+
"executor": "@nx/js:tsc",
|
|
47
|
+
"outputs": [
|
|
48
|
+
"{options.outputPath}"
|
|
49
|
+
],
|
|
50
|
+
"options": {
|
|
51
|
+
"outputPath": "packages/recognize/dist",
|
|
52
|
+
"main": "packages/recognize/src/index.ts",
|
|
53
|
+
"tsConfig": "packages/recognize/tsconfig.lib.json",
|
|
54
|
+
"generatePackageJson": false,
|
|
55
|
+
"assets": [
|
|
56
|
+
{
|
|
57
|
+
"input": "packages/recognize/src/lib/recognize-sdk",
|
|
58
|
+
"glob": "**/*",
|
|
59
|
+
"output": "./src/lib/recognize-sdk"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"lint": "pnpm nx nxLint",
|
|
68
|
+
"test": "pnpm nx nxTest",
|
|
69
|
+
"test:watch": "pnpm nx nxTest --watch"
|
|
70
|
+
}
|
|
71
|
+
}
|