@solana/keys
Advanced tools
Comparing version 0.0.0-experimental.1 to 2.0.0-experimental.021b83f
@@ -6,3 +6,7 @@ import bs58 from 'bs58'; | ||
try { | ||
if (putativeBase58EncodedAddress.length < 32 || putativeBase58EncodedAddress.length > 44) { | ||
if ( | ||
// Lowest address (32 bytes of zeroes) | ||
putativeBase58EncodedAddress.length < 32 || // Highest address (32 bytes of 255) | ||
putativeBase58EncodedAddress.length > 44 | ||
) { | ||
throw new Error("Expected input string to decode to a byte array of length 32."); | ||
@@ -9,0 +13,0 @@ } |
@@ -26,2 +26,6 @@ this.globalThis = this.globalThis || {}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -186,3 +190,7 @@ mod | ||
try { | ||
if (putativeBase58EncodedAddress.length < 32 || putativeBase58EncodedAddress.length > 44) { | ||
if ( | ||
// Lowest address (32 bytes of zeroes) | ||
putativeBase58EncodedAddress.length < 32 || // Highest address (32 bytes of 255) | ||
putativeBase58EncodedAddress.length > 44 | ||
) { | ||
throw new Error("Expected input string to decode to a byte array of length 32."); | ||
@@ -189,0 +197,0 @@ } |
@@ -6,3 +6,7 @@ import bs58 from 'bs58'; | ||
try { | ||
if (putativeBase58EncodedAddress.length < 32 || putativeBase58EncodedAddress.length > 44) { | ||
if ( | ||
// Lowest address (32 bytes of zeroes) | ||
putativeBase58EncodedAddress.length < 32 || // Highest address (32 bytes of 255) | ||
putativeBase58EncodedAddress.length > 44 | ||
) { | ||
throw new Error("Expected input string to decode to a byte array of length 32."); | ||
@@ -9,0 +13,0 @@ } |
@@ -6,3 +6,7 @@ import bs58 from 'bs58'; | ||
try { | ||
if (putativeBase58EncodedAddress.length < 32 || putativeBase58EncodedAddress.length > 44) { | ||
if ( | ||
// Lowest address (32 bytes of zeroes) | ||
putativeBase58EncodedAddress.length < 32 || // Highest address (32 bytes of 255) | ||
putativeBase58EncodedAddress.length > 44 | ||
) { | ||
throw new Error("Expected input string to decode to a byte array of length 32."); | ||
@@ -9,0 +13,0 @@ } |
{ | ||
"name": "@solana/keys", | ||
"version": "0.0.0-experimental.1", | ||
"version": "2.0.0-experimental.021b83f", | ||
"description": "Helpers for generating and transforming key material", | ||
@@ -49,10 +49,10 @@ "exports": { | ||
"devDependencies": { | ||
"@solana/eslint-config-solana": "^0.0.4", | ||
"@solana/eslint-config-solana": "^1.0.0", | ||
"@swc/core": "^1.3.18", | ||
"@swc/jest": "^0.2.23", | ||
"@types/jest": "^29.5.0", | ||
"@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"agadoo": "^2.0.0", | ||
"eslint": "^8.27.0", | ||
"@typescript-eslint/eslint-plugin": "^5.57.1", | ||
"@typescript-eslint/parser": "^5.57.1", | ||
"agadoo": "^3.0.0", | ||
"eslint": "^8.37.0", | ||
"eslint-plugin-jest": "^27.1.5", | ||
@@ -63,3 +63,3 @@ "eslint-plugin-react-hooks": "^4.6.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"jest-runner-eslint": "^1.1.0", | ||
"jest-runner-eslint": "^2.0.0", | ||
"jest-runner-prettier": "^1.0.0", | ||
@@ -69,5 +69,6 @@ "postcss": "^8.4.12", | ||
"ts-node": "^10.9.1", | ||
"tsup": "6.5.0", | ||
"tsup": "6.7.0", | ||
"turbo": "^1.6.3", | ||
"typescript": "^4.9", | ||
"typescript": "^5.0.3", | ||
"version-from-git": "^1.1.1", | ||
"build-scripts": "0.0.0", | ||
@@ -92,2 +93,3 @@ "test-config": "0.0.0", | ||
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", | ||
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", | ||
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent", | ||
@@ -94,0 +96,0 @@ "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
39319
378
0
25