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:
commit
199a1b3d95
10
.npmignore
10
.npmignore
@ -9,3 +9,13 @@ tsconfig.json
|
|||||||
tslint.json
|
tslint.json
|
||||||
oceanprotocol-squid-*.tgz
|
oceanprotocol-squid-*.tgz
|
||||||
squid-js.json
|
squid-js.json
|
||||||
|
barge/
|
||||||
|
integration/
|
||||||
|
plugins/
|
||||||
|
scripts/
|
||||||
|
webpack*
|
||||||
|
ganache*
|
||||||
|
.prettierrc
|
||||||
|
.editorconfig
|
||||||
|
.eslintrc
|
||||||
|
SQUID_INTERFACE.md
|
||||||
|
2874
package-lock.json
generated
2874
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@ -4,7 +4,7 @@
|
|||||||
"description": "JavaScript client library for Ocean Protocol",
|
"description": "JavaScript client library for Ocean Protocol",
|
||||||
"main": "./dist/node/squid.js",
|
"main": "./dist/node/squid.js",
|
||||||
"typings": "./dist/node/squid.d.ts",
|
"typings": "./dist/node/squid.d.ts",
|
||||||
"browser": "./dist/browser/squid.cjs2.min.js",
|
"unpkg": "./dist/browser/squid.cjs2.min.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm link @oceanprotocol/keeper-contracts @oceanprotocol/secret-store-client && npm run build:watch",
|
"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",
|
"build": "npm run clean && npm run build:tsc && npm run build:dist",
|
||||||
@ -54,7 +54,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@oceanprotocol/keeper-contracts": "^0.10.3",
|
"@oceanprotocol/keeper-contracts": "^0.10.3",
|
||||||
"@oceanprotocol/secret-store-client": "0.0.15",
|
"@oceanprotocol/secret-store-client": "0.0.15",
|
||||||
"bignumber.js": "^8.1.1",
|
"bignumber.js": "^9.0.0",
|
||||||
"deprecated-decorator": "^0.1.6",
|
"deprecated-decorator": "^0.1.6",
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.0",
|
||||||
"save-file": "^2.3.1",
|
"save-file": "^2.3.1",
|
||||||
@ -67,32 +67,32 @@
|
|||||||
"@types/chai": "^4.1.7",
|
"@types/chai": "^4.1.7",
|
||||||
"@types/chai-spies": "^1.0.0",
|
"@types/chai-spies": "^1.0.0",
|
||||||
"@types/mocha": "^5.2.7",
|
"@types/mocha": "^5.2.7",
|
||||||
"@types/node": "^12.0.5",
|
"@types/node": "^12.6.8",
|
||||||
"@types/node-fetch": "^2.3.5",
|
"@types/node-fetch": "^2.5.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^1.10.2",
|
"@typescript-eslint/eslint-plugin": "^1.13.0",
|
||||||
"@typescript-eslint/parser": "^1.10.2",
|
"@typescript-eslint/parser": "^1.13.0",
|
||||||
"auto-changelog": "^1.13.0",
|
"auto-changelog": "^1.14.1",
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"chai-spies": "^1.0.0",
|
"chai-spies": "^1.0.0",
|
||||||
"cross-env": "^5.2.0",
|
"cross-env": "^5.2.0",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^6.1.0",
|
||||||
"eslint-config-oceanprotocol": "^1.3.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",
|
"eslint-plugin-prettier": "^3.1.0",
|
||||||
"lcov-result-merger": "^3.1.0",
|
"lcov-result-merger": "^3.1.0",
|
||||||
"mocha": "^6.1.4",
|
"mocha": "^6.2.0",
|
||||||
"mock-local-storage": "^1.1.8",
|
"mock-local-storage": "^1.1.8",
|
||||||
"nyc": "^14.1.1",
|
"nyc": "^14.1.1",
|
||||||
"ora": "^3.4.0",
|
"ora": "^3.4.0",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
"source-map-support": "^0.5.12",
|
"source-map-support": "^0.5.13",
|
||||||
"truffle-hdwallet-provider": "^1.0.10",
|
"truffle-hdwallet-provider": "^1.0.15",
|
||||||
"ts-node": "^8.2.0",
|
"ts-node": "^8.3.0",
|
||||||
"typedoc": "^0.15.0",
|
"typedoc": "^0.15.0",
|
||||||
"typescript": "^3.5.2",
|
"typescript": "^3.5.3",
|
||||||
"uglifyjs-webpack-plugin": "^2.1.3",
|
"uglifyjs-webpack-plugin": "^2.1.3",
|
||||||
"webpack": "^4.33.0",
|
"webpack": "^4.38.0",
|
||||||
"webpack-cli": "^3.3.2",
|
"webpack-cli": "^3.3.6",
|
||||||
"webpack-merge": "^4.2.1"
|
"webpack-merge": "^4.2.1"
|
||||||
},
|
},
|
||||||
"nyc": {
|
"nyc": {
|
||||||
|
@ -309,6 +309,7 @@ export class OceanAssets extends Instantiable {
|
|||||||
const template = keeper.getTemplateByName(templateName)
|
const template = keeper.getTemplateByName(templateName)
|
||||||
const accessCondition = keeper.conditions.accessSecretStoreCondition
|
const accessCondition = keeper.conditions.accessSecretStoreCondition
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
const paymentFlow = new Promise(async (resolve, reject) => {
|
const paymentFlow = new Promise(async (resolve, reject) => {
|
||||||
await template.getAgreementCreatedEvent(agreementId).once()
|
await template.getAgreementCreatedEvent(agreementId).once()
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ export class WebServiceConnector extends Instantiable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (destination) {
|
if (destination) {
|
||||||
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
await new Promise(async (resolve, reject) => {
|
await new Promise(async (resolve, reject) => {
|
||||||
fs.mkdirSync(destination, { recursive: true })
|
fs.mkdirSync(destination, { recursive: true })
|
||||||
const fileStream = fs.createWriteStream(
|
const fileStream = fs.createWriteStream(
|
||||||
|
Loading…
Reference in New Issue
Block a user