Skip to content

Commit

Permalink
Merge pull request #135 from blockfrost/release-2.0.2
Browse files Browse the repository at this point in the history
Release 2.0.2
  • Loading branch information
slowbackspace authored Oct 18, 2021
2 parents 21aff5c + e538000 commit b34d386
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.2]

### Fixed

- `assetsPolicyById` response schema
- ipfs add maxContentLength and maxBodyLength

## [2.0.1]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/blockfrost-js",
"version": "2.0.1",
"version": "2.0.2",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",
"keywords": [
"blockfrost",
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/api/assets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ export async function assetsPolicyByIdAll(
this: BlockFrostAPI,
policy: string,
allMethodOptions?: AllMethodOptions,
): Promise<components['schemas']['asset_addresses']> {
): Promise<components['schemas']['asset_policy']> {
let page = 1;
const count = DEFAULT_PAGINATION_PAGE_ITEMS_COUNT;
const res: components['schemas']['asset_addresses'] = [];
const res: components['schemas']['asset_policy'] = [];
const options = getAllMethodOptions(allMethodOptions);

const getPromiseBundle = () => {
Expand Down
2 changes: 2 additions & 0 deletions src/endpoints/ipfs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export async function add(
headers: {
'Content-Type': `multipart/form-data; boundary=${data.getBoundary()}`,
},
maxContentLength: 100000000,
maxBodyLength: 100000000,
})
.then(resp => {
resolve(resp.data);
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/endpoints/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
),
response: [
{
fee: '212055687',
fee: expect.any(String),
purpose: 'spend',
tx_hash:
'a95d16e891e51f98a3b1d3fe862ed355ebc8abffb7a7269d86f775553d9e653f',
Expand Down

0 comments on commit b34d386

Please sign in to comment.