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