@onekeyfe/cross-inpage-provider-core 0.0.13 → 0.0.16

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.
@@ -9,11 +9,15 @@ function setupPostMessageListener(options = {}) {
9
9
  postMessageListenerAdded = true;
10
10
  // - receive
11
11
  window.addEventListener('message', (event) => {
12
- var _a, _b, _c;
13
12
  // TODO source whitelist
14
- if (event.origin !== options.origin) {
15
- return;
16
- }
13
+ /**
14
+ * This origin is not guaranteed to be the current or future origin of the window
15
+ * temporarily comment this line
16
+ */
17
+ // if (event.origin !== options.origin) {
18
+ // return;
19
+ // }
20
+ var _a, _b, _c;
17
21
  const eventData = event.data;
18
22
  const config = (_a = options.bridge) === null || _a === void 0 ? void 0 : _a.bridgeConfig;
19
23
  if (config &&
@@ -12,11 +12,15 @@ function setupPostMessageListener(options = {}) {
12
12
  postMessageListenerAdded = true;
13
13
  // - receive
14
14
  window.addEventListener('message', (event) => {
15
- var _a, _b, _c;
16
15
  // TODO source whitelist
17
- if (event.origin !== options.origin) {
18
- return;
19
- }
16
+ /**
17
+ * This origin is not guaranteed to be the current or future origin of the window
18
+ * temporarily comment this line
19
+ */
20
+ // if (event.origin !== options.origin) {
21
+ // return;
22
+ // }
23
+ var _a, _b, _c;
20
24
  const eventData = event.data;
21
25
  const config = (_a = options.bridge) === null || _a === void 0 ? void 0 : _a.bridgeConfig;
22
26
  if (config &&
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const version = '0.0.13';
3
+ const version = '0.0.16';
4
4
  const versionBuild = '2020-0101-1';
5
5
  exports.default = {
6
6
  version,
@@ -1,4 +1,4 @@
1
- const version = '0.0.13';
1
+ const version = '0.0.16';
2
2
  const versionBuild = '2020-0101-1';
3
3
  export default {
4
4
  version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/cross-inpage-provider-core",
3
- "version": "0.0.13",
3
+ "version": "0.0.16",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -29,12 +29,12 @@
29
29
  "build-version-info": "node ./scripts/buildVersionInfo.js"
30
30
  },
31
31
  "dependencies": {
32
- "@onekeyfe/cross-inpage-provider-errors": "^0.0.13",
33
- "@onekeyfe/cross-inpage-provider-events": "^0.0.13",
34
- "@onekeyfe/cross-inpage-provider-types": "^0.0.13",
32
+ "@onekeyfe/cross-inpage-provider-errors": "^0.0.16",
33
+ "@onekeyfe/cross-inpage-provider-events": "^0.0.16",
34
+ "@onekeyfe/cross-inpage-provider-types": "^0.0.16",
35
35
  "events": "^3.3.0",
36
36
  "lodash": "^4.17.21",
37
37
  "ms": "^2.1.3"
38
38
  },
39
- "gitHead": "2dfe2910cf3a333649382f1124c44f7c53c90ecd"
39
+ "gitHead": "755a576b09b9e877a8e372683847f0ef47a0ff41"
40
40
  }