New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solana/rpc-spec

Package Overview
Dependencies
Maintainers
14
Versions
944
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-spec - npm Package Compare versions

Comparing version 2.0.0-canary-20241023085850 to 2.0.0-canary-20241023090538

1

dist/types/index.d.ts
export * from './rpc';
export * from './rpc-api';
export * from './rpc-shared';
export * from './rpc-transport';
//# sourceMappingURL=index.d.ts.map

3

dist/types/rpc-api.d.ts

@@ -1,3 +0,2 @@

import { Callable } from '@solana/rpc-spec-types';
import { RpcRequestTransformer, RpcResponse, RpcResponseTransformer } from './rpc-shared';
import { Callable, RpcRequestTransformer, RpcResponse, RpcResponseTransformer } from '@solana/rpc-spec-types';
export type RpcApiConfig = Readonly<{

@@ -4,0 +3,0 @@ requestTransformer?: RpcRequestTransformer;

@@ -1,2 +0,2 @@

import { RpcResponse } from './rpc-shared';
import { RpcResponse } from '@solana/rpc-spec-types';
type RpcTransportRequest = Readonly<{

@@ -3,0 +3,0 @@ payload: unknown;

{
"name": "@solana/rpc-spec",
"version": "2.0.0-canary-20241023085850",
"version": "2.0.0-canary-20241023090538",
"description": "A generic implementation of JSON RPCs using proxies",

@@ -57,4 +57,4 @@ "exports": {

"dependencies": {
"@solana/errors": "2.0.0-canary-20241023085850",
"@solana/rpc-spec-types": "2.0.0-canary-20241023085850"
"@solana/errors": "2.0.0-canary-20241023090538",
"@solana/rpc-spec-types": "2.0.0-canary-20241023090538"
},

@@ -61,0 +61,0 @@ "peerDependencies": {

@@ -44,21 +44,2 @@ [![npm][npm-image]][npm-url]

### `RpcRequest`
An object that describes the elements of a JSON RPC request. It consists of the following properties:
- `methodName`: The name of the JSON RPC method to be called.
- `params`: The parameters to be passed to the JSON RPC method.
### `RpcRequestTransformer`
A function that accepts an `RpcRequest` and returns another `RpcRequest`. This allows the `RpcApi` to transform the request before it is sent to the JSON RPC server.
### `RpcResponse`
A type that represents the response from a JSON RPC server. This could be any sort of data which is why `RpcResponse` defaults to `unknown`. You may use a type parameter to specify the shape of the response — e.g. `RpcResponse<{ result: number }>`.
### `RpcResponseTransformer`
A function that accepts an `RpcResponse` and returns another `RpcResponse`. This allows the `RpcApi` to transform the response before it is returned to the caller.
### `RpcApi<TRpcMethods>`

@@ -65,0 +46,0 @@

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

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