From 5c7dfb004e7368a71b7fe0ae081e11eb8c9b58e1 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Tue, 14 Sep 2021 20:51:47 +0200 Subject: [PATCH] fix: metadata types --- CHANGELOG.MD | 6 ++++++ package.json | 2 +- src/endpoints/api/metadata/index.ts | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index d12e3a88..b539672c 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.1] + +### Fixed + +- `metadataTxsLabels` and `metadataTxsLabel` endpoints types + ## [2.0.0] ### ⚠️ Breaking change - Fix diff --git a/package.json b/package.json index 3d67b5ab..a7311bd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blockfrost/blockfrost-js", - "version": "2.0.0", + "version": "2.0.1", "description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", "keywords": [ "blockfrost", diff --git a/src/endpoints/api/metadata/index.ts b/src/endpoints/api/metadata/index.ts index 8b66f046..02db743c 100644 --- a/src/endpoints/api/metadata/index.ts +++ b/src/endpoints/api/metadata/index.ts @@ -6,7 +6,7 @@ import { BlockFrostAPI } from '../../../index'; export async function metadataTxsLabels( this: BlockFrostAPI, pagination?: PaginationOptions, -): Promise { +): Promise { const paginationOptions = getPaginationOptions(pagination); return new Promise((resolve, reject) => { @@ -30,7 +30,7 @@ export async function metadataTxsLabel( this: BlockFrostAPI, label: string, pagination?: PaginationOptions, -): Promise { +): Promise { const paginationOptions = getPaginationOptions(pagination); return new Promise((resolve, reject) => {