@polkadot-api/json-rpc-provider
Advanced tools
Comparing version 0.0.1-87501f61c24616648ccce3e54a19c22477938e7a.1.0 to 0.0.1-87b10c43c1862eec15d3a29e752a1b05b4cc16b1.1.0
@@ -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 }; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5399
12
31