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

@polkadot-api/json-rpc-provider

Package Overview
Dependencies
Maintainers
2
Versions
590
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot-api/json-rpc-provider - npm Package Compare versions

Comparing version 0.0.1-87501f61c24616648ccce3e54a19c22477938e7a.1.0 to 0.0.1-87b10c43c1862eec15d3a29e752a1b05b4cc16b1.1.0

10

dist/index.d.ts

@@ -1,9 +0,7 @@

interface Provider {
interface JsonRpcConnection {
send: (message: string) => void;
open: () => void;
close: () => void;
disconnect: () => void;
}
type ProviderStatus = "connected" | "disconnected";
declare type GetProvider = (onMessage: (message: string) => void, onStatus: (status: ProviderStatus) => void) => Provider;
declare type JsonRpcProvider = (onMessage: (message: string) => void) => JsonRpcConnection;
export { GetProvider, Provider, ProviderStatus };
export type { JsonRpcConnection, JsonRpcProvider };

@@ -1,9 +0,7 @@

interface Provider {
interface JsonRpcConnection {
send: (message: string) => void;
open: () => void;
close: () => void;
disconnect: () => void;
}
type ProviderStatus = "connected" | "disconnected";
declare type GetProvider = (onMessage: (message: string) => void, onStatus: (status: ProviderStatus) => void) => Provider;
declare type JsonRpcProvider = (onMessage: (message: string) => void) => JsonRpcConnection;
export { GetProvider, Provider, ProviderStatus };
export type { JsonRpcConnection, JsonRpcProvider };

2

dist/min/index.js

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

"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var a=(o,e,d,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!v.call(o,t)&&t!==d&&s(o,t,{get:()=>e[t],enumerable:!(r=i(e,t))||r.enumerable});return o};var c=o=>a(s({},"__esModule",{value:!0}),o);var p={};module.exports=c(p);
"use strict";var i=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(n,e,c,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of r(e))!d.call(n,o)&&o!==c&&i(n,o,{get:()=>e[o],enumerable:!(s=t(e,o))||s.enumerable});return n};var a=n=>p(i({},"__esModule",{value:!0}),n);var g={};module.exports=a(g);
//# sourceMappingURL=index.js.map
{
"name": "@polkadot-api/json-rpc-provider",
"version": "0.0.1-87501f61c24616648ccce3e54a19c22477938e7a.1.0",
"version": "0.0.1-87b10c43c1862eec15d3a29e752a1b05b4cc16b1.1.0",
"author": "Josep M Sobrepere (https://github.com/josepot)",

@@ -43,7 +43,7 @@ "repository": {

"scripts": {
"build": "tsup-node src/index.ts --clean --sourcemap --platform neutral --target=es2020 --format esm,cjs --dts && tsup-node src/index.ts --clean --sourcemap --platform neutral --target=es2020 --format cjs --dts --minify --out-dir dist/min",
"build": "tsc --noEmit && tsup-node src/index.ts --clean --sourcemap --platform neutral --target=es2020 --format esm,cjs --dts && tsup-node src/index.ts --clean --sourcemap --platform neutral --target=es2020 --format cjs --dts --minify --out-dir dist/min",
"test": "echo 'no tests'",
"lint": "tsc --noEmit && prettier --check README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
"lint": "prettier --check README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
"format": "prettier --write README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\""
}
}

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