New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bitski-provider

Package Overview
Dependencies
Maintainers
5
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitski-provider - npm Package Compare versions

Comparing version 3.3.1 to 3.3.2

8

CHANGELOG.md
# bitski-provider
## 3.3.2
### Patch Changes
- [#404](https://github.com/BitskiCo/bitski-js/pull/404) [`3d15e50`](https://github.com/BitskiCo/bitski-js/commit/3d15e507bfc54f5ab8e6768c404270c909646b73) Thanks [@ptescher](https://github.com/ptescher)! - Fix chain info lookup
* [#404](https://github.com/BitskiCo/bitski-js/pull/404) [`3d15e50`](https://github.com/BitskiCo/bitski-js/commit/3d15e507bfc54f5ab8e6768c404270c909646b73) Thanks [@ptescher](https://github.com/ptescher)! - Fix an issue with custom RPC endpoints
## 3.3.1

@@ -4,0 +12,0 @@

2

dist/bitski-provider.js

@@ -80,3 +80,3 @@ import SafeEventEmitter from '@metamask/safe-event-emitter';

}
this.config = Object.assign(Object.assign({}, config), { fetch: (_b = config.fetch) !== null && _b !== void 0 ? _b : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': appId, 'X-CLIENT-ID': appId, 'X-CLIENT-VERSION': "bitski-provider-v3.3.1" }, ((_c = config.additionalHeaders) !== null && _c !== void 0 ? _c : {})), apiBaseUrl, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new LocalStorageStore(), sign });
this.config = Object.assign(Object.assign({}, config), { fetch: (_b = config.fetch) !== null && _b !== void 0 ? _b : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': appId, 'X-CLIENT-ID': appId, 'X-CLIENT-VERSION': "bitski-provider-v3.3.2" }, ((_c = config.additionalHeaders) !== null && _c !== void 0 ? _c : {})), apiBaseUrl, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new LocalStorageStore(), sign });
this.store = new BitskiProviderStateStore(this.config.store);

@@ -83,0 +83,0 @@ // Setup the engine

@@ -18,2 +18,7 @@ import { EthMethod } from 'eth-provider-types';

const { config, chain } = getRequestContext(req);
const rpcUrl = new URL(chain.rpcUrls[0]);
if (rpcUrl.hostname !== 'api.bitski.com') {
// Custom RPC url
return next();
}
const query = ((_b = (_a = req.params) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0

@@ -20,0 +25,0 @@ ? `?params=${encodeURIComponent(JSON.stringify(req.params))}`

@@ -86,3 +86,3 @@ "use strict";

}
this.config = Object.assign(Object.assign({}, config), { fetch: (_b = config.fetch) !== null && _b !== void 0 ? _b : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': appId, 'X-CLIENT-ID': appId, 'X-CLIENT-VERSION': "bitski-provider-v3.3.1" }, ((_c = config.additionalHeaders) !== null && _c !== void 0 ? _c : {})), apiBaseUrl, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : constants_1.BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new store_1.LocalStorageStore(), sign });
this.config = Object.assign(Object.assign({}, config), { fetch: (_b = config.fetch) !== null && _b !== void 0 ? _b : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': appId, 'X-CLIENT-ID': appId, 'X-CLIENT-VERSION': "bitski-provider-v3.3.2" }, ((_c = config.additionalHeaders) !== null && _c !== void 0 ? _c : {})), apiBaseUrl, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : constants_1.BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new store_1.LocalStorageStore(), sign });
this.store = new store_1.BitskiProviderStateStore(this.config.store);

@@ -89,0 +89,0 @@ // Setup the engine

@@ -21,2 +21,7 @@ "use strict";

const { config, chain } = (0, request_context_1.getRequestContext)(req);
const rpcUrl = new URL(chain.rpcUrls[0]);
if (rpcUrl.hostname !== 'api.bitski.com') {
// Custom RPC url
return next();
}
const query = ((_b = (_a = req.params) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0

@@ -23,0 +28,0 @@ ? `?params=${encodeURIComponent(JSON.stringify(req.params))}`

@@ -12,3 +12,3 @@ {

},
"version": "3.3.1",
"version": "3.3.2",
"scripts": {

@@ -15,0 +15,0 @@ "test": "jest",

@@ -21,2 +21,8 @@ import { EthMethod } from 'eth-provider-types';

const rpcUrl = new URL(chain.rpcUrls[0]);
if (rpcUrl.hostname !== 'api.bitski.com') {
// Custom RPC url
return next();
}
const query =

@@ -23,0 +29,0 @@ (req.params?.length ?? 0) > 0

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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