@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 2.1.1 to 2.1.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const version = '2.1.1'; | ||
const version = '2.1.2'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -5,0 +5,0 @@ exports.default = { |
@@ -94,6 +94,8 @@ "use strict"; | ||
var _a; | ||
if (!checkPlatformEnable(options === null || options === void 0 ? void 0 : options.disablePlatform)) | ||
return; | ||
if (!checkWalletSwitchEnable()) | ||
return; | ||
if (!(options === null || options === void 0 ? void 0 : options.alwaysInject)) { | ||
if (!checkPlatformEnable(options === null || options === void 0 ? void 0 : options.disablePlatform)) | ||
return; | ||
if (!checkWalletSwitchEnable()) | ||
return; | ||
} | ||
const enable = checkEnableDefineProperty(property); | ||
@@ -100,0 +102,0 @@ const proxyProvider = new Proxy(provider, { |
@@ -1,2 +0,2 @@ | ||
const version = '2.1.1'; | ||
const version = '2.1.2'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -3,0 +3,0 @@ export default { |
@@ -19,2 +19,3 @@ /** | ||
disablePlatform?: IPlatformType[]; | ||
alwaysInject?: boolean; | ||
}): void; |
@@ -88,6 +88,8 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ | ||
var _a; | ||
if (!checkPlatformEnable(options === null || options === void 0 ? void 0 : options.disablePlatform)) | ||
return; | ||
if (!checkWalletSwitchEnable()) | ||
return; | ||
if (!(options === null || options === void 0 ? void 0 : options.alwaysInject)) { | ||
if (!checkPlatformEnable(options === null || options === void 0 ? void 0 : options.disablePlatform)) | ||
return; | ||
if (!checkWalletSwitchEnable()) | ||
return; | ||
} | ||
const enable = checkEnableDefineProperty(property); | ||
@@ -94,0 +96,0 @@ const proxyProvider = new Proxy(provider, { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"keywords": [ | ||
@@ -32,5 +32,5 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "2.1.1", | ||
"@onekeyfe/cross-inpage-provider-events": "2.1.1", | ||
"@onekeyfe/cross-inpage-provider-types": "2.1.1", | ||
"@onekeyfe/cross-inpage-provider-errors": "2.1.2", | ||
"@onekeyfe/cross-inpage-provider-events": "2.1.2", | ||
"@onekeyfe/cross-inpage-provider-types": "2.1.2", | ||
"events": "^3.3.0", | ||
@@ -43,3 +43,3 @@ "lodash-es": "^4.17.21", | ||
}, | ||
"gitHead": "14446b61e0a399bd1bc3a3fb4593c55bba3d28cb" | ||
"gitHead": "18c5992b3eb11029f807d9488d2bb8a378e9b503" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195512
4988
+ Added@onekeyfe/cross-inpage-provider-errors@2.1.2(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@2.1.2(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@2.1.2(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@2.1.1(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@2.1.1(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@2.1.1(transitive)