@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.
- package/dist/cjs/injectJsBridge.js +12 -9
- package/dist/cjs/versionInfo.js +1 -1
- package/dist/injectJsBridge.js +12 -9
- package/dist/versionInfo.js +1 -1
- package/package.json +5 -5
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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();
|
package/dist/cjs/versionInfo.js
CHANGED
package/dist/injectJsBridge.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { DEBUG_LOGGER_STORAGE_KEY } from './consts';
|
|
2
|
-
function fixGlobalShim() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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();
|
package/dist/versionInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/cross-inpage-provider-core",
|
|
3
|
-
"version": "1.1.
|
|
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.
|
|
33
|
-
"@onekeyfe/cross-inpage-provider-events": "1.1.
|
|
34
|
-
"@onekeyfe/cross-inpage-provider-types": "1.1.
|
|
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": "
|
|
39
|
+
"gitHead": "9df2e0d5d13dd7c5a8e8226b031fa22273e14851"
|
|
40
40
|
}
|