@solana/rpc-transport-http
Advanced tools
Comparing version 2.0.0-experimental.378499d to 2.0.0-experimental.3fc662d
@@ -1,2 +0,2 @@ | ||
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'; | ||
@@ -44,3 +44,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 | ||
@@ -99,3 +99,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, | ||
@@ -102,0 +102,0 @@ statusCode: response.status |
@@ -1,2 +0,2 @@ | ||
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'; | ||
@@ -44,3 +44,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 | ||
@@ -99,3 +99,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, | ||
@@ -102,0 +102,0 @@ statusCode: response.status |
@@ -1,2 +0,2 @@ | ||
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'; | ||
import { fetch } from 'undici'; | ||
@@ -42,3 +42,3 @@ | ||
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 +90,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 +93,0 @@ statusCode: response.status |
{ | ||
"name": "@solana/rpc-transport-http", | ||
"version": "2.0.0-experimental.378499d", | ||
"version": "2.0.0-experimental.3fc662d", | ||
"description": "An RPC transport that uses HTTP requests", | ||
@@ -50,4 +50,4 @@ "exports": { | ||
"undici": "^6.6.2", | ||
"@solana/errors": "2.0.0-experimental.378499d", | ||
"@solana/rpc-spec": "2.0.0-experimental.378499d" | ||
"@solana/errors": "2.0.0-experimental.3fc662d", | ||
"@solana/rpc-spec": "2.0.0-experimental.3fc662d" | ||
}, | ||
@@ -54,0 +54,0 @@ "bundlewatch": { |
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
79283
+ Added@solana/errors@2.0.0-experimental.3fc662d(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.3fc662d(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.3fc662d(transitive)
- Removed@solana/errors@2.0.0-experimental.378499d(transitive)
- Removed@solana/rpc-spec@2.0.0-experimental.378499d(transitive)
- Removed@solana/rpc-spec-types@2.0.0-experimental.378499d(transitive)