@oceanprotocol/lib 2.4.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import Web3 from 'web3';
2
- import { Arweave, FileInfo, ComputeJob, ComputeOutput, ComputeAlgorithm, ComputeAsset, ComputeEnvironment, ProviderInitialize, ProviderComputeInitializeResults, ServiceEndpoint, UrlFile, UserCustomParameters } from '../@types';
2
+ import { Arweave, FileInfo, ComputeJob, ComputeOutput, ComputeAlgorithm, ComputeAsset, ComputeEnvironment, ProviderInitialize, ProviderComputeInitializeResults, ServiceEndpoint, UrlFile, UserCustomParameters, Ipfs, Smartcontract, GraphqlQuery } from '../@types';
3
3
  export declare class Provider {
4
4
  /**
5
5
  * Returns the provider endpoints
@@ -44,7 +44,7 @@ export declare class Provider {
44
44
  * @param {AbortSignal} signal abort signal
45
45
  * @return {Promise<FileInfo[]>} urlDetails
46
46
  */
47
- getFileInfo(file: UrlFile | Arweave, providerUri: string, signal?: AbortSignal): Promise<FileInfo[]>;
47
+ getFileInfo(file: UrlFile | Arweave | Ipfs | GraphqlQuery | Smartcontract, providerUri: string, signal?: AbortSignal): Promise<FileInfo[]>;
48
48
  /** Get Compute Environments
49
49
  * @return {Promise<ComputeEnvironment[]>} urlDetails
50
50
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "2.4.0",
4
+ "version": "2.5.1",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/oceanprotocol/ocean.js#readme",
48
48
  "peerDependencies": {
49
- "web3": "^1.7.4"
49
+ "web3": "^1.8.0"
50
50
  },
51
51
  "dependencies": {
52
52
  "@oceanprotocol/contracts": "^1.1.8",
@@ -54,9 +54,9 @@
54
54
  "cross-fetch": "^3.1.5",
55
55
  "crypto-js": "^4.1.1",
56
56
  "decimal.js": "^10.4.1",
57
- "web3": "^1.8.0",
58
57
  "web3-core": "^1.8.0",
59
- "web3-eth-contract": "^1.8.0"
58
+ "web3-eth-contract": "^1.8.0",
59
+ "web3": "^1.8.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@truffle/hdwallet-provider": "^2.0.14",
@@ -87,7 +87,7 @@
87
87
  "source-map-support": "^0.5.19",
88
88
  "ts-node": "^10.9.1",
89
89
  "ts-node-register": "^1.0.0",
90
- "typedoc": "0.23.15",
90
+ "typedoc": "0.23.19",
91
91
  "typescript": "^4.7.4"
92
92
  },
93
93
  "nyc": {