Socket
Socket
Sign inDemoInstall

@onekeyfe/inpage-providers-hub

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/inpage-providers-hub - npm Package Compare versions

Comparing version 0.0.7-alpha.0 to 0.0.7-alpha.2

22

dist/cjs/injectWeb3Provider.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectWeb3Provider = void 0;
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
const cross_inpage_provider_core_1 = require("@onekeyfe/cross-inpage-provider-core");
const cross_inpage_provider_types_1 = require("@onekeyfe/cross-inpage-provider-types");
class ProviderPrivate extends cross_inpage_provider_core_1.ProviderBase {
constructor() {
super(...arguments);
this.providerName = cross_inpage_provider_types_1.IInjectedProviderNames.$private;
}
}
class ProviderEthereum extends cross_inpage_provider_core_1.ProviderBase {
constructor() {
super(...arguments);
this.providerName = cross_inpage_provider_types_1.IInjectedProviderNames.ethereum;
}
}
const onekey_eth_provider_1 = require("@onekeyfe/onekey-eth-provider");
const onekey_private_provider_1 = require("@onekeyfe/onekey-private-provider");
function injectWeb3Provider() {

@@ -26,6 +12,6 @@ var _a, _b;

const bridge = (_b = window === null || window === void 0 ? void 0 : window.$onekey) === null || _b === void 0 ? void 0 : _b.jsBridge;
const ethereum = new ProviderEthereum({
const ethereum = new onekey_eth_provider_1.ProviderEthereum({
bridge,
});
const $private = new ProviderPrivate({
const $private = new onekey_private_provider_1.ProviderPrivate({
bridge,

@@ -32,0 +18,0 @@ });

11

dist/injectWeb3Provider.d.ts

@@ -1,9 +0,4 @@

import { JsBridgeBase, ProviderBase } from '@onekeyfe/cross-inpage-provider-core';
import { IInjectedProviderNames } from '@onekeyfe/cross-inpage-provider-types';
declare class ProviderPrivate extends ProviderBase {
providerName: IInjectedProviderNames;
}
declare class ProviderEthereum extends ProviderBase {
providerName: IInjectedProviderNames;
}
import { JsBridgeBase } from '@onekeyfe/cross-inpage-provider-core';
import { ProviderEthereum } from '@onekeyfe/onekey-eth-provider';
import { ProviderPrivate } from '@onekeyfe/onekey-private-provider';
export declare type WindowOneKeyHub = {

@@ -10,0 +5,0 @@ debugLogger?: any;

@@ -1,17 +0,3 @@

/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { ProviderBase } from '@onekeyfe/cross-inpage-provider-core';
import { IInjectedProviderNames } from '@onekeyfe/cross-inpage-provider-types';
class ProviderPrivate extends ProviderBase {
constructor() {
super(...arguments);
this.providerName = IInjectedProviderNames.$private;
}
}
class ProviderEthereum extends ProviderBase {
constructor() {
super(...arguments);
this.providerName = IInjectedProviderNames.ethereum;
}
}
import { ProviderEthereum } from '@onekeyfe/onekey-eth-provider';
import { ProviderPrivate } from '@onekeyfe/onekey-private-provider';
function injectWeb3Provider() {

@@ -18,0 +4,0 @@ var _a, _b;

{
"name": "@onekeyfe/inpage-providers-hub",
"version": "0.0.7-alpha.0",
"version": "0.0.7-alpha.2",
"keywords": [

@@ -31,6 +31,8 @@ "cross-inpage-provider"

"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "^0.0.7-alpha.0",
"@onekeyfe/cross-inpage-provider-types": "^0.0.7-alpha.0"
"@onekeyfe/cross-inpage-provider-core": "^0.0.7-alpha.2",
"@onekeyfe/cross-inpage-provider-types": "^0.0.7-alpha.2",
"@onekeyfe/onekey-eth-provider": "^0.0.7-alpha.2",
"@onekeyfe/onekey-private-provider": "^0.0.7-alpha.2"
},
"gitHead": "e163439202ef5f85319d7dc9bc7c18ee7d6a0b7b"
"gitHead": "ed05282b43f00a712dae7f62ea12063eb56c8cce"
}

@@ -1,1 +0,1 @@

# @onekeyfe/cross-inpage-provider-empty
# cross-inpage-provider
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