@solana/rpc-spec-types 2.0.0-experimental.feaeef2 → 2.0.0-preview.1
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.
|
@@ -3,9 +3,9 @@ interface IHasIdentifier {
|
|
|
3
3
|
readonly id: number;
|
|
4
4
|
}
|
|
5
5
|
export type RpcResponse<TResponse> = IHasIdentifier & Readonly<{
|
|
6
|
-
result: TResponse;
|
|
7
|
-
} | {
|
|
8
6
|
error: RpcErrorResponse;
|
|
7
|
+
} | {
|
|
8
|
+
result: TResponse;
|
|
9
9
|
}>;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=rpc-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-response.d.ts","sourceRoot":"","sources":["../../src/rpc-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,UAAU,cAAc;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,WAAW,CAAC,SAAS,IAAI,cAAc,GAAG,QAAQ,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"rpc-response.d.ts","sourceRoot":"","sources":["../../src/rpc-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,UAAU,cAAc;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,WAAW,CAAC,SAAS,IAAI,cAAc,GAAG,QAAQ,CAAC;IAAE,KAAK,EAAE,gBAAgB,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/rpc-spec-types",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-preview.1",
|
|
4
4
|
"description": "Shared generic JSON RPC specifications",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -55,18 +55,18 @@
|
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
58
|
-
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
|
|
59
|
-
"dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
60
|
-
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag
|
|
58
|
+
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node ../../node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
|
|
59
|
+
"dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
60
|
+
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag preview --access public --no-git-checks",
|
|
61
61
|
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
|
|
62
62
|
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
|
|
63
|
-
"test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
64
|
-
"test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
63
|
+
"test:lint": "jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
64
|
+
"test:prettier": "jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
65
65
|
"test:treeshakability:browser": "agadoo dist/index.browser.js",
|
|
66
66
|
"test:treeshakability:native": "agadoo dist/index.native.js",
|
|
67
67
|
"test:treeshakability:node": "agadoo dist/index.node.js",
|
|
68
68
|
"test:typecheck": "tsc --noEmit",
|
|
69
|
-
"test:unit:browser": "jest -c node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
70
|
-
"test:unit:node": "jest -c node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
69
|
+
"test:unit:browser": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
70
|
+
"test:unit:node": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
71
71
|
}
|
|
72
72
|
}
|