Socket
Socket
Sign inDemoInstall

@onekeyfe/cross-inpage-provider-core

Package Overview
Dependencies
Maintainers
2
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/cross-inpage-provider-core - npm Package Compare versions

Comparing version 1.1.46 to 1.1.48

2

dist/cjs/versionInfo.js
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc