Socket
Socket
Sign inDemoInstall

@solana/rpc

Package Overview
Dependencies
Maintainers
15
Versions
730
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc - npm Package Compare versions

Comparing version 2.0.0-experimental.c32f08b to 2.0.0-experimental.dad59c5

13

dist/index.browser.js

@@ -10,3 +10,4 @@ import { createSolanaRpcApi } from '@solana/rpc-api';

// src/index.ts
// ../build-scripts/env-shim.ts
var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")();
function createSolanaJsonRpcIntegerOverflowError(methodName, keyPath, value) {

@@ -60,2 +61,5 @@ let argumentLabel = "";

// src/rpc-request-coalescer.ts
var EXPLICIT_ABORT_TOKEN = Symbol(
__DEV__ ? "This symbol is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts" : void 0
);
function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {

@@ -84,3 +88,3 @@ let coalescedRequestsByDeduplicationKey;

} catch (e) {
if (e && typeof e === "object" && "name" in e && e.name === "AbortError") {
if (e === EXPLICIT_ABORT_TOKEN) {
return;

@@ -107,6 +111,5 @@ }

const abortController = coalescedRequest.abortController;
abortController.abort();
abortController.abort(EXPLICIT_ABORT_TOKEN);
}
const abortError = new DOMException(e.target.reason, "AbortError");
reject(abortError);
reject(e.target.reason);
};

@@ -113,0 +116,0 @@ signal.addEventListener("abort", handleAbort);

@@ -10,3 +10,4 @@ import { createSolanaRpcApi } from '@solana/rpc-api';

// src/index.ts
// ../build-scripts/env-shim.ts
var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")();
function createSolanaJsonRpcIntegerOverflowError(methodName, keyPath, value) {

@@ -60,2 +61,5 @@ let argumentLabel = "";

// src/rpc-request-coalescer.ts
var EXPLICIT_ABORT_TOKEN = Symbol(
__DEV__ ? "This symbol is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts" : void 0
);
function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {

@@ -84,3 +88,3 @@ let coalescedRequestsByDeduplicationKey;

} catch (e) {
if (e && typeof e === "object" && "name" in e && e.name === "AbortError") {
if (e === EXPLICIT_ABORT_TOKEN) {
return;

@@ -107,6 +111,5 @@ }

const abortController = coalescedRequest.abortController;
abortController.abort();
abortController.abort(EXPLICIT_ABORT_TOKEN);
}
const abortError = new DOMException(e.target.reason, "AbortError");
reject(abortError);
reject(e.target.reason);
};

@@ -113,0 +116,0 @@ signal.addEventListener("abort", handleAbort);

@@ -10,3 +10,4 @@ import { createSolanaRpcApi } from '@solana/rpc-api';

// src/index.ts
// ../build-scripts/env-shim.ts
var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")();
function createSolanaJsonRpcIntegerOverflowError(methodName, keyPath, value) {

@@ -60,2 +61,5 @@ let argumentLabel = "";

// src/rpc-request-coalescer.ts
var EXPLICIT_ABORT_TOKEN = Symbol(
__DEV__ ? "This symbol is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts" : void 0
);
function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {

@@ -84,3 +88,3 @@ let coalescedRequestsByDeduplicationKey;

} catch (e) {
if (e && typeof e === "object" && "name" in e && e.name === "AbortError") {
if (e === EXPLICIT_ABORT_TOKEN) {
return;

@@ -107,6 +111,5 @@ }

const abortController = coalescedRequest.abortController;
abortController.abort();
abortController.abort(EXPLICIT_ABORT_TOKEN);
}
const abortError = new DOMException(e.target.reason, "AbortError");
reject(abortError);
reject(e.target.reason);
};

@@ -113,0 +116,0 @@ signal.addEventListener("abort", handleAbort);

import { createHttpTransport } from '@solana/rpc-transport-http';
import type { ClusterUrl } from '@solana/rpc-types';
import { RpcTransportFromClusterUrl } from './rpc-clusters.js';
type Config<TClusterUrl extends ClusterUrl> = Readonly<{
headers?: Parameters<typeof createHttpTransport>[0]['headers'];
type RpcTransportConfig = Parameters<typeof createHttpTransport>[0];
interface Config<TClusterUrl extends ClusterUrl> extends RpcTransportConfig {
url: TClusterUrl;
}>;
}
export declare function createDefaultRpcTransport<TClusterUrl extends ClusterUrl>(config: Config<TClusterUrl>): RpcTransportFromClusterUrl<TClusterUrl>;
export {};
//# sourceMappingURL=rpc-transport.d.ts.map
{
"name": "@solana/rpc",
"version": "2.0.0-experimental.c32f08b",
"version": "2.0.0-experimental.dad59c5",
"description": "A library for sending JSON RPC requests to Solana RPCs",

@@ -50,9 +50,9 @@ "exports": {

"fast-stable-stringify": "^1.0.0",
"@solana/errors": "2.0.0-experimental.c32f08b",
"@solana/functional": "2.0.0-experimental.c32f08b",
"@solana/rpc-api": "2.0.0-experimental.c32f08b",
"@solana/rpc-spec": "2.0.0-experimental.c32f08b",
"@solana/rpc-transformers": "2.0.0-experimental.c32f08b",
"@solana/rpc-transport-http": "2.0.0-experimental.c32f08b",
"@solana/rpc-types": "2.0.0-experimental.c32f08b"
"@solana/errors": "2.0.0-experimental.dad59c5",
"@solana/functional": "2.0.0-experimental.dad59c5",
"@solana/rpc-spec": "2.0.0-experimental.dad59c5",
"@solana/rpc-api": "2.0.0-experimental.dad59c5",
"@solana/rpc-transformers": "2.0.0-experimental.dad59c5",
"@solana/rpc-transport-http": "2.0.0-experimental.dad59c5",
"@solana/rpc-types": "2.0.0-experimental.dad59c5"
},

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

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