From a1f103dc242e615f21528005af06d7b03be6fd71 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 20 May 2021 02:06:41 +0200 Subject: [PATCH] fix: health --- CHANGELOG.MD | 6 ++++++ package.json | 2 +- src/endpoints/health/index.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 73e22117..2ba011b8 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). +## [0.2.6] - 2021-05-20 + +### Fixed + +- health endpoint response + ## [0.2.5] - 2021-05-19 ### Changed diff --git a/package.json b/package.json index 67600ea3..c37535c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blockfrost/blockfrost-js", - "version": "0.2.5", + "version": "0.2.6", "description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", "files": [ "lib/**/*.js", diff --git a/src/endpoints/health/index.ts b/src/endpoints/health/index.ts index bb11eddf..19ecac05 100644 --- a/src/endpoints/health/index.ts +++ b/src/endpoints/health/index.ts @@ -2,7 +2,7 @@ import axios from 'axios'; import { getHeaders, handleError } from '../../utils'; import { BlockFrostAPI } from '../../index'; -export function health(this: BlockFrostAPI): Promise<{ isHealthy: boolean }> { +export function health(this: BlockFrostAPI): Promise<{ is_healthy: boolean }> { return new Promise((resolve, reject) => { axios .get(`${this.apiUrl}/health`, {