@solana/keys
Advanced tools
Comparing version 0.0.0-experimental.1 to 2.0.0-experimental.2ca9e77
@@ -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.2ca9e77", | ||
"description": "Helpers for generating and transforming key material", | ||
@@ -62,3 +62,3 @@ "exports": { | ||
"jest-environment-jsdom": "^29.5.0", | ||
"jest-runner-eslint": "^1.1.0", | ||
"jest-runner-eslint": "^2.0.0", | ||
"jest-runner-prettier": "^1.0.0", | ||
@@ -68,5 +68,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", | ||
"version-from-git": "^1.1.1", | ||
"build-scripts": "0.0.0", | ||
@@ -91,2 +92,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", | ||
@@ -93,0 +95,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
39317
378
0
25
29