Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blockfrost/blockfrost-utils

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockfrost/blockfrost-utils - npm Package Compare versions

Comparing version 2.4.1-beta.2 to 2.4.1-beta.3

8

lib/validation.d.ts

@@ -15,4 +15,8 @@ declare type BlockfrostNetwork = 'mainnet' | 'testnet' | 'preview' | 'preprod';

addressType: "byron" | "shelley" | undefined;
paymentCred: string | undefined;
prefix: SUPPORTED_PAYMENT_CRED_PREFIX | undefined;
paymentCred: string;
paymentCredPrefix: SUPPORTED_PAYMENT_CRED_PREFIX;
} | {
addressType: "byron" | "shelley" | undefined;
paymentCred?: undefined;
paymentCredPrefix?: undefined;
};

@@ -19,0 +23,0 @@ export declare const scriptHashFromBech32Address: (input: string) => string | undefined;

@@ -180,7 +180,14 @@ "use strict";

: undefined;
return {
addressType,
paymentCred: paymentCred === null || paymentCred === void 0 ? void 0 : paymentCred.paymentCred,
prefix: paymentCred === null || paymentCred === void 0 ? void 0 : paymentCred.prefix,
};
if (paymentCred) {
return {
addressType,
paymentCred: paymentCred.paymentCred,
paymentCredPrefix: paymentCred.prefix,
};
}
else {
return {
addressType,
};
}
};

@@ -187,0 +194,0 @@ exports.getAddressTypeAndPaymentCred = getAddressTypeAndPaymentCred;

{
"name": "@blockfrost/blockfrost-utils",
"version": "2.4.1-beta.2",
"version": "2.4.1-beta.3",
"repository": "git@github.com:blockfrost/blockfrost-utils.git",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

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