Socket
Socket
Sign inDemoInstall

@walletconnect/jsonrpc-types

Package Overview
Dependencies
Maintainers
10
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walletconnect/jsonrpc-types - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3-canary.0

5

dist/cjs/jsonrpc.d.ts

@@ -8,2 +8,3 @@ export interface JsonRpcProviderMessage<T = any> {

params?: T;
id?: number;
}

@@ -29,4 +30,4 @@ export interface JsonRpcRequest<T = any> extends Required<RequestArguments<T>> {

}
export declare type JsonRpcResponse<T = any> = JsonRpcResult<T> | JsonRpcError;
export declare type JsonRpcPayload<P = any, R = any> = JsonRpcRequest<P> | JsonRpcResponse<R>;
export type JsonRpcResponse<T = any> = JsonRpcResult<T> | JsonRpcError;
export type JsonRpcPayload<P = any, R = any> = JsonRpcRequest<P> | JsonRpcResponse<R>;
//# sourceMappingURL=jsonrpc.d.ts.map

2

dist/cjs/provider.d.ts

@@ -15,3 +15,3 @@ import { JsonRpcPayload, JsonRpcRequest, RequestArguments } from "./jsonrpc";

abstract disconnect(): Promise<void>;
abstract request<Result = any, Params = any>(request: RequestArguments<Params>, context?: any): Promise<Result>;
abstract request<Result = any, Params = any>(request: RequestArguments<Params>, context?: any, rejectAfter?: number): Promise<Result>;
protected abstract requestStrict<Result = any, Params = any>(request: JsonRpcRequest<Params>, context?: any): Promise<Result>;

@@ -18,0 +18,0 @@ }

@@ -12,3 +12,3 @@ export interface JsonRpcValidationResult {

}
export declare type JsonRpcValidation = JsonRpcValidationValid | JsonRpcValidationInvalid;
export type JsonRpcValidation = JsonRpcValidationValid | JsonRpcValidationInvalid;
//# sourceMappingURL=validator.d.ts.map

@@ -8,2 +8,3 @@ export interface JsonRpcProviderMessage<T = any> {

params?: T;
id?: number;
}

@@ -29,4 +30,4 @@ export interface JsonRpcRequest<T = any> extends Required<RequestArguments<T>> {

}
export declare type JsonRpcResponse<T = any> = JsonRpcResult<T> | JsonRpcError;
export declare type JsonRpcPayload<P = any, R = any> = JsonRpcRequest<P> | JsonRpcResponse<R>;
export type JsonRpcResponse<T = any> = JsonRpcResult<T> | JsonRpcError;
export type JsonRpcPayload<P = any, R = any> = JsonRpcRequest<P> | JsonRpcResponse<R>;
//# sourceMappingURL=jsonrpc.d.ts.map

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

export {};
//# sourceMappingURL=jsonrpc.js.map

@@ -15,3 +15,3 @@ import { JsonRpcPayload, JsonRpcRequest, RequestArguments } from "./jsonrpc";

abstract disconnect(): Promise<void>;
abstract request<Result = any, Params = any>(request: RequestArguments<Params>, context?: any): Promise<Result>;
abstract request<Result = any, Params = any>(request: RequestArguments<Params>, context?: any, rejectAfter?: number): Promise<Result>;
protected abstract requestStrict<Result = any, Params = any>(request: JsonRpcRequest<Params>, context?: any): Promise<Result>;

@@ -18,0 +18,0 @@ }

@@ -12,3 +12,3 @@ export interface JsonRpcValidationResult {

}
export declare type JsonRpcValidation = JsonRpcValidationValid | JsonRpcValidationInvalid;
export type JsonRpcValidation = JsonRpcValidationValid | JsonRpcValidationInvalid;
//# sourceMappingURL=validator.d.ts.map

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

export {};
//# sourceMappingURL=validator.js.map
{
"name": "@walletconnect/jsonrpc-types",
"description": "Typings for JSON-RPC",
"version": "1.0.2",
"version": "1.0.3-canary.0",
"author": "WalletConnect, Inc. <walletconnect.com>",

@@ -41,3 +41,6 @@ "license": "MIT",

"test": "env TS_NODE_PROJECT=\"tsconfig.cjs.json\" mocha --timeout 5000 --exit -r ts-node/register ./test/**/*.test.ts",
"lint": "eslint -c '../../.eslintrc' --fix './src/**/*.ts'"
"lint": "eslint -c '../../.eslintrc' --fix './src/**/*.ts'",
"npm-publish:latest": "npm publish --access public --tag latest",
"npm-publish:canary": "npm publish --access public --tag canary",
"prepublishOnly": "npm run test && npm run build"
},

@@ -76,3 +79,3 @@ "dependencies": {

"prettier": "^1.19.1",
"typescript": "^3.7.5",
"typescript": "^4.9.5",
"webpack": "^4.41.6",

@@ -79,0 +82,0 @@ "webpack-cli": "^3.3.11"

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