@solana/errors 2.0.0-rc.3 → 2.0.0
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/dist/cli.mjs +1 -1
- package/dist/index.browser.cjs +10 -8
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +10 -8
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +10 -8
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +10 -8
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +10 -8
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/instruction-error.d.ts +1 -1
- package/dist/types/instruction-error.d.ts.map +1 -1
- package/dist/types/json-rpc-error.d.ts +2 -2
- package/dist/types/json-rpc-error.d.ts.map +1 -1
- package/package.json +1 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SolanaError } from './error';
|
|
2
|
-
export declare function getSolanaErrorFromInstructionError(index: number, instructionError: string | {
|
|
2
|
+
export declare function getSolanaErrorFromInstructionError(index: bigint | number, instructionError: string | {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
}): SolanaError;
|
|
5
5
|
//# sourceMappingURL=instruction-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction-error.d.ts","sourceRoot":"","sources":["../../src/instruction-error.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA+DtC,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"instruction-error.d.ts","sourceRoot":"","sources":["../../src/instruction-error.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA+DtC,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,gBAAgB,EAAE,MAAM,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GACtD,WAAW,CA8Bb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SolanaError } from './error';
|
|
2
2
|
interface RpcErrorResponse {
|
|
3
|
-
code: number;
|
|
3
|
+
code: bigint | number;
|
|
4
4
|
data?: unknown;
|
|
5
5
|
message: string;
|
|
6
6
|
}
|
|
@@ -47,6 +47,6 @@ export interface RpcSimulateTransactionResult {
|
|
|
47
47
|
} | null;
|
|
48
48
|
unitsConsumed: number | null;
|
|
49
49
|
}
|
|
50
|
-
export declare function getSolanaErrorFromJsonRpcError({ code, data, message }: RpcErrorResponse): SolanaError;
|
|
50
|
+
export declare function getSolanaErrorFromJsonRpcError({ code: rawCode, data, message }: RpcErrorResponse): SolanaError;
|
|
51
51
|
export {};
|
|
52
52
|
//# sourceMappingURL=json-rpc-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-rpc-error.d.ts","sourceRoot":"","sources":["../../src/json-rpc-error.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,UAAU,gBAAgB;IACtB,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"json-rpc-error.d.ts","sourceRoot":"","sources":["../../src/json-rpc-error.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,UAAU,gBAAgB;IACtB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,KAAK,gBAAgB,GAAG,MAAM,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAG5D,MAAM,WAAW,4BAA4B;IACzC,QAAQ,EACF,CAAC;QACG,IAAI,EACE,MAAM,GACN;YAEI,MAAM,EAAE,OAAO,CAAC;YAChB,OAAO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,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,gBAAgB,GAAG,WAAW,CA0C9G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/errors",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Throw, identify, and decode Solana JavaScript errors",
|
|
5
5
|
"exports": {
|
|
6
6
|
"edge-light": {
|
|
@@ -64,14 +64,6 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"typescript": ">=5"
|
|
66
66
|
},
|
|
67
|
-
"bundlewatch": {
|
|
68
|
-
"defaultCompression": "gzip",
|
|
69
|
-
"files": [
|
|
70
|
-
{
|
|
71
|
-
"path": "./dist/index*.js"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
67
|
"engines": {
|
|
76
68
|
"node": ">=20.18.0"
|
|
77
69
|
},
|