@blockfrost/blockfrost-js
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -16,2 +16,3 @@ import { AxiosInstance } from 'axios'; | ||
import { nutlinkAddress, nutlinkAddressTicker, nutlinkAddressTickers, nutlinkAddressTickersAll, nutlinkAddressTickerAll, nutlinkTickers, nutlinkTickersAll } from './endpoints/api/nutlink'; | ||
import { network } from './endpoints/api/network'; | ||
import { Options, ValidatedOptions } from './types'; | ||
@@ -673,3 +674,10 @@ declare class BlockFrostAPI { | ||
getAccount: typeof getAccount; | ||
/** | ||
* network | ||
* | ||
* @returns Detailed network information. | ||
* | ||
*/ | ||
network: typeof network; | ||
} | ||
export { BlockFrostAPI }; |
@@ -22,2 +22,3 @@ "use strict"; | ||
const nutlink_1 = require("./endpoints/api/nutlink"); | ||
const network_1 = require("./endpoints/api/network"); | ||
const url_join_1 = __importDefault(require("url-join")); | ||
@@ -676,2 +677,9 @@ const utils_1 = require("./utils"); | ||
this.getAccount = account_1.getAccount; | ||
/** | ||
* network | ||
* | ||
* @returns Detailed network information. | ||
* | ||
*/ | ||
this.network = network_1.network; | ||
this.options = utils_1.validateOptions(options); | ||
@@ -678,0 +686,0 @@ let apiBase = config_1.API_URLS.mainnet; |
{ | ||
"name": "@blockfrost/blockfrost-js", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -42,3 +42,3 @@ ![master build ci](https://github.com/blockfrost/blockfrost-js/actions/workflows/build.yml/badge.svg?branch=master) [![npm version](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-js.svg)](https://badge.fury.io/js/%40blockfrost%2Fblockfrost-js) ![downloads](https://img.shields.io/npm/dy/@blockfrost/blockfrost-js) <a href="https://fivebinaries.com/"><img src="https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square" /></a> <img src="./docs/badge-coverage.svg" /> | ||
```typescript | ||
import { BlockfrostAPI } from '@blockfrost/blockfrost-js'; | ||
import { BlockFrostAPI } from '@blockfrost/blockfrost-js'; | ||
@@ -69,3 +69,3 @@ const API = new BlockFrostAPI({ | ||
```typescript | ||
import { BlockfrostIPFS } from '@blockfrost/blockfrost-js'; | ||
import { BlockFrostIPFS } from '@blockfrost/blockfrost-js'; | ||
@@ -72,0 +72,0 @@ const IPFS = new BlockFrostIPFS({ |
56
6896
263118