@alipay/ams-checkout 0.0.1726734012-dev.8 → 0.0.1726734012-dev.9

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.
@@ -22,5 +22,5 @@ export declare class EasySafePayProcessor implements ProductProcessor {
22
22
  private sendRequestAndWaitWebLaunch;
23
23
  private processSubmitPay;
24
24
  private acquireApdidToken;
25
- private initSecuritySDK;
25
+ initSecuritySDK(): Promise<void>;
26
26
  }
@@ -35,7 +35,6 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
35
35
  _createClass(EasySafePayProcessor, [{
36
36
  key: "init",
37
37
  value: function init(config, instanceId, sdkMetaData) {
38
- console.log('执行了EasySafePayProcessor', config, instanceId, sdkMetaData);
39
38
  this.initConfig = config;
40
39
  this.instanceId = instanceId;
41
40
  this.logger = ServiceProvider.getInstance(this.instanceId).getService('Log');
@@ -92,6 +92,7 @@ export var ContainerService = /*#__PURE__*/function () {
92
92
  key: "preload",
93
93
  value: function preload(taskId, url) {
94
94
  var _this = this;
95
+ console.log('web-preloadsdk EasyPay');
95
96
  var preloadIframe = createPreloadIframe(taskId);
96
97
  preloadIframe.src = url;
97
98
  var body = document.body || null;
package/esm/index.d.ts CHANGED
@@ -31,7 +31,9 @@ export declare class Element extends ElementComponent {
31
31
  export default AMSCheckout;
32
32
  export declare class AMSEasyPay {
33
33
  private core;
34
+ private easySafePayProcessor;
34
35
  constructor(options: IoptionsParams);
35
36
  createComponent(params: IcreateComponent): void;
37
+ preload(): void;
36
38
  unmount(): void;
37
39
  }
package/esm/index.js CHANGED
@@ -164,6 +164,7 @@ export var AMSEasyPay = /*#__PURE__*/function () {
164
164
  function AMSEasyPay(options) {
165
165
  _classCallCheck(this, AMSEasyPay);
166
166
  _defineProperty(this, "core", void 0);
167
+ _defineProperty(this, "easySafePayProcessor", void 0);
167
168
  this.core = new AntomSDKCore();
168
169
  this.core.registerProcessor(ProductSceneEnum.EASY_PAY, '', new EasySafePayProcessor());
169
170
  this.core.init(options, ProductSceneEnum.EASY_PAY);
@@ -183,6 +184,12 @@ export var AMSEasyPay = /*#__PURE__*/function () {
183
184
  isAppWebview: params.isAppWebview
184
185
  });
185
186
  }
187
+ }, {
188
+ key: "preload",
189
+ value: function preload() {
190
+ this.core.init({}, ProductSceneEnum.EASY_PAY);
191
+ this.easySafePayProcessor.initSecuritySDK();
192
+ }
186
193
  }, {
187
194
  key: "unmount",
188
195
  value: function unmount() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1726734012-dev.8",
3
+ "version": "0.0.1726734012-dev.9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",