@authme/engine 2.8.45 → 2.8.46
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/assets/ml_engine_web.js +205 -205
- package/assets/ml_engine_web.simd.js +205 -205
- package/assets/ml_engine_web.simd.wasm +0 -0
- package/assets/ml_engine_web.wasm +0 -0
- package/index.cjs.js +27 -31
- package/index.esm.js +28 -32
- package/package.json +2 -2
- package/index.esm.d.ts +0 -1
- /package/{index.cjs.d.ts → index.d.ts} +0 -0
|
File without changes
|
|
File without changes
|
package/index.cjs.js
CHANGED
|
@@ -8,6 +8,9 @@ require('core-js/modules/es.array-buffer.slice.js');
|
|
|
8
8
|
require('core-js/modules/es.array-buffer.detached.js');
|
|
9
9
|
require('core-js/modules/es.array-buffer.transfer.js');
|
|
10
10
|
require('core-js/modules/es.array-buffer.transfer-to-fixed-length.js');
|
|
11
|
+
require('core-js/modules/es.iterator.constructor.js');
|
|
12
|
+
require('core-js/modules/es.iterator.filter.js');
|
|
13
|
+
require('core-js/modules/es.iterator.map.js');
|
|
11
14
|
require('core-js/modules/es.json.stringify.js');
|
|
12
15
|
require('core-js/modules/es.object.assign.js');
|
|
13
16
|
require('core-js/modules/es.object.from-entries.js');
|
|
@@ -27,11 +30,10 @@ require('core-js/modules/es.typed-array.to-locale-string.js');
|
|
|
27
30
|
require('core-js/modules/es.typed-array.to-reversed.js');
|
|
28
31
|
require('core-js/modules/es.typed-array.to-sorted.js');
|
|
29
32
|
require('core-js/modules/es.typed-array.with.js');
|
|
30
|
-
require('core-js/modules/
|
|
31
|
-
require('core-js/modules/
|
|
32
|
-
require('core-js/modules/
|
|
33
|
-
require('core-js/modules/
|
|
34
|
-
require('core-js/modules/esnext.uint8-array.to-hex.js');
|
|
33
|
+
require('core-js/modules/es.uint8-array.set-from-base64.js');
|
|
34
|
+
require('core-js/modules/es.uint8-array.set-from-hex.js');
|
|
35
|
+
require('core-js/modules/es.uint8-array.to-base64.js');
|
|
36
|
+
require('core-js/modules/es.uint8-array.to-hex.js');
|
|
35
37
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
36
38
|
require('core-js/modules/web.url.js');
|
|
37
39
|
require('core-js/modules/web.url.to-json.js');
|
|
@@ -60,8 +62,8 @@ exports.EAuthMeEngineReturnCode = void 0;
|
|
|
60
62
|
})(exports.EAuthMeEngineReturnCode || (exports.EAuthMeEngineReturnCode = {}));
|
|
61
63
|
|
|
62
64
|
var authEnumModule = /*#__PURE__*/Object.freeze({
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
__proto__: null,
|
|
66
|
+
get EAuthMeEngineReturnCode () { return exports.EAuthMeEngineReturnCode; }
|
|
65
67
|
});
|
|
66
68
|
|
|
67
69
|
exports.EAuthMeCardClass = void 0;
|
|
@@ -159,15 +161,15 @@ exports.EAuthMeIDCardAntiFraudStage = void 0;
|
|
|
159
161
|
})(exports.EAuthMeIDCardAntiFraudStage || (exports.EAuthMeIDCardAntiFraudStage = {}));
|
|
160
162
|
|
|
161
163
|
var idRecognitionEnumModule = /*#__PURE__*/Object.freeze({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
__proto__: null,
|
|
165
|
+
get EAuthMeCardClass () { return exports.EAuthMeCardClass; },
|
|
166
|
+
get EAuthMeCardMatchStatus () { return exports.EAuthMeCardMatchStatus; },
|
|
167
|
+
get EAuthMeCardOCRStatus () { return exports.EAuthMeCardOCRStatus; },
|
|
168
|
+
get EAuthMeIDCardAntiFraudStage () { return exports.EAuthMeIDCardAntiFraudStage; },
|
|
169
|
+
get EAuthMeIDCardAntiFraudStatus () { return exports.EAuthMeIDCardAntiFraudStatus; },
|
|
170
|
+
get EAuthMeIDCardMetalTagStatus () { return exports.EAuthMeIDCardMetalTagStatus; },
|
|
171
|
+
get EAuthMeMRZRecogStatus () { return exports.EAuthMeMRZRecogStatus; },
|
|
172
|
+
get EAuthMeMRZServiceStatus () { return exports.EAuthMeMRZServiceStatus; }
|
|
171
173
|
});
|
|
172
174
|
|
|
173
175
|
exports.EAuthMeFASServiceStatus = void 0;
|
|
@@ -227,13 +229,13 @@ exports.EAuthMeFaceAntiSpoofingStatus = void 0;
|
|
|
227
229
|
})(exports.EAuthMeFaceAntiSpoofingStatus || (exports.EAuthMeFaceAntiSpoofingStatus = {}));
|
|
228
230
|
|
|
229
231
|
var fasRecognitionEnumModule = /*#__PURE__*/Object.freeze({
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
__proto__: null,
|
|
233
|
+
get EAuthMeEyeStatus () { return exports.EAuthMeEyeStatus; },
|
|
234
|
+
get EAuthMeFASServiceStage () { return exports.EAuthMeFASServiceStage; },
|
|
235
|
+
get EAuthMeFASServiceStatus () { return exports.EAuthMeFASServiceStatus; },
|
|
236
|
+
get EAuthMeFaceAntiSpoofingStatus () { return exports.EAuthMeFaceAntiSpoofingStatus; },
|
|
237
|
+
get EAuthMeFacePose () { return exports.EAuthMeFacePose; },
|
|
238
|
+
get EAuthMeMouthStatus () { return exports.EAuthMeMouthStatus; }
|
|
237
239
|
});
|
|
238
240
|
|
|
239
241
|
const defaultMlEngineConfig = {
|
|
@@ -246,7 +248,7 @@ const defaultMlEngineConfig = {
|
|
|
246
248
|
};
|
|
247
249
|
|
|
248
250
|
var name = "authme/sdk";
|
|
249
|
-
var version$1 = "2.8.
|
|
251
|
+
var version$1 = "2.8.46";
|
|
250
252
|
var sdkInfo = {
|
|
251
253
|
name: name,
|
|
252
254
|
version: version$1};
|
|
@@ -371,13 +373,7 @@ function fetchModelContents(modelVersions, dataTransferMethod) {
|
|
|
371
373
|
version: `${parseInt(version)}`
|
|
372
374
|
},
|
|
373
375
|
modelArrayBuffer: await fetchModelContentAsync(code, dataTransferMethod)
|
|
374
|
-
})), 1
|
|
375
|
-
// 下載 model 過程會分為 wait time & download time,
|
|
376
|
-
// concurrent 設定越高,只能起到降低 wait time 的作用,但會拉長單一檔案完成下載的時間,
|
|
377
|
-
// 這會延遲 worker service 裡,載入與解密的時間。
|
|
378
|
-
//
|
|
379
|
-
// 所以 concurrent 建議設定為 1 或 2,盡量讓已下載好的 model 儘早進行載入與解密。
|
|
380
|
-
));
|
|
376
|
+
})), 1));
|
|
381
377
|
}
|
|
382
378
|
class AuthmeFunctionModule {
|
|
383
379
|
async init(config) {
|
package/index.esm.js
CHANGED
|
@@ -6,6 +6,9 @@ import 'core-js/modules/es.array-buffer.slice.js';
|
|
|
6
6
|
import 'core-js/modules/es.array-buffer.detached.js';
|
|
7
7
|
import 'core-js/modules/es.array-buffer.transfer.js';
|
|
8
8
|
import 'core-js/modules/es.array-buffer.transfer-to-fixed-length.js';
|
|
9
|
+
import 'core-js/modules/es.iterator.constructor.js';
|
|
10
|
+
import 'core-js/modules/es.iterator.filter.js';
|
|
11
|
+
import 'core-js/modules/es.iterator.map.js';
|
|
9
12
|
import 'core-js/modules/es.json.stringify.js';
|
|
10
13
|
import 'core-js/modules/es.object.assign.js';
|
|
11
14
|
import 'core-js/modules/es.object.from-entries.js';
|
|
@@ -25,11 +28,10 @@ import 'core-js/modules/es.typed-array.to-locale-string.js';
|
|
|
25
28
|
import 'core-js/modules/es.typed-array.to-reversed.js';
|
|
26
29
|
import 'core-js/modules/es.typed-array.to-sorted.js';
|
|
27
30
|
import 'core-js/modules/es.typed-array.with.js';
|
|
28
|
-
import 'core-js/modules/
|
|
29
|
-
import 'core-js/modules/
|
|
30
|
-
import 'core-js/modules/
|
|
31
|
-
import 'core-js/modules/
|
|
32
|
-
import 'core-js/modules/esnext.uint8-array.to-hex.js';
|
|
31
|
+
import 'core-js/modules/es.uint8-array.set-from-base64.js';
|
|
32
|
+
import 'core-js/modules/es.uint8-array.set-from-hex.js';
|
|
33
|
+
import 'core-js/modules/es.uint8-array.to-base64.js';
|
|
34
|
+
import 'core-js/modules/es.uint8-array.to-hex.js';
|
|
33
35
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
34
36
|
import 'core-js/modules/web.url.js';
|
|
35
37
|
import 'core-js/modules/web.url.to-json.js';
|
|
@@ -39,7 +41,7 @@ import 'core-js/modules/web.url-search-params.has.js';
|
|
|
39
41
|
import 'core-js/modules/web.url-search-params.size.js';
|
|
40
42
|
import { sendRequest, AuthmeError, ErrorCode } from '@authme/core';
|
|
41
43
|
import { Storage, debugTools, isMobile } from '@authme/util';
|
|
42
|
-
import {
|
|
44
|
+
import { shareReplay, filter, from, map, mergeAll, concatMap, of, reduce, defer, firstValueFrom, tap, fromEvent, concatAll, mergeMap } from 'rxjs';
|
|
43
45
|
|
|
44
46
|
var EngineModule;
|
|
45
47
|
(function (EngineModule) {
|
|
@@ -58,8 +60,8 @@ var EAuthMeEngineReturnCode;
|
|
|
58
60
|
})(EAuthMeEngineReturnCode || (EAuthMeEngineReturnCode = {}));
|
|
59
61
|
|
|
60
62
|
var authEnumModule = /*#__PURE__*/Object.freeze({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
__proto__: null,
|
|
64
|
+
get EAuthMeEngineReturnCode () { return EAuthMeEngineReturnCode; }
|
|
63
65
|
});
|
|
64
66
|
|
|
65
67
|
var EAuthMeCardClass;
|
|
@@ -157,15 +159,15 @@ var EAuthMeIDCardAntiFraudStage;
|
|
|
157
159
|
})(EAuthMeIDCardAntiFraudStage || (EAuthMeIDCardAntiFraudStage = {}));
|
|
158
160
|
|
|
159
161
|
var idRecognitionEnumModule = /*#__PURE__*/Object.freeze({
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
__proto__: null,
|
|
163
|
+
get EAuthMeCardClass () { return EAuthMeCardClass; },
|
|
164
|
+
get EAuthMeCardMatchStatus () { return EAuthMeCardMatchStatus; },
|
|
165
|
+
get EAuthMeCardOCRStatus () { return EAuthMeCardOCRStatus; },
|
|
166
|
+
get EAuthMeIDCardAntiFraudStage () { return EAuthMeIDCardAntiFraudStage; },
|
|
167
|
+
get EAuthMeIDCardAntiFraudStatus () { return EAuthMeIDCardAntiFraudStatus; },
|
|
168
|
+
get EAuthMeIDCardMetalTagStatus () { return EAuthMeIDCardMetalTagStatus; },
|
|
169
|
+
get EAuthMeMRZRecogStatus () { return EAuthMeMRZRecogStatus; },
|
|
170
|
+
get EAuthMeMRZServiceStatus () { return EAuthMeMRZServiceStatus; }
|
|
169
171
|
});
|
|
170
172
|
|
|
171
173
|
var EAuthMeFASServiceStatus;
|
|
@@ -225,13 +227,13 @@ var EAuthMeFaceAntiSpoofingStatus;
|
|
|
225
227
|
})(EAuthMeFaceAntiSpoofingStatus || (EAuthMeFaceAntiSpoofingStatus = {}));
|
|
226
228
|
|
|
227
229
|
var fasRecognitionEnumModule = /*#__PURE__*/Object.freeze({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
230
|
+
__proto__: null,
|
|
231
|
+
get EAuthMeEyeStatus () { return EAuthMeEyeStatus; },
|
|
232
|
+
get EAuthMeFASServiceStage () { return EAuthMeFASServiceStage; },
|
|
233
|
+
get EAuthMeFASServiceStatus () { return EAuthMeFASServiceStatus; },
|
|
234
|
+
get EAuthMeFaceAntiSpoofingStatus () { return EAuthMeFaceAntiSpoofingStatus; },
|
|
235
|
+
get EAuthMeFacePose () { return EAuthMeFacePose; },
|
|
236
|
+
get EAuthMeMouthStatus () { return EAuthMeMouthStatus; }
|
|
235
237
|
});
|
|
236
238
|
|
|
237
239
|
const defaultMlEngineConfig = {
|
|
@@ -244,7 +246,7 @@ const defaultMlEngineConfig = {
|
|
|
244
246
|
};
|
|
245
247
|
|
|
246
248
|
var name = "authme/sdk";
|
|
247
|
-
var version$1 = "2.8.
|
|
249
|
+
var version$1 = "2.8.46";
|
|
248
250
|
var sdkInfo = {
|
|
249
251
|
name: name,
|
|
250
252
|
version: version$1};
|
|
@@ -369,13 +371,7 @@ function fetchModelContents(modelVersions, dataTransferMethod) {
|
|
|
369
371
|
version: `${parseInt(version)}`
|
|
370
372
|
},
|
|
371
373
|
modelArrayBuffer: await fetchModelContentAsync(code, dataTransferMethod)
|
|
372
|
-
})), 1
|
|
373
|
-
// 下載 model 過程會分為 wait time & download time,
|
|
374
|
-
// concurrent 設定越高,只能起到降低 wait time 的作用,但會拉長單一檔案完成下載的時間,
|
|
375
|
-
// 這會延遲 worker service 裡,載入與解密的時間。
|
|
376
|
-
//
|
|
377
|
-
// 所以 concurrent 建議設定為 1 或 2,盡量讓已下載好的 model 儘早進行載入與解密。
|
|
378
|
-
));
|
|
374
|
+
})), 1));
|
|
379
375
|
}
|
|
380
376
|
class AuthmeFunctionModule {
|
|
381
377
|
async init(config) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authme/engine",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.46",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"core-js": "^3.6.0",
|
|
6
6
|
"rxjs": "^7.4.0"
|
|
7
7
|
},
|
|
8
8
|
"module": "./index.esm.js",
|
|
9
9
|
"main": "./index.cjs.js",
|
|
10
|
-
"types": "./index.
|
|
10
|
+
"types": "./index.d.ts"
|
|
11
11
|
}
|
package/index.esm.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/index";
|
|
File without changes
|