@solana/rpc-transport-http
Advanced tools
Comparing version 2.0.0-experimental.803b2d8 to 2.0.0-experimental.833e4f9
@@ -1,8 +0,5 @@ | ||
import { SolanaError, SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN } from '@solana/errors'; | ||
import { SolanaError, SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR, SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN } from '@solana/errors'; | ||
// ../build-scripts/env-shim.ts | ||
var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")(); | ||
// ../fetch-impl/dist/index.browser.js | ||
var e = globalThis.fetch; | ||
var DISALLOWED_HEADERS = { | ||
@@ -44,3 +41,3 @@ accept: true, | ||
if (badHeaders.length > 0) { | ||
throw new SolanaError(SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN, { | ||
throw new SolanaError(SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN, { | ||
headers: badHeaders | ||
@@ -97,5 +94,5 @@ }); | ||
}; | ||
const response = await e(url, requestInfo); | ||
const response = await fetch(url, requestInfo); | ||
if (!response.ok) { | ||
throw new SolanaError(SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, { | ||
throw new SolanaError(SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR, { | ||
message: response.statusText, | ||
@@ -102,0 +99,0 @@ statusCode: response.status |
@@ -1,8 +0,5 @@ | ||
import { SolanaError, SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN } from '@solana/errors'; | ||
import { SolanaError, SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR, SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN } from '@solana/errors'; | ||
// ../build-scripts/env-shim.ts | ||
var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")(); | ||
// ../fetch-impl/dist/index.browser.js | ||
var e = globalThis.fetch; | ||
var DISALLOWED_HEADERS = { | ||
@@ -44,3 +41,3 @@ accept: true, | ||
if (badHeaders.length > 0) { | ||
throw new SolanaError(SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN, { | ||
throw new SolanaError(SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN, { | ||
headers: badHeaders | ||
@@ -97,5 +94,5 @@ }); | ||
}; | ||
const response = await e(url, requestInfo); | ||
const response = await fetch(url, requestInfo); | ||
if (!response.ok) { | ||
throw new SolanaError(SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, { | ||
throw new SolanaError(SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR, { | ||
message: response.statusText, | ||
@@ -102,0 +99,0 @@ statusCode: response.status |
@@ -1,3 +0,2 @@ | ||
import { SolanaError, SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN } from '@solana/errors'; | ||
import { fetch } from 'undici'; | ||
import { SolanaError, SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR, SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN } from '@solana/errors'; | ||
@@ -42,3 +41,3 @@ // ../build-scripts/env-shim.ts | ||
if (badHeaders.length > 0) { | ||
throw new SolanaError(SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN, { | ||
throw new SolanaError(SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN, { | ||
headers: badHeaders | ||
@@ -90,3 +89,3 @@ }); | ||
if (!response.ok) { | ||
throw new SolanaError(SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, { | ||
throw new SolanaError(SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR, { | ||
message: response.statusText, | ||
@@ -93,0 +92,0 @@ statusCode: response.status |
{ | ||
"name": "@solana/rpc-transport-http", | ||
"version": "2.0.0-experimental.803b2d8", | ||
"version": "2.0.0-experimental.833e4f9", | ||
"description": "An RPC transport that uses HTTP requests", | ||
@@ -50,4 +50,4 @@ "exports": { | ||
"undici": "^6.6.2", | ||
"@solana/rpc-spec": "2.0.0-experimental.803b2d8", | ||
"@solana/errors": "2.0.0-experimental.803b2d8" | ||
"@solana/errors": "2.0.0-experimental.833e4f9", | ||
"@solana/rpc-spec": "2.0.0-experimental.833e4f9" | ||
}, | ||
@@ -63,2 +63,3 @@ "bundlewatch": { | ||
"scripts": { | ||
"benchmark": "./src/__benchmarks__/run.ts", | ||
"compile:js": "tsup --config build-scripts/tsup.config.package.ts", | ||
@@ -65,0 +66,0 @@ "compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs", |
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
78191
622
6
23
+ Added@solana/errors@2.0.0-experimental.833e4f9(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.833e4f9(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.833e4f9(transitive)
- Removed@solana/errors@2.0.0-experimental.803b2d8(transitive)
- Removed@solana/rpc-spec@2.0.0-experimental.803b2d8(transitive)
- Removed@solana/rpc-spec-types@2.0.0-experimental.803b2d8(transitive)