@alipay/ams-checkout 0.0.1757298389-dev.14 → 0.0.1757298389-dev.16
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.
|
@@ -23,6 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
23
23
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
25
25
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
|
+
import { ELEMENT_SPM_MAP } from "../../../../util/spm-map";
|
|
26
27
|
import { cleanMockup, removeRetentionPopup } from "../../../../component/component.popup.style";
|
|
27
28
|
import { destroyModal } from "../../../../component/popupWindow.style";
|
|
28
29
|
import { ERRORMESSAGE, EVENT, PROMISE_CALLBACK_CODE } from "../../../../constant";
|
|
@@ -411,7 +412,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
411
412
|
recordResult = data;
|
|
412
413
|
resolve(data);
|
|
413
414
|
case 19:
|
|
414
|
-
_context3.next =
|
|
415
|
+
_context3.next = 27;
|
|
415
416
|
break;
|
|
416
417
|
case 21:
|
|
417
418
|
_context3.prev = 21;
|
|
@@ -423,9 +424,14 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
423
424
|
},
|
|
424
425
|
status: ERRORMESSAGE.ERR_DATA_STRUCT_UNRECOGNIZED.status
|
|
425
426
|
};
|
|
427
|
+
_this3.serviceMap.Log.logError({
|
|
428
|
+
title: ELEMENT_SPM_MAP.sdk_element_missKeyData
|
|
429
|
+
}, {
|
|
430
|
+
msg: JSON.stringify(errorResult)
|
|
431
|
+
});
|
|
426
432
|
recordResult = errorResult;
|
|
427
433
|
resolve(errorResult);
|
|
428
|
-
case
|
|
434
|
+
case 27:
|
|
429
435
|
case "end":
|
|
430
436
|
return _context3.stop();
|
|
431
437
|
}
|
|
@@ -608,6 +614,12 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
608
614
|
if (PROMISE_CALLBACK_CODE[errorCode]) {
|
|
609
615
|
error.code = PROMISE_CALLBACK_CODE[errorCode];
|
|
610
616
|
error.message = errorMessage;
|
|
617
|
+
} else {
|
|
618
|
+
this.serviceMap.Log.logError({
|
|
619
|
+
title: ELEMENT_SPM_MAP.sdk_element_missKeyData
|
|
620
|
+
}, {
|
|
621
|
+
rpcTraceId: traceId
|
|
622
|
+
});
|
|
611
623
|
}
|
|
612
624
|
return {
|
|
613
625
|
error: _objectSpread(_objectSpread({}, error), {}, {
|
package/esm/util/spm-map.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const ELEMENT_SPM_MAP: {
|
|
|
10
10
|
sdk_element_handleHeartBeat: string;
|
|
11
11
|
sdk_element_handleInterAction: string;
|
|
12
12
|
sdk_element_callback_error: string;
|
|
13
|
+
sdk_element_missKeyData: string;
|
|
13
14
|
};
|
|
14
15
|
export declare const SPM_MAP: {
|
|
15
16
|
sdk_event_mount_element: string;
|
|
@@ -23,6 +24,7 @@ export declare const SPM_MAP: {
|
|
|
23
24
|
sdk_element_handleHeartBeat: string;
|
|
24
25
|
sdk_element_handleInterAction: string;
|
|
25
26
|
sdk_element_callback_error: string;
|
|
27
|
+
sdk_element_missKeyData: string;
|
|
26
28
|
sdk_error_runtime_error: string;
|
|
27
29
|
sdk_event_sdkQuery_failed: string;
|
|
28
30
|
container_error_error_insert_js: string;
|
package/esm/util/spm-map.js
CHANGED
|
@@ -17,7 +17,8 @@ export var ELEMENT_SPM_MAP = {
|
|
|
17
17
|
auto_apple_pay_success: 'a3753.b107385.c398112',
|
|
18
18
|
sdk_element_handleHeartBeat: 'a3753.b101271.c388217.d624449',
|
|
19
19
|
sdk_element_handleInterAction: 'a3753.b101271.c388217.d630402',
|
|
20
|
-
sdk_element_callback_error: 'a3753.b101271.c388217.d630403'
|
|
20
|
+
sdk_element_callback_error: 'a3753.b101271.c388217.d630403',
|
|
21
|
+
sdk_element_missKeyData: 'a3753.b101271.c388217.d630404'
|
|
21
22
|
};
|
|
22
23
|
export var SPM_MAP = _objectSpread({
|
|
23
24
|
sdk_error_runtime_error: 'a3753.b101271.c388188.d512342',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alipay/ams-checkout",
|
|
3
|
-
"version": "0.0.1757298389-dev.
|
|
3
|
+
"version": "0.0.1757298389-dev.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"main": "esm/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "father build",
|
|
18
18
|
"build:w": "father dev",
|
|
19
|
-
"ci": "
|
|
20
|
-
"cov": "jest --coverage",
|
|
19
|
+
"ci": "tnpm run cov",
|
|
20
|
+
"cov": "jest --coverage --silent",
|
|
21
21
|
"dev": "father dev",
|
|
22
22
|
"format": "prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"",
|
|
23
23
|
"lint": "eslint ./src",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"uuid": "^9.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
+
"@ali/ci": "^4.72.0",
|
|
50
51
|
"@babel/core": "^7.20.7",
|
|
51
52
|
"@babel/preset-env": "^7.20.2",
|
|
52
53
|
"@commitlint/cli": "^17.3.0",
|
|
@@ -55,13 +56,13 @@
|
|
|
55
56
|
"@testing-library/react": "^9.5.0",
|
|
56
57
|
"@types/jest": "^29.2.4",
|
|
57
58
|
"@types/uuid": "^9.0.0",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "
|
|
59
|
-
"@typescript-eslint/parser": "^
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
60
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
60
61
|
"babel-jest": "^29.3.1",
|
|
61
62
|
"babel-loader": "^9.1.0",
|
|
62
63
|
"babel-plugin-import": "^1.13.0",
|
|
63
|
-
"eslint": "^8.
|
|
64
|
-
"eslint-plugin-prettier": "
|
|
64
|
+
"eslint": "^8.56.0",
|
|
65
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
65
66
|
"father": "^4.2.3",
|
|
66
67
|
"jest": "^29.5.0",
|
|
67
68
|
"jest-environment-jsdom": "^29.3.1",
|
|
@@ -77,5 +78,9 @@
|
|
|
77
78
|
},
|
|
78
79
|
"publishConfig": {
|
|
79
80
|
"access": "public"
|
|
81
|
+
},
|
|
82
|
+
"ci": {
|
|
83
|
+
"resourceClass": "L",
|
|
84
|
+
"type": "aci"
|
|
80
85
|
}
|
|
81
86
|
}
|