1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

merge main

This commit is contained in:
Bogdan Fazakas 2022-08-11 10:19:17 +03:00
commit 49bca513d6
4 changed files with 26 additions and 20 deletions

View File

@ -4,8 +4,27 @@ All notable changes to this project will be documented in this file. Dates are d
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v1.1.8](https://github.com/oceanprotocol/ocean.js/compare/v1.1.7...v1.1.8)
- Let do any query in Aquarius [`#1576`](https://github.com/oceanprotocol/ocean.js/pull/1576)
- let do any query in Aquarius [`02b805a`](https://github.com/oceanprotocol/ocean.js/commit/02b805a45ddbc77a0d4675a06e73b31d0494d55f)
#### [v1.1.7](https://github.com/oceanprotocol/ocean.js/compare/v1.1.6...v1.1.7)
> 2 August 2022
- Issue-#1556: Add nft.setData() function [`#1558`](https://github.com/oceanprotocol/ocean.js/pull/1558)
- Bump terser from 5.10.0 to 5.14.2 [`#1564`](https://github.com/oceanprotocol/ocean.js/pull/1564)
- Issue-#1557: Add Aquarius.getAssetMetadata() and Aquarius.querySearch() functions [`#1560`](https://github.com/oceanprotocol/ocean.js/pull/1560)
- fix download [`#1563`](https://github.com/oceanprotocol/ocean.js/pull/1563)
- add querySearch() function [`8b952c6`](https://github.com/oceanprotocol/ocean.js/commit/8b952c6b05c50f3f29f2e4b44ace443adf07f10e)
- add getAssetMetadata() function [`76471f3`](https://github.com/oceanprotocol/ocean.js/commit/76471f367784360725ff05784a0b017be7c947c9)
- add setData function to NFT [`fc78894`](https://github.com/oceanprotocol/ocean.js/commit/fc78894753e2f24dd167a8e90401b56b1af938f8)
#### [v1.1.6](https://github.com/oceanprotocol/ocean.js/compare/v1.1.5...v1.1.6)
> 11 July 2022
- get files checksum using fileInfo helper [`#1555`](https://github.com/oceanprotocol/ocean.js/pull/1555)
- review provider URL [`#1554`](https://github.com/oceanprotocol/ocean.js/pull/1554)
- CI updates [`#1503`](https://github.com/oceanprotocol/ocean.js/pull/1503)
@ -20,6 +39,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Bump @typescript-eslint/parser from 5.30.0 to 5.30.4 [`#1545`](https://github.com/oceanprotocol/ocean.js/pull/1545)
- Bump ts-node from 10.8.0 to 10.8.2 [`#1546`](https://github.com/oceanprotocol/ocean.js/pull/1546)
- Bump eslint-plugin-prettier from 4.1.0 to 4.2.1 [`#1541`](https://github.com/oceanprotocol/ocean.js/pull/1541)
- Release 1.1.6 [`bbab53c`](https://github.com/oceanprotocol/ocean.js/commit/bbab53c7bfe81b2c6bcbbcd9b02a1023dc59a5fb)
- add checksum param when fetching fileinfo and checksum aatribute to fileinfo interface [`00f776d`](https://github.com/oceanprotocol/ocean.js/commit/00f776d5404e0f5c8f7eec36460a65e258a69d81)
#### [v1.1.5](https://github.com/oceanprotocol/ocean.js/compare/v1.1.4...v1.1.5)

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@oceanprotocol/lib",
"version": "1.1.6",
"version": "1.1.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@oceanprotocol/lib",
"version": "1.1.6",
"version": "1.1.8",
"license": "Apache-2.0",
"dependencies": {
"@oceanprotocol/contracts": "^1.0.0",

View File

@ -1,7 +1,7 @@
{
"name": "@oceanprotocol/lib",
"source": "./src/index.ts",
"version": "1.1.6",
"version": "1.1.8",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/lib.js",
"umd:main": "dist/lib.umd.js",

View File

@ -5,24 +5,10 @@ import fetch from 'cross-fetch'
export interface SearchQuery {
from?: number
size?: number
query: {
match?: {
[property: string]:
| string
| number
| boolean
| Record<string, string | number | boolean>
}
// eslint-disable-next-line camelcase
query_string?: {
[property: string]: string | number | string[] | number[] | boolean
}
// eslint-disable-next-line camelcase
simple_query_string?: {
[property: string]: string | number | string[] | number[] | boolean
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
query: any
sort?: { [jsonPath: string]: string }
aggs?: any
}
export class Aquarius {