@authme/core 2.2.0-rc.0 → 2.2.0-rc.6
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.2.0-rc.6](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.5...v2.2.0-rc.6) (2022-12-05)
|
|
6
|
+
|
|
7
|
+
## [2.2.0-rc.5](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.4...v2.2.0-rc.5) (2022-12-03)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- strict error code & error handler ([b6267d5](https://github.com/AuthMe01/web-client-sdk/commit/b6267d57d0a6bf80ef9eddd12243da969b1ebb79))
|
|
12
|
+
|
|
13
|
+
## [2.2.0-rc.4](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.3...v2.2.0-rc.4) (2022-12-01)
|
|
14
|
+
|
|
15
|
+
## [2.2.0-rc.3](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.2...v2.2.0-rc.3) (2022-11-30)
|
|
16
|
+
|
|
17
|
+
## [2.2.0-rc.2](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.1...v2.2.0-rc.2) (2022-11-28)
|
|
18
|
+
|
|
19
|
+
## [2.2.0-rc.1](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.0...v2.2.0-rc.1) (2022-11-18)
|
|
20
|
+
|
|
5
21
|
## [2.2.0-rc.0](https://github.com/AuthMe01/web-client-sdk/compare/v2.1.1...v2.2.0-rc.0) (2022-11-11)
|
|
6
22
|
|
|
7
23
|
### Features
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authme/core",
|
|
3
|
-
"version": "2.2.0-rc.
|
|
3
|
+
"version": "2.2.0-rc.6",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"typings": "./src/index.d.ts",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@authme/util": "2.2.0-rc.
|
|
8
|
+
"@authme/util": "2.2.0-rc.6",
|
|
9
9
|
"three": "^0.136.0",
|
|
10
10
|
"tslib": "^2.3.0"
|
|
11
11
|
}
|
|
@@ -15,13 +15,10 @@ export declare enum ErrorCode {
|
|
|
15
15
|
RECOGNITION_NOT_AVAILABLE = 104,
|
|
16
16
|
RECOGNITION_ERROR = 105,
|
|
17
17
|
INVALID_AUTH_ERROR = 106,
|
|
18
|
-
|
|
19
|
-
FAS_POST_EMPTY_RESULT = 202,
|
|
20
|
-
FAS_POST_RESULT_ERROR = 203,
|
|
21
|
-
FAS_EMPTY_CONFIG_ERROR = 204,
|
|
18
|
+
LIVENESS_NOT_PASSED = 201,
|
|
22
19
|
ID_RECOGNITION_CONFIRM_INFO_ERROR = 301,
|
|
23
|
-
ID_RECOGNITION_UNEXPECTED_ERROR = 399,
|
|
24
20
|
ANTI_FRAUD_TIMEOUT_ERROR = 401,
|
|
21
|
+
SDK_INTERNAL_ERROR = 900,
|
|
25
22
|
NETWORK_ERROR = 901,
|
|
26
23
|
HTTP_ERROR_RESPONSE = 902,
|
|
27
24
|
USER_CANCEL = 903,
|
|
@@ -32,17 +32,14 @@ var ErrorCode;
|
|
|
32
32
|
ErrorCode[ErrorCode["RECOGNITION_NOT_AVAILABLE"] = 104] = "RECOGNITION_NOT_AVAILABLE";
|
|
33
33
|
ErrorCode[ErrorCode["RECOGNITION_ERROR"] = 105] = "RECOGNITION_ERROR";
|
|
34
34
|
ErrorCode[ErrorCode["INVALID_AUTH_ERROR"] = 106] = "INVALID_AUTH_ERROR";
|
|
35
|
-
// 2 for
|
|
36
|
-
ErrorCode[ErrorCode["
|
|
37
|
-
ErrorCode[ErrorCode["FAS_POST_EMPTY_RESULT"] = 202] = "FAS_POST_EMPTY_RESULT";
|
|
38
|
-
ErrorCode[ErrorCode["FAS_POST_RESULT_ERROR"] = 203] = "FAS_POST_RESULT_ERROR";
|
|
39
|
-
ErrorCode[ErrorCode["FAS_EMPTY_CONFIG_ERROR"] = 204] = "FAS_EMPTY_CONFIG_ERROR";
|
|
35
|
+
// 2 for LIVENESS
|
|
36
|
+
ErrorCode[ErrorCode["LIVENESS_NOT_PASSED"] = 201] = "LIVENESS_NOT_PASSED";
|
|
40
37
|
// 3 for ID-Recognition
|
|
41
38
|
ErrorCode[ErrorCode["ID_RECOGNITION_CONFIRM_INFO_ERROR"] = 301] = "ID_RECOGNITION_CONFIRM_INFO_ERROR";
|
|
42
|
-
ErrorCode[ErrorCode["ID_RECOGNITION_UNEXPECTED_ERROR"] = 399] = "ID_RECOGNITION_UNEXPECTED_ERROR";
|
|
43
39
|
// 4 for Anti-fraud
|
|
44
40
|
ErrorCode[ErrorCode["ANTI_FRAUD_TIMEOUT_ERROR"] = 401] = "ANTI_FRAUD_TIMEOUT_ERROR";
|
|
45
41
|
// 9 for common
|
|
42
|
+
ErrorCode[ErrorCode["SDK_INTERNAL_ERROR"] = 900] = "SDK_INTERNAL_ERROR";
|
|
46
43
|
ErrorCode[ErrorCode["NETWORK_ERROR"] = 901] = "NETWORK_ERROR";
|
|
47
44
|
ErrorCode[ErrorCode["HTTP_ERROR_RESPONSE"] = 902] = "HTTP_ERROR_RESPONSE";
|
|
48
45
|
ErrorCode[ErrorCode["USER_CANCEL"] = 903] = "USER_CANCEL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authme-error.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/model/authme-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAItB,YAAY,IAAe,EAAE,QAAa,IAAI;QAHtC,WAAM,GAAQ,IAAI,CAAC;QACnB,UAAK,GAAqB,IAAI,CAAC;QAGrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,2BAA2B,GAAG,IAAI,CAAC,IAAI,CAAC;IACjD,CAAC;IAEM,OAAO,CAAC,IAAe;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IACD,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAvBD,kCAuBC;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"authme-error.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/model/authme-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAItB,YAAY,IAAe,EAAE,QAAa,IAAI;QAHtC,WAAM,GAAQ,IAAI,CAAC;QACnB,UAAK,GAAqB,IAAI,CAAC;QAGrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,2BAA2B,GAAG,IAAI,CAAC,IAAI,CAAC;IACjD,CAAC;IAEM,OAAO,CAAC,IAAe;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IACD,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAvBD,kCAuBC;AAED,IAAY,SAyBX;AAzBD,WAAY,SAAS;IACnB,iBAAiB;IACjB,yEAAyB,CAAA;IACzB,qEAAuB,CAAA;IACvB,6FAAmC,CAAA;IACnC,mFAA8B,CAAA;IAC9B,qFAA+B,CAAA;IAC/B,qEAAuB,CAAA;IACvB,uEAAwB,CAAA;IAExB,iBAAiB;IACjB,yEAAyB,CAAA;IAEzB,uBAAuB;IACvB,qGAAuC,CAAA;IAEvC,mBAAmB;IACnB,mFAA8B,CAAA;IAE9B,eAAe;IACf,uEAAwB,CAAA;IACxB,6DAAmB,CAAA;IACnB,yEAAyB,CAAA;IACzB,yDAAiB,CAAA;IACjB,uEAAwB,CAAA;AAC1B,CAAC,EAzBW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAyBpB"}
|