@solana/errors 5.1.0-canary-20251202174830 → 5.1.0-canary-20251203192226

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +81 -79
package/dist/cli.mjs CHANGED
@@ -4,7 +4,7 @@ import { Command, InvalidArgumentError } from 'commander';
4
4
  // src/cli.ts
5
5
 
6
6
  // package.json
7
- var version = "5.1.0-canary-20251202174830";
7
+ var version = "5.1.0-canary-20251203192226";
8
8
 
9
9
  // src/context.ts
10
10
  function decodeEncodedContext(encodedContext) {
package/package.json CHANGED
@@ -1,85 +1,87 @@
1
1
  {
2
- "name": "@solana/errors",
3
- "version": "5.1.0-canary-20251202174830",
4
- "description": "Throw, identify, and decode Solana JavaScript errors",
5
- "homepage": "https://www.solanakit.com/api#solanaerrors",
6
- "exports": {
7
- "edge-light": {
8
- "import": "./dist/index.node.mjs",
9
- "require": "./dist/index.node.cjs"
10
- },
11
- "workerd": {
12
- "import": "./dist/index.node.mjs",
13
- "require": "./dist/index.node.cjs"
2
+ "name": "@solana/errors",
3
+ "version": "5.1.0-canary-20251203192226",
4
+ "description": "Throw, identify, and decode Solana JavaScript errors",
5
+ "homepage": "https://www.solanakit.com/api#solanaerrors",
6
+ "exports": {
7
+ "edge-light": {
8
+ "import": "./dist/index.node.mjs",
9
+ "require": "./dist/index.node.cjs"
10
+ },
11
+ "workerd": {
12
+ "import": "./dist/index.node.mjs",
13
+ "require": "./dist/index.node.cjs"
14
+ },
15
+ "browser": {
16
+ "import": "./dist/index.browser.mjs",
17
+ "require": "./dist/index.browser.cjs"
18
+ },
19
+ "node": {
20
+ "import": "./dist/index.node.mjs",
21
+ "require": "./dist/index.node.cjs"
22
+ },
23
+ "react-native": "./dist/index.native.mjs",
24
+ "types": "./dist/types/index.d.ts"
14
25
  },
15
26
  "browser": {
16
- "import": "./dist/index.browser.mjs",
17
- "require": "./dist/index.browser.cjs"
18
- },
19
- "node": {
20
- "import": "./dist/index.node.mjs",
21
- "require": "./dist/index.node.cjs"
27
+ "./dist/index.node.cjs": "./dist/index.browser.cjs",
28
+ "./dist/index.node.mjs": "./dist/index.browser.mjs"
22
29
  },
30
+ "main": "./dist/index.node.cjs",
31
+ "module": "./dist/index.node.mjs",
23
32
  "react-native": "./dist/index.native.mjs",
24
- "types": "./dist/types/index.d.ts"
25
- },
26
- "browser": {
27
- "./dist/index.node.cjs": "./dist/index.browser.cjs",
28
- "./dist/index.node.mjs": "./dist/index.browser.mjs"
29
- },
30
- "main": "./dist/index.node.cjs",
31
- "module": "./dist/index.node.mjs",
32
- "react-native": "./dist/index.native.mjs",
33
- "types": "./dist/types/index.d.ts",
34
- "type": "commonjs",
35
- "files": [
36
- "./dist/"
37
- ],
38
- "sideEffects": false,
39
- "keywords": [
40
- "blockchain",
41
- "solana",
42
- "web3"
43
- ],
44
- "bin": "./bin/cli.mjs",
45
- "author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
46
- "license": "MIT",
47
- "repository": {
48
- "type": "git",
49
- "url": "https://github.com/anza-xyz/kit"
50
- },
51
- "bugs": {
52
- "url": "https://github.com/anza-xyz/kit/issues"
53
- },
54
- "browserslist": [
55
- "supports bigint and not dead",
56
- "maintained node versions"
57
- ],
58
- "dependencies": {
59
- "chalk": "5.6.2",
60
- "commander": "14.0.2"
61
- },
62
- "peerDependencies": {
63
- "typescript": ">=5.3.3"
64
- },
65
- "engines": {
66
- "node": ">=20.18.0"
67
- },
68
- "scripts": {
69
- "compile:docs": "typedoc",
70
- "compile:js": "tsup --config build-scripts/tsup.config.package.ts && tsup src/cli.ts --define.__NODEJS__ true --format esm --treeshake",
71
- "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
72
- "dev": "NODE_OPTIONS=\"--localstorage-file=$(mktemp)\" jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
73
- "publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || (pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks && (([ -n \"${GITHUB_OUTPUT:-}\" ] && echo 'published=true' >> \"$GITHUB_OUTPUT\") || true) && (([ \"$PUBLISH_TAG\" != \"canary\" ] && ../build-scripts/maybe-tag-latest.ts --token \"$GITHUB_TOKEN\" $npm_package_name@$npm_package_version) || true))",
74
- "publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
75
- "style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*",
76
- "test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
77
- "test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
78
- "test:treeshakability:browser": "agadoo dist/index.browser.mjs",
79
- "test:treeshakability:native": "agadoo dist/index.native.mjs",
80
- "test:treeshakability:node": "agadoo dist/index.node.mjs",
81
- "test:typecheck": "tsc --noEmit",
82
- "test:unit:browser": "NODE_OPTIONS=\"--localstorage-file=$(mktemp)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
83
- "test:unit:node": "NODE_OPTIONS=\"--localstorage-file=$(mktemp)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent"
84
- }
33
+ "types": "./dist/types/index.d.ts",
34
+ "type": "commonjs",
35
+ "files": [
36
+ "./dist/"
37
+ ],
38
+ "sideEffects": false,
39
+ "keywords": [
40
+ "blockchain",
41
+ "solana",
42
+ "web3"
43
+ ],
44
+ "bin": "./bin/cli.mjs",
45
+ "scripts": {
46
+ "compile:docs": "typedoc",
47
+ "compile:js": "tsup --config build-scripts/tsup.config.package.ts && tsup src/cli.ts --define.__NODEJS__ true --format esm --treeshake",
48
+ "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
49
+ "dev": "NODE_OPTIONS=\"--localstorage-file=$(mktemp)\" jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
50
+ "prepublishOnly": "pnpm pkg delete devDependencies",
51
+ "publish-impl": "npm publish --tag ${PUBLISH_TAG:-canary} --access public",
52
+ "publish-packages": "node ../../scripts/temp/oidc.js && pnpm prepublishOnly && pnpm publish-impl",
53
+ "style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*",
54
+ "test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
55
+ "test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
56
+ "test:treeshakability:browser": "agadoo dist/index.browser.mjs",
57
+ "test:treeshakability:native": "agadoo dist/index.native.mjs",
58
+ "test:treeshakability:node": "agadoo dist/index.node.mjs",
59
+ "test:typecheck": "tsc --noEmit",
60
+ "test:unit:browser": "NODE_OPTIONS=\"--localstorage-file=$(mktemp)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
61
+ "test:unit:node": "NODE_OPTIONS=\"--localstorage-file=$(mktemp)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent",
62
+ "debug-npm": "npm config list && echo NPM_CONFIG_USERCONFIG=$NPM_CONFIG_USERCONFIG"
63
+ },
64
+ "author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
65
+ "license": "MIT",
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "https://github.com/anza-xyz/kit"
69
+ },
70
+ "bugs": {
71
+ "url": "https://github.com/anza-xyz/kit/issues"
72
+ },
73
+ "browserslist": [
74
+ "supports bigint and not dead",
75
+ "maintained node versions"
76
+ ],
77
+ "dependencies": {
78
+ "chalk": "5.6.2",
79
+ "commander": "14.0.2"
80
+ },
81
+ "peerDependencies": {
82
+ "typescript": ">=5.3.3"
83
+ },
84
+ "engines": {
85
+ "node": ">=20.18.0"
86
+ }
85
87
  }