@blockfrost/blockfrost-js
Advanced tools
Comparing version 3.0.0-beta.6 to 3.0.0-beta.7
@@ -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": [ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
288879
7489
3