@alipay/ams-checkout 0.0.1726734012-dev.2 → 0.0.1726734012-dev.4

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.
@@ -557,13 +557,18 @@ export var AMSComponent = /*#__PURE__*/function (_CoreInstance) {
557
557
  }, {
558
558
  key: "preload",
559
559
  value: function preload(_options) {
560
- this.preloadComponent();
561
- if (this.channelType.some(function (val) {
562
- return val === ComponentSignEnum.EASY_PAY_WALLET || val === ComponentSignEnum.EASY_PAY_APM;
563
- })) return;
564
- this._componentApp.AMSSDK.initSecurity({
565
- product: this.options.product
566
- });
560
+ try {
561
+ var _this$channelType;
562
+ this.preloadComponent();
563
+ if (this.channelType && (_this$channelType = this.channelType) !== null && _this$channelType !== void 0 && _this$channelType.some(function (val) {
564
+ return val === ComponentSignEnum.EASY_PAY_WALLET || val === ComponentSignEnum.EASY_PAY_APM;
565
+ })) return;
566
+ this._componentApp.AMSSDK.initSecurity({
567
+ product: this.options.product
568
+ });
569
+ } catch (err) {
570
+ console.log('web-sdk error', err);
571
+ }
567
572
  }
568
573
  }]);
569
574
  return AMSComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1726734012-dev.2",
3
+ "version": "0.0.1726734012-dev.4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",