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

@blockfrost/blockfrost-js

Package Overview
Dependencies
Maintainers
2
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockfrost/blockfrost-js - npm Package Compare versions

Comparing version 3.0.0-beta.6 to 3.0.0-beta.7

2

lib/endpoints/api/addresses/index.js

@@ -8,3 +8,3 @@ "use strict";

return new Promise((resolve, reject) => {
this.instance(`addresses/${address}`)
this.instance(`addresses/${address}/s`)
.then(resp => {

@@ -11,0 +11,0 @@ resolve(resp.body);

@@ -5,2 +5,3 @@ "use strict";

const got_1 = require("got");
const utils_1 = require("../utils");
class BlockfrostServerError extends Error {

@@ -43,2 +44,4 @@ constructor(error) {

var _a;
utils_1.debugMessage(error, 'error start', 'error end');
utils_1.debugMessage(error.response, 'error.response start', 'error.response end');
if (error instanceof got_1.HTTPError) {

@@ -45,0 +48,0 @@ const responseBody = error.response.body;

@@ -13,1 +13,2 @@ import { ParseAssetResult } from '../types/utils';

export declare const paginateMethod: <T extends (pagination: PaginationOptions, additionalOptions?: AdditionalEndpointOptions | undefined) => any>(fn: T, allMethodOptions: AllMethodOptions | undefined, additionalOptions?: AdditionalEndpointOptions | undefined) => Promise<ReturnType<T>>;
export declare const debugMessage: (body: any, head?: string | undefined, tail?: string | undefined) => void;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateMethod = exports.parseAsset = exports.getFingerprint = exports.getAllMethodOptions = exports.getPaginationOptions = exports.getAdditionalParams = exports.validateOptions = void 0;
exports.debugMessage = exports.paginateMethod = exports.parseAsset = exports.getFingerprint = exports.getAllMethodOptions = exports.getPaginationOptions = exports.getAdditionalParams = exports.validateOptions = void 0;
const cip14_js_1 = __importDefault(require("@emurgo/cip14-js"));

@@ -147,1 +147,13 @@ const config_1 = require("../config");

exports.paginateMethod = paginateMethod;
const debugMessage = (body, head, tail) => {
if (!!process.env.BLOCKFROST_DEBUG !== true)
return;
if (head) {
console.log(`------ ${head}`);
}
console.log(body);
if (tail) {
console.log(`------ ${tail}`);
}
};
exports.debugMessage = debugMessage;
{
"name": "@blockfrost/blockfrost-js",
"version": "3.0.0-beta.6",
"version": "3.0.0-beta.7",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",

@@ -5,0 +5,0 @@ "keywords": [

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