@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 1.1.46 to 1.1.48
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const version = '1.1.46'; | ||
const version = '1.1.48'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -5,0 +5,0 @@ exports.default = { |
@@ -5,4 +5,16 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defineWindowProperty = exports.checkEnableDefineProperty = exports.checkWalletSwitchEnable = void 0; | ||
exports.defineWindowProperty = exports.checkEnableDefineProperty = exports.checkWalletSwitchEnable = exports.ISpecialPropertyProviderNamesReflection = void 0; | ||
const consts_1 = require("./consts"); | ||
/** | ||
* An enumeration mapping specific blockchain provider names to their corresponding blockchain identifiers. | ||
* | ||
* These mappings are used to handle special cases where the provider name needs to be translated into a specific blockchain identifier for various operations. | ||
* | ||
*/ | ||
var ISpecialPropertyProviderNamesReflection; | ||
(function (ISpecialPropertyProviderNamesReflection) { | ||
ISpecialPropertyProviderNamesReflection["btc"] = "unisat"; | ||
ISpecialPropertyProviderNamesReflection["sui"] = "suiWallet"; | ||
ISpecialPropertyProviderNamesReflection["polkadot"] = "polkadot-js"; | ||
})(ISpecialPropertyProviderNamesReflection = exports.ISpecialPropertyProviderNamesReflection || (exports.ISpecialPropertyProviderNamesReflection = {})); | ||
function checkWalletSwitchEnable(property) { | ||
@@ -9,0 +21,0 @@ try { |
@@ -1,2 +0,2 @@ | ||
const version = '1.1.46'; | ||
const version = '1.1.48'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -3,0 +3,0 @@ export default { |
@@ -0,3 +1,14 @@ | ||
/** | ||
* An enumeration mapping specific blockchain provider names to their corresponding blockchain identifiers. | ||
* | ||
* These mappings are used to handle special cases where the provider name needs to be translated into a specific blockchain identifier for various operations. | ||
* | ||
*/ | ||
export declare enum ISpecialPropertyProviderNamesReflection { | ||
btc = "unisat", | ||
sui = "suiWallet", | ||
polkadot = "polkadot-js" | ||
} | ||
export declare function checkWalletSwitchEnable(property: string): boolean; | ||
export declare function checkEnableDefineProperty(property: string): boolean; | ||
export declare function defineWindowProperty(property: string, provider: unknown): void; |
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | ||
import { WALLET_INFO_LOACAL_KEY } from './consts'; | ||
/** | ||
* An enumeration mapping specific blockchain provider names to their corresponding blockchain identifiers. | ||
* | ||
* These mappings are used to handle special cases where the provider name needs to be translated into a specific blockchain identifier for various operations. | ||
* | ||
*/ | ||
export var ISpecialPropertyProviderNamesReflection; | ||
(function (ISpecialPropertyProviderNamesReflection) { | ||
ISpecialPropertyProviderNamesReflection["btc"] = "unisat"; | ||
ISpecialPropertyProviderNamesReflection["sui"] = "suiWallet"; | ||
ISpecialPropertyProviderNamesReflection["polkadot"] = "polkadot-js"; | ||
})(ISpecialPropertyProviderNamesReflection || (ISpecialPropertyProviderNamesReflection = {})); | ||
export function checkWalletSwitchEnable(property) { | ||
@@ -5,0 +17,0 @@ try { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "1.1.46", | ||
"version": "1.1.48", | ||
"keywords": [ | ||
@@ -32,5 +32,5 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "1.1.46", | ||
"@onekeyfe/cross-inpage-provider-events": "1.1.46", | ||
"@onekeyfe/cross-inpage-provider-types": "1.1.46", | ||
"@onekeyfe/cross-inpage-provider-errors": "1.1.48", | ||
"@onekeyfe/cross-inpage-provider-events": "1.1.48", | ||
"@onekeyfe/cross-inpage-provider-types": "1.1.48", | ||
"events": "^3.3.0", | ||
@@ -40,3 +40,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "7521c574ad6ed5d002247dcbf3c8a91b9ae332a0" | ||
"gitHead": "6a43a23aaf1a7ba4bd6e3efa04e52fe6dbd63101" | ||
} |
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
164696
4018
+ Added@onekeyfe/cross-inpage-provider-errors@1.1.48(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@1.1.48(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@1.1.48(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@1.1.46(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@1.1.46(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@1.1.46(transitive)