@onekeyfe/cross-inpage-provider-core 1.1.29 → 1.1.31

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.
@@ -2,17 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.injectJsBridge = void 0;
4
4
  const consts_1 = require("./consts");
5
- function fixGlobalShim() {
6
- // FIX errors in ReactNative
7
- // ReferenceError: Can't find variable: global
8
- // @ts-ignore
9
- window.global = window.global || window || window.globalThis;
10
- // @ts-ignore
11
- window.global = window.global || window || window.globalThis;
12
- }
5
+ // function fixGlobalShim() {
6
+ // // FIX errors in ReactNative
7
+ // // ReferenceError: Can't find variable: global
8
+ // // @ts-ignore
9
+ // window.global = window.global || window || window.globalThis;
10
+ // // @ts-ignore
11
+ // window.global = window.global || window || window.globalThis;
12
+ // }
13
13
  function injectJsBridge(bridgeCreator) {
14
+ // remove fixGlobalShim,
15
+ // because fixGlobalShim make some website not work properly
16
+ // make cloudfare dead loop and make zhihu.com search functionally down
17
+ // fixGlobalShim();
14
18
  var _a;
15
- fixGlobalShim();
16
19
  if (!((_a = window === null || window === void 0 ? void 0 : window.$onekey) === null || _a === void 0 ? void 0 : _a.jsBridge)) {
17
20
  window.$onekey = window.$onekey || {};
18
21
  window.$onekey.jsBridge = bridgeCreator();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const version = '1.1.29';
3
+ const version = '1.1.31';
4
4
  const versionBuild = '2020-0101-1';
5
5
  exports.default = {
6
6
  version,
@@ -1,15 +1,18 @@
1
1
  import { DEBUG_LOGGER_STORAGE_KEY } from './consts';
2
- function fixGlobalShim() {
3
- // FIX errors in ReactNative
4
- // ReferenceError: Can't find variable: global
5
- // @ts-ignore
6
- window.global = window.global || window || window.globalThis;
7
- // @ts-ignore
8
- window.global = window.global || window || window.globalThis;
9
- }
2
+ // function fixGlobalShim() {
3
+ // // FIX errors in ReactNative
4
+ // // ReferenceError: Can't find variable: global
5
+ // // @ts-ignore
6
+ // window.global = window.global || window || window.globalThis;
7
+ // // @ts-ignore
8
+ // window.global = window.global || window || window.globalThis;
9
+ // }
10
10
  function injectJsBridge(bridgeCreator) {
11
+ // remove fixGlobalShim,
12
+ // because fixGlobalShim make some website not work properly
13
+ // make cloudfare dead loop and make zhihu.com search functionally down
14
+ // fixGlobalShim();
11
15
  var _a;
12
- fixGlobalShim();
13
16
  if (!((_a = window === null || window === void 0 ? void 0 : window.$onekey) === null || _a === void 0 ? void 0 : _a.jsBridge)) {
14
17
  window.$onekey = window.$onekey || {};
15
18
  window.$onekey.jsBridge = bridgeCreator();
@@ -1,4 +1,4 @@
1
- const version = '1.1.29';
1
+ const version = '1.1.31';
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": "1.1.29",
3
+ "version": "1.1.31",
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": "1.1.29",
33
- "@onekeyfe/cross-inpage-provider-events": "1.1.29",
34
- "@onekeyfe/cross-inpage-provider-types": "1.1.29",
32
+ "@onekeyfe/cross-inpage-provider-errors": "1.1.31",
33
+ "@onekeyfe/cross-inpage-provider-events": "1.1.31",
34
+ "@onekeyfe/cross-inpage-provider-types": "1.1.31",
35
35
  "events": "^3.3.0",
36
36
  "lodash": "^4.17.21",
37
37
  "ms": "^2.1.3"
38
38
  },
39
- "gitHead": "fcabc1f3c77291112c0ff6685bd58a1f1d4b3bfb"
39
+ "gitHead": "9df2e0d5d13dd7c5a8e8226b031fa22273e14851"
40
40
  }