@solana/errors
Advanced tools
Comparing version 2.0.0-experimental.b93299a to 2.0.0-experimental.d603013
@@ -7,6 +7,10 @@ // ../build-scripts/env-shim.ts | ||
var SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE = 2; | ||
var SOLANA_ERROR__RPC_INTEGER_OVERFLOW = 3; | ||
var SOLANA_ERROR__INVALID_KEYPAIR_BYTES = 4; | ||
// src/messages.ts | ||
var SolanaErrorMessages = { | ||
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses", | ||
[SOLANA_ERROR__INVALID_KEYPAIR_BYTES]: "Key pair bytes must be of length 64, got $byteLength.", | ||
[SOLANA_ERROR__RPC_INTEGER_OVERFLOW]: "The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.", | ||
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses.", | ||
[SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer." | ||
@@ -92,4 +96,4 @@ }; | ||
export { SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SolanaError, isSolanaError }; | ||
export { SOLANA_ERROR__INVALID_KEYPAIR_BYTES, SOLANA_ERROR__RPC_INTEGER_OVERFLOW, SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SolanaError, isSolanaError }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.browser.js.map |
@@ -7,6 +7,10 @@ // ../build-scripts/env-shim.ts | ||
var SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE = 2; | ||
var SOLANA_ERROR__RPC_INTEGER_OVERFLOW = 3; | ||
var SOLANA_ERROR__INVALID_KEYPAIR_BYTES = 4; | ||
// src/messages.ts | ||
var SolanaErrorMessages = { | ||
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses", | ||
[SOLANA_ERROR__INVALID_KEYPAIR_BYTES]: "Key pair bytes must be of length 64, got $byteLength.", | ||
[SOLANA_ERROR__RPC_INTEGER_OVERFLOW]: "The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.", | ||
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses.", | ||
[SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer." | ||
@@ -92,4 +96,4 @@ }; | ||
export { SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SolanaError, isSolanaError }; | ||
export { SOLANA_ERROR__INVALID_KEYPAIR_BYTES, SOLANA_ERROR__RPC_INTEGER_OVERFLOW, SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SolanaError, isSolanaError }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.native.js.map |
@@ -7,6 +7,10 @@ // ../build-scripts/env-shim.ts | ||
var SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE = 2; | ||
var SOLANA_ERROR__RPC_INTEGER_OVERFLOW = 3; | ||
var SOLANA_ERROR__INVALID_KEYPAIR_BYTES = 4; | ||
// src/messages.ts | ||
var SolanaErrorMessages = { | ||
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses", | ||
[SOLANA_ERROR__INVALID_KEYPAIR_BYTES]: "Key pair bytes must be of length 64, got $byteLength.", | ||
[SOLANA_ERROR__RPC_INTEGER_OVERFLOW]: "The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.", | ||
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses.", | ||
[SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer." | ||
@@ -92,4 +96,4 @@ }; | ||
export { SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SolanaError, isSolanaError }; | ||
export { SOLANA_ERROR__INVALID_KEYPAIR_BYTES, SOLANA_ERROR__RPC_INTEGER_OVERFLOW, SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SolanaError, isSolanaError }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.node.js.map |
@@ -11,2 +11,4 @@ /** | ||
export declare const SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE: 2; | ||
export declare const SOLANA_ERROR__RPC_INTEGER_OVERFLOW: 3; | ||
export declare const SOLANA_ERROR__INVALID_KEYPAIR_BYTES: 4; | ||
/** | ||
@@ -27,3 +29,3 @@ * A union of every Solana error code | ||
*/ | ||
export type SolanaErrorCode = typeof SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES | typeof SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE; | ||
export type SolanaErrorCode = typeof SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES | typeof SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE | typeof SOLANA_ERROR__RPC_INTEGER_OVERFLOW | typeof SOLANA_ERROR__INVALID_KEYPAIR_BYTES; | ||
//# sourceMappingURL=codes.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SolanaErrorCode } from './codes.js'; | ||
import { SOLANA_ERROR__INVALID_KEYPAIR_BYTES, SOLANA_ERROR__RPC_INTEGER_OVERFLOW, SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SolanaErrorCode } from './codes.js'; | ||
export type DefaultUnspecifiedErrorContextToUndefined<T> = { | ||
@@ -16,3 +16,14 @@ [P in SolanaErrorCode]: P extends keyof T ? T[P] : undefined; | ||
}; | ||
[SOLANA_ERROR__RPC_INTEGER_OVERFLOW]: { | ||
argumentLabel: string; | ||
keyPath: readonly (string | number | symbol)[]; | ||
methodName: string; | ||
optionalPathLabel: string; | ||
path?: string; | ||
value: bigint; | ||
}; | ||
[SOLANA_ERROR__INVALID_KEYPAIR_BYTES]: { | ||
byteLength: number; | ||
}; | ||
}>; | ||
//# sourceMappingURL=context.d.ts.map |
{ | ||
"name": "@solana/errors", | ||
"version": "2.0.0-experimental.b93299a", | ||
"version": "2.0.0-experimental.d603013", | ||
"description": "Throw, identify, and decode Solana JavaScript errors", | ||
@@ -35,3 +35,3 @@ "exports": { | ||
], | ||
"bin": "./bin/cli.ts", | ||
"bin": "./bin/cli.js", | ||
"author": "Solana Labs Maintainers <maintainers@solanalabs.com>", | ||
@@ -53,2 +53,6 @@ "license": "MIT", | ||
}, | ||
"dependencies": { | ||
"commander": "^11.1.0", | ||
"chalk": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
@@ -62,4 +66,2 @@ "@solana/eslint-config-solana": "^1.0.2", | ||
"agadoo": "^3.0.0", | ||
"chalk": "^5.3.0", | ||
"commander": "^11.1.0", | ||
"eslint": "^8.45.0", | ||
@@ -74,9 +76,8 @@ "eslint-plugin-jest": "^27.4.2", | ||
"tsup": "^8.0.1", | ||
"tsx": "^4.7.0", | ||
"typescript": "^5.2.2", | ||
"version-from-git": "^1.1.1", | ||
"@solana/addresses": "2.0.0-experimental.b93299a", | ||
"build-scripts": "0.0.0", | ||
"@solana/addresses": "2.0.0-experimental.d603013", | ||
"test-config": "0.0.0", | ||
"tsconfig": "0.0.0" | ||
"tsconfig": "0.0.0", | ||
"build-scripts": "0.0.0" | ||
}, | ||
@@ -92,3 +93,3 @@ "bundlewatch": { | ||
"scripts": { | ||
"compile:js": "tsup --config build-scripts/tsup.config.package.ts", | ||
"compile:js": "tsup --config build-scripts/tsup.config.package.ts && tsup src/cli.ts --format esm", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs", | ||
@@ -95,0 +96,0 @@ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", |
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
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
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
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
86815
22
28
713
2
+ Addedchalk@^5.3.0
+ Addedcommander@^11.1.0
+ Addedchalk@5.4.1(transitive)
+ Addedcommander@11.1.0(transitive)