1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Merge pull request #286 from oceanprotocol/feature/packages

Fix Node.js usage, package updates
This commit is contained in:
Matthias Kretschmann 2019-07-31 13:27:44 +02:00 committed by GitHub
commit 199a1b3d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1726 additions and 1176 deletions

View File

@ -9,3 +9,13 @@ tsconfig.json
tslint.json
oceanprotocol-squid-*.tgz
squid-js.json
barge/
integration/
plugins/
scripts/
webpack*
ganache*
.prettierrc
.editorconfig
.eslintrc
SQUID_INTERFACE.md

2858
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/node/squid.js",
"typings": "./dist/node/squid.d.ts",
"browser": "./dist/browser/squid.cjs2.min.js",
"unpkg": "./dist/browser/squid.cjs2.min.js",
"scripts": {
"start": "npm link @oceanprotocol/keeper-contracts @oceanprotocol/secret-store-client && npm run build:watch",
"build": "npm run clean && npm run build:tsc && npm run build:dist",
@ -54,7 +54,7 @@
"dependencies": {
"@oceanprotocol/keeper-contracts": "^0.10.3",
"@oceanprotocol/secret-store-client": "0.0.15",
"bignumber.js": "^8.1.1",
"bignumber.js": "^9.0.0",
"deprecated-decorator": "^0.1.6",
"node-fetch": "^2.6.0",
"save-file": "^2.3.1",
@ -67,32 +67,32 @@
"@types/chai": "^4.1.7",
"@types/chai-spies": "^1.0.0",
"@types/mocha": "^5.2.7",
"@types/node": "^12.0.5",
"@types/node-fetch": "^2.3.5",
"@typescript-eslint/eslint-plugin": "^1.10.2",
"@typescript-eslint/parser": "^1.10.2",
"auto-changelog": "^1.13.0",
"@types/node": "^12.6.8",
"@types/node-fetch": "^2.5.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"auto-changelog": "^1.14.1",
"chai": "^4.2.0",
"chai-spies": "^1.0.0",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint": "^6.1.0",
"eslint-config-oceanprotocol": "^1.3.0",
"eslint-config-prettier": "^5.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"lcov-result-merger": "^3.1.0",
"mocha": "^6.1.4",
"mocha": "^6.2.0",
"mock-local-storage": "^1.1.8",
"nyc": "^14.1.1",
"ora": "^3.4.0",
"prettier": "^1.18.2",
"source-map-support": "^0.5.12",
"truffle-hdwallet-provider": "^1.0.10",
"ts-node": "^8.2.0",
"source-map-support": "^0.5.13",
"truffle-hdwallet-provider": "^1.0.15",
"ts-node": "^8.3.0",
"typedoc": "^0.15.0",
"typescript": "^3.5.2",
"typescript": "^3.5.3",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.2",
"webpack": "^4.38.0",
"webpack-cli": "^3.3.6",
"webpack-merge": "^4.2.1"
},
"nyc": {

View File

@ -309,6 +309,7 @@ export class OceanAssets extends Instantiable {
const template = keeper.getTemplateByName(templateName)
const accessCondition = keeper.conditions.accessSecretStoreCondition
// eslint-disable-next-line no-async-promise-executor
const paymentFlow = new Promise(async (resolve, reject) => {
await template.getAgreementCreatedEvent(agreementId).once()

View File

@ -66,6 +66,7 @@ export class WebServiceConnector extends Instantiable {
}
if (destination) {
// eslint-disable-next-line no-async-promise-executor
await new Promise(async (resolve, reject) => {
fs.mkdirSync(destination, { recursive: true })
const fileStream = fs.createWriteStream(