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

@solana/rpc-transport

Package Overview
Dependencies
Maintainers
13
Versions
602
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-transport - npm Package Compare versions

Comparing version 2.0.0-experimental.847f0a9 to 2.0.0-experimental.c091b0a

16

dist/index.browser.js

@@ -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.847f0a9",
"version": "2.0.0-experimental.c091b0a",
"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",

@@ -71,6 +70,4 @@ "@typescript-eslint/parser": "^5.57.1",

"tsup": "6.7.0",
"turbo": "^1.6.3",
"typescript": "^5.0.3",
"version-from-git": "^1.1.1",
"@solana/fetch-impl-browser": "0.0.0-development",
"build-scripts": "0.0.0",

@@ -89,4 +86,3 @@ "test-config": "0.0.0",

"dependencies": {
"node-fetch": "^2.6.7",
"@solana/keys": "2.0.0-experimental.847f0a9"
"fetch-impl": "0.0.0"
},

@@ -93,0 +89,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

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