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

@solana/rpc-spec-types

Package Overview
Dependencies
Maintainers
15
Versions
970
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-spec-types - npm Package Compare versions

Comparing version 2.0.0-preview.1.20240312180856.34ecac6fce2dc8dae2685c864fe844c36a9af6c7 to 2.0.0-preview.1.20240312181104.52a5d3db60e702ccf77b4d17b8a3fd388e6e8584

17

dist/index.browser.js

@@ -1,16 +0,1 @@

// src/rpc-error.ts
var RpcError = class extends Error {
code;
data;
constructor(details) {
super(`JSON-RPC 2.0 error (${details.code}): ${details.message}`);
Error.captureStackTrace(this, this.constructor);
this.code = details.code;
this.data = details.data;
}
get name() {
return "RpcError";
}
};
// src/rpc-message.ts

@@ -32,4 +17,4 @@ var _nextMessageId = 0;

export { RpcError, createRpcMessage };
export { createRpcMessage };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.browser.js.map

@@ -1,16 +0,1 @@

// src/rpc-error.ts
var RpcError = class extends Error {
code;
data;
constructor(details) {
super(`JSON-RPC 2.0 error (${details.code}): ${details.message}`);
Error.captureStackTrace(this, this.constructor);
this.code = details.code;
this.data = details.data;
}
get name() {
return "RpcError";
}
};
// src/rpc-message.ts

@@ -32,4 +17,4 @@ var _nextMessageId = 0;

export { RpcError, createRpcMessage };
export { createRpcMessage };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.native.js.map

@@ -1,16 +0,1 @@

// src/rpc-error.ts
var RpcError = class extends Error {
code;
data;
constructor(details) {
super(`JSON-RPC 2.0 error (${details.code}): ${details.message}`);
Error.captureStackTrace(this, this.constructor);
this.code = details.code;
this.data = details.data;
}
get name() {
return "RpcError";
}
};
// src/rpc-message.ts

@@ -32,4 +17,4 @@ var _nextMessageId = 0;

export { RpcError, createRpcMessage };
export { createRpcMessage };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.node.js.map
export * from './overloads.js';
export * from './rpc-error.js';
export * from './rpc-message.js';

@@ -4,0 +3,0 @@ export * from './rpc-response.js';

6

dist/types/rpc-response.d.ts

@@ -1,5 +0,9 @@

import { RpcErrorResponse } from './rpc-error.js';
interface IHasIdentifier {
readonly id: number;
}
type RpcErrorResponse = Readonly<{
code: number;
data?: unknown;
message: string;
}>;
export type RpcResponse<TResponse> = IHasIdentifier & Readonly<{

@@ -6,0 +10,0 @@ error: RpcErrorResponse;

{
"name": "@solana/rpc-spec-types",
"version": "2.0.0-preview.1.20240312180856.34ecac6fce2dc8dae2685c864fe844c36a9af6c7",
"version": "2.0.0-preview.1.20240312181104.52a5d3db60e702ccf77b4d17b8a3fd388e6e8584",
"description": "Shared generic JSON RPC specifications",

@@ -5,0 +5,0 @@ "exports": {

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