@alipay/ams-checkout 0.0.1730107332-dev.12 → 0.0.1730107332-dev.15

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.
@@ -409,7 +409,7 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
409
409
  _context4.prev = 0;
410
410
  productSceneVersion = this.paymentContext.paymentSessionObj.paymentSessionConfig.productSceneVersion;
411
411
  nonCompliant = (_this$paymentContext$4 = this.paymentContext.paymentSessionObj.action) === null || _this$paymentContext$4 === void 0 ? void 0 : _this$paymentContext$4.nonCompliant;
412
- nonInitSecuritySDK = (_this$paymentContext$5 = this.paymentContext.paymentSessionObj.action) === null || _this$paymentContext$5 === void 0 ? void 0 : _this$paymentContext$5.nonInitSecuritySdk;
412
+ nonInitSecuritySDK = (_this$paymentContext$5 = this.paymentContext.paymentSessionObj.action) === null || _this$paymentContext$5 === void 0 ? void 0 : _this$paymentContext$5.nonInitSecuritySDK;
413
413
  isFirstTimeToPay = !this.paymentContext.paymentSessionObj.action.autoDebitWithToken;
414
414
  if (!nonInitSecuritySDK) {
415
415
  _context4.next = 8;
@@ -9,7 +9,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
9
9
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
10
  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); }
11
11
  import { ProductSceneEnum } from "../../../types";
12
- import { Security, SecurityRegionEnum, getSecurityConfigStorageKey, getSecurityHost, getSecurityScene } from "./security";
12
+ import { Security, getSecurityConfigStorageKey, getSecurityHost, getSecurityScene } from "./security";
13
13
  import { getOrSetStorageId, safeJson } from "../../../util";
14
14
  import { ServiceProvider } from '..';
15
15
  export var SecurityService = /*#__PURE__*/function () {
@@ -175,26 +175,10 @@ export var SecurityService = /*#__PURE__*/function () {
175
175
  reject();
176
176
  }, timeout);
177
177
  }
178
- _this2._newSecuritySDKByScene({
179
- product: _this2.productScene,
180
- region: isPre ? SecurityRegionEnum.SG : undefined
181
- }, function () {
182
- _this2.logger.logInfo({
183
- title: "sdk_event_securitySdk".concat(sdkAction, "Success")
184
- }, isPre ? {
185
- product: _this2.productScene
186
- } : undefined).send();
187
- resolve();
188
- }, function (msg) {
189
- _this2.logger.logError({
190
- title: 'sdk_error_securitySdkInitFailed',
191
- msg: msg || undefined
192
- }, {
193
- product: _this2.productScene,
194
- sign: isPre ? 'Active initialization' : 'SDK internal initialization'
195
- }).send();
178
+ console.log('[web-sdk][security-sdk] mock init timeout');
179
+ setTimeout(function () {
196
180
  reject();
197
- });
181
+ }, 5000);
198
182
  }));
199
183
  case 7:
200
184
  case "end":
@@ -213,7 +213,7 @@ export interface PaymentSessionActionData {
213
213
  skipSdkQuery: boolean;
214
214
  requireFastSdk: boolean;
215
215
  nonCompliant?: boolean;
216
- nonInitSecuritySdk?: boolean;
216
+ nonInitSecuritySDK?: boolean;
217
217
  skipSdkQueryForm?: {
218
218
  value: boolean;
219
219
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1730107332-dev.12",
3
+ "version": "0.0.1730107332-dev.15",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",