@solana/rpc-transport
Advanced tools
Comparing version 2.0.0-experimental.f10010c to 2.0.0-experimental.f41d32d
@@ -1,7 +0,1 @@ | ||
import 'node-fetch'; | ||
// ../fetch-impl-browser/dist/index.browser.js | ||
var { fetch } = globalThis; | ||
var src_default = fetch; | ||
// src/http-request-errors.ts | ||
@@ -18,2 +12,7 @@ var SolanaHttpError = class extends Error { | ||
}; | ||
// ../fetch-impl/dist/index.browser.js | ||
var e = globalThis.fetch; | ||
// src/http-request.ts | ||
async function makeHttpRequest({ payload, url }) { | ||
@@ -27,6 +26,3 @@ const requestInfo = { | ||
}; | ||
let response; | ||
{ | ||
response = await src_default(url, requestInfo); | ||
} | ||
const response = await e(url, requestInfo); | ||
if (!response.ok) { | ||
@@ -33,0 +29,0 @@ throw new SolanaHttpError({ |
@@ -1,7 +0,1 @@ | ||
import 'node-fetch'; | ||
// ../fetch-impl-browser/dist/index.browser.js | ||
var { fetch } = globalThis; | ||
var src_default = fetch; | ||
// src/http-request-errors.ts | ||
@@ -18,2 +12,7 @@ var SolanaHttpError = class extends Error { | ||
}; | ||
// ../fetch-impl/dist/index.browser.js | ||
var e = globalThis.fetch; | ||
// src/http-request.ts | ||
async function makeHttpRequest({ payload, url }) { | ||
@@ -27,6 +26,3 @@ const requestInfo = { | ||
}; | ||
let response; | ||
{ | ||
response = await src_default(url, requestInfo); | ||
} | ||
const response = await e(url, requestInfo); | ||
if (!response.ok) { | ||
@@ -33,0 +29,0 @@ throw new SolanaHttpError({ |
@@ -1,2 +0,2 @@ | ||
import fetchImplNode from 'node-fetch'; | ||
import t from 'node-fetch'; | ||
@@ -14,2 +14,5 @@ // src/http-request-errors.ts | ||
}; | ||
var f = t; | ||
// src/http-request.ts | ||
async function makeHttpRequest({ payload, url }) { | ||
@@ -23,6 +26,3 @@ const requestInfo = { | ||
}; | ||
let response; | ||
{ | ||
response = await fetchImplNode(url, requestInfo); | ||
} | ||
const response = await f(url, requestInfo); | ||
if (!response.ok) { | ||
@@ -29,0 +29,0 @@ throw new SolanaHttpError({ |
{ | ||
"name": "@solana/rpc-transport", | ||
"version": "2.0.0-experimental.f10010c", | ||
"version": "2.0.0-experimental.f41d32d", | ||
"description": "Network transports for accessing the Solana JSON RPC API", | ||
@@ -53,3 +53,2 @@ "exports": { | ||
"@types/jest": "^29.5.0", | ||
"@types/node-fetch": "2", | ||
"@typescript-eslint/eslint-plugin": "^5.57.1", | ||
@@ -74,3 +73,2 @@ "@typescript-eslint/parser": "^5.57.1", | ||
"version-from-git": "^1.1.1", | ||
"@solana/fetch-impl-browser": "0.0.0-development", | ||
"build-scripts": "0.0.0", | ||
@@ -89,4 +87,3 @@ "test-config": "0.0.0", | ||
"dependencies": { | ||
"node-fetch": "^2.6.7", | ||
"@solana/keys": "2.0.0-experimental.f10010c" | ||
"fetch-impl": "0.0.0" | ||
}, | ||
@@ -93,0 +90,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
1
26
0
108067
913
+ Addedfetch-impl@0.0.0
- Removednode-fetch@^2.6.7
- Removed@solana/keys@2.0.0-experimental.f10010c(transitive)
- Removedbase-x@4.0.0(transitive)
- Removedbs58@5.0.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)