Socket
Socket
Sign inDemoInstall

@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.f10010c to 2.0.0-experimental.f41d32d

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

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