Socket
Socket
Sign inDemoInstall

@solana/keys

Package Overview
Dependencies
Maintainers
13
Versions
1316
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/keys - npm Package Compare versions

Comparing version 0.0.0-experimental.1 to 2.0.0-experimental.044c967

6

dist/index.browser.js

@@ -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 @@ }

8

package.json
{
"name": "@solana/keys",
"version": "0.0.0-experimental.1",
"version": "2.0.0-experimental.044c967",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc