@alipay/ams-checkout 0.0.1733711101-dev.12 → 0.0.1733711101-dev.14

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.
@@ -77,6 +77,6 @@ export declare class EventCenter implements Service {
77
77
  isExist(name: string): boolean;
78
78
  }
79
79
  interface IListener {
80
- (data: any, EventPayload?: EventPayload): void;
80
+ (data: any, eventPayload?: EventPayload): void;
81
81
  }
82
82
  export {};
@@ -9,7 +9,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
9
9
  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); }
10
10
  import { v4 as uuid } from 'uuid';
11
11
  import { ERRORMESSAGE } from "../../constant";
12
- import { EventPayload, MessageName } from "../../types";
12
+ import { MessageName } from "../../types";
13
13
  import { isJsonString } from "../../util";
14
14
  import { getIframeOrigin, registerSystemEvents, unRegisterSystemEvents } from "../utils/system_events";
15
15
 
@@ -108,11 +108,11 @@ export var EventCenter = /*#__PURE__*/function () {
108
108
  }
109
109
  var isJson = isJsonString(e.data);
110
110
  if (isJson) {
111
- var eventPayload = JSON.parse(e.data);
112
- if (!this.checkEventCompliant(eventPayload)) {
111
+ var _eventPayload = JSON.parse(e.data);
112
+ if (!this.checkEventCompliant(_eventPayload)) {
113
113
  return;
114
114
  }
115
- this._handleAppMessage(eventPayload);
115
+ this._handleAppMessage(_eventPayload);
116
116
  } else {
117
117
  console.error(ERRORMESSAGE.NOT_JSON_FORMAT);
118
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1733711101-dev.12",
3
+ "version": "0.0.1733711101-dev.14",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",