Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/rpc-transport-http

Package Overview
Dependencies
Maintainers
15
Versions
936
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-transport-http - npm Package Compare versions

Comparing version 2.0.0-experimental.803b2d8 to 2.0.0-experimental.833e4f9

11

dist/index.browser.js

@@ -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

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