@alipay/ams-checkout 0.0.1733711101-dev.5 → 0.0.1733711101-dev.6

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.
@@ -1,4 +1,5 @@
1
- import { EventPayload, EventPayloadContext, IoptionsParams } from '../../types';
1
+ import type { EventPayload } from '../../types';
2
+ import { EventPayloadContext, IoptionsParams } from '../../types';
2
3
  import { SDKMetaData, Service } from '../index';
3
4
  /**
4
5
  * @author 江跃 <jiangbin.gjb@antgroup.com>
@@ -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
 
@@ -144,11 +144,11 @@ export var EventCenter = /*#__PURE__*/function () {
144
144
  */
145
145
  }, {
146
146
  key: "_handleAppMessage",
147
- value: function _handleAppMessage(EventPayload) {
148
- var context = EventPayload.context;
147
+ value: function _handleAppMessage(eventPayload) {
148
+ var context = eventPayload.context;
149
149
  var event = context.event,
150
150
  data = context.data;
151
- this.emit(event, data, EventPayload);
151
+ this.emit(event, data, eventPayload);
152
152
  }
153
153
 
154
154
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1733711101-dev.5",
3
+ "version": "0.0.1733711101-dev.6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",