@polkadot-api/json-rpc-provider 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1,3 @@
1
1
  # @polkadot-api/json-rpc-provider
2
+
3
+ This package exports the interface of `polkadot-api` with the chain.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polkadot-api/json-rpc-provider",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "author": "Josep M Sobrepere (https://github.com/josepot)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,39 +8,14 @@
8
8
  },
9
9
  "license": "MIT",
10
10
  "sideEffects": false,
11
- "exports": {
12
- ".": {
13
- "node": {
14
- "production": {
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/min/index.js",
17
- "default": "./dist/index.js"
18
- },
19
- "import": "./dist/index.mjs",
20
- "require": "./dist/index.js",
21
- "default": "./dist/index.js"
22
- },
23
- "module": "./dist/index.mjs",
24
- "import": "./dist/index.mjs",
25
- "require": "./dist/index.js",
26
- "default": "./dist/index.js"
27
- },
28
- "./package.json": "./package.json"
29
- },
30
- "main": "./dist/index.js",
31
- "module": "./dist/index.mjs",
32
- "browser": "./dist/index.mjs",
11
+ "main": "",
33
12
  "types": "./dist/index.d.ts",
34
13
  "files": [
35
14
  "dist"
36
15
  ],
37
- "prettier": {
38
- "printWidth": 80,
39
- "semi": false,
40
- "trailingComma": "all"
41
- },
42
16
  "scripts": {
43
- "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",
17
+ "build-core": "tsc --noEmit && rollup -c ./rollup.config.mjs",
18
+ "build": "pnpm build-core",
44
19
  "test": "echo 'no tests'",
45
20
  "lint": "prettier --check README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
46
21
  "format": "prettier --write README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\""
package/dist/index.d.mts DELETED
@@ -1,7 +0,0 @@
1
- interface JsonRpcConnection {
2
- send: (message: string) => void;
3
- disconnect: () => void;
4
- }
5
- declare type JsonRpcProvider = (onMessage: (message: string) => void) => JsonRpcConnection;
6
-
7
- export type { JsonRpcConnection, JsonRpcProvider };
package/dist/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/index.ts
17
- var src_exports = {};
18
- module.exports = __toCommonJS(src_exports);
19
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface JsonRpcConnection {\n send: (message: string) => void\n disconnect: () => void\n}\n\nexport declare type JsonRpcProvider = (\n onMessage: (message: string) => void,\n) => JsonRpcConnection\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,7 +0,0 @@
1
- interface JsonRpcConnection {
2
- send: (message: string) => void;
3
- disconnect: () => void;
4
- }
5
- declare type JsonRpcProvider = (onMessage: (message: string) => void) => JsonRpcConnection;
6
-
7
- export type { JsonRpcConnection, JsonRpcProvider };
package/dist/min/index.js DELETED
@@ -1,2 +0,0 @@
1
- "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);
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export interface JsonRpcConnection {\n send: (message: string) => void\n disconnect: () => void\n}\n\nexport declare type JsonRpcProvider = (\n onMessage: (message: string) => void,\n) => JsonRpcConnection\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["src_exports","__toCommonJS"]}