2018-08-31 10:13:22 +02:00
|
|
|
{
|
2018-09-06 11:46:12 +02:00
|
|
|
"name": "@oceanprotocol/squid",
|
2020-01-23 13:37:46 +01:00
|
|
|
"version": "1.2.0",
|
2018-09-07 14:38:42 +02:00
|
|
|
"description": "JavaScript client library for Ocean Protocol",
|
2018-11-26 15:55:09 +01:00
|
|
|
"main": "./dist/node/squid.js",
|
2019-02-15 14:44:48 +01:00
|
|
|
"typings": "./dist/node/squid.d.ts",
|
2019-07-31 13:02:52 +02:00
|
|
|
"unpkg": "./dist/browser/squid.cjs2.min.js",
|
2018-08-31 10:13:22 +02:00
|
|
|
"scripts": {
|
2019-06-19 23:32:09 +02:00
|
|
|
"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:tsc": "tsc --sourceMap",
|
|
|
|
"build:metadata": "./scripts/get-metadata.js > src/metadata.json",
|
2019-06-25 14:18:02 +02:00
|
|
|
"build:dist": "cross-env NODE_ENV=production webpack",
|
2019-06-19 23:32:09 +02:00
|
|
|
"build:watch": "tsc -w",
|
2019-05-08 12:07:45 +02:00
|
|
|
"test": "mocha",
|
|
|
|
"test:watch": "mocha -w --watch-extensions js,ts,json",
|
|
|
|
"test:cover": "nyc --report-dir coverage/unit mocha",
|
2019-03-21 03:02:05 +01:00
|
|
|
"integration": "mocha --opts integration/mocha.opts",
|
2019-06-25 12:13:01 +02:00
|
|
|
"integration:pacific": "export NETWORK_NAME=pacific; mocha --opts integration/mocha.opts",
|
2019-04-01 14:36:44 +02:00
|
|
|
"integration:nile": "export NETWORK_NAME=nile; mocha --opts integration/mocha.opts",
|
2019-05-17 10:59:12 +02:00
|
|
|
"integration:duero": "export NETWORK_NAME=duero; mocha --opts integration/mocha.opts",
|
2019-02-10 20:03:38 +01:00
|
|
|
"integration:watch": "mocha -w --watch-extensions js,ts,json --opts integration/mocha.opts",
|
2019-03-21 03:02:05 +01:00
|
|
|
"integration:cover": "nyc --report-dir coverage/integration mocha --opts integration/mocha.opts",
|
2019-04-16 14:57:40 +02:00
|
|
|
"clean": "rm -rf ./dist/ ./doc/ ./.nyc_output",
|
2019-06-19 23:32:09 +02:00
|
|
|
"lint": "eslint --ignore-path .gitignore --ext .ts,.tsx .",
|
|
|
|
"format": "prettier --parser typescript --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx}'",
|
2019-05-15 12:57:52 +02:00
|
|
|
"doc": "typedoc --mode modules --out ./doc/ ./src/",
|
2019-06-24 19:24:17 +02:00
|
|
|
"doc:json": "./scripts/typedoc.js",
|
2020-01-22 15:56:03 +01:00
|
|
|
"report-codacy": "npm run report-coverage:unit && npm run report-coverage:integration",
|
|
|
|
"report-codacy:unit": "cat coverage/unit/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
|
|
|
|
"report-codacy:integration": "cat coverage/integration/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
|
2018-11-05 10:01:58 +01:00
|
|
|
"run": "ts-node",
|
2019-06-20 01:03:40 +02:00
|
|
|
"release": "release-it --non-interactive",
|
|
|
|
"changelog": "auto-changelog -p",
|
2019-06-17 16:14:54 +02:00
|
|
|
"prepublishOnly": "npm run build",
|
|
|
|
"prebuild": "npm run build:metadata",
|
2019-06-19 14:12:04 +02:00
|
|
|
"prepare": "npm run build:metadata"
|
2018-08-31 10:13:22 +02:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2018-09-06 10:01:57 +02:00
|
|
|
"url": "git+https://github.com/oceanprotocol/squid-js.git"
|
2018-08-31 10:13:22 +02:00
|
|
|
},
|
|
|
|
"keywords": [],
|
2018-09-27 08:55:45 +02:00
|
|
|
"author": "Ocean Protocol <devops@oceanprotocol.com>",
|
2018-09-06 16:58:39 +02:00
|
|
|
"license": "Apache-2.0",
|
2018-08-31 10:13:22 +02:00
|
|
|
"bugs": {
|
2018-09-06 10:01:57 +02:00
|
|
|
"url": "https://github.com/oceanprotocol/squid-js/issues"
|
2018-08-31 10:13:22 +02:00
|
|
|
},
|
2018-09-06 10:01:57 +02:00
|
|
|
"homepage": "https://github.com/oceanprotocol/squid-js#readme",
|
2019-04-23 00:24:53 +02:00
|
|
|
"peerDependencies": {
|
2019-11-14 17:43:20 +01:00
|
|
|
"web3": "^1.2.3"
|
2019-04-23 00:24:53 +02:00
|
|
|
},
|
2018-08-31 10:13:22 +02:00
|
|
|
"dependencies": {
|
2020-01-10 20:30:10 +01:00
|
|
|
"@oceanprotocol/keeper-contracts": "^0.13.2",
|
2019-11-04 09:30:51 +01:00
|
|
|
"@oceanprotocol/secret-store-client": "^0.0.15",
|
2019-07-31 13:02:04 +02:00
|
|
|
"bignumber.js": "^9.0.0",
|
2019-01-15 11:34:45 +01:00
|
|
|
"deprecated-decorator": "^0.1.6",
|
2019-06-05 17:17:16 +02:00
|
|
|
"node-fetch": "^2.6.0",
|
2019-04-10 15:46:11 +02:00
|
|
|
"save-file": "^2.3.1",
|
2019-08-29 09:02:08 +02:00
|
|
|
"uuid": "^3.3.3",
|
2019-11-15 11:30:00 +01:00
|
|
|
"web3": "^1.2.4",
|
2020-01-02 21:12:13 +01:00
|
|
|
"whatwg-url": "^8.0.0"
|
2018-09-25 08:30:54 +02:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2019-10-30 12:04:16 +01:00
|
|
|
"@release-it/bumper": "^1.0.5",
|
2019-12-17 09:02:46 +01:00
|
|
|
"@truffle/hdwallet-provider": "^1.0.27",
|
|
|
|
"@types/chai": "^4.2.7",
|
2019-08-15 10:49:54 +02:00
|
|
|
"@types/chai-spies": "^1.0.1",
|
2019-06-05 17:17:16 +02:00
|
|
|
"@types/mocha": "^5.2.7",
|
2019-12-23 18:17:35 +01:00
|
|
|
"@types/node": "^13.1.0",
|
2019-12-06 09:57:35 +01:00
|
|
|
"@types/node-fetch": "^2.5.4",
|
2019-12-17 09:02:46 +01:00
|
|
|
"@typescript-eslint/eslint-plugin": "^2.12.0",
|
|
|
|
"@typescript-eslint/parser": "^2.12.0",
|
2019-10-30 12:04:16 +01:00
|
|
|
"auto-changelog": "^1.16.2",
|
2018-10-01 18:10:26 +02:00
|
|
|
"chai": "^4.2.0",
|
2019-02-04 16:26:56 +01:00
|
|
|
"chai-spies": "^1.0.0",
|
2019-10-30 12:04:16 +01:00
|
|
|
"cross-env": "^6.0.3",
|
2019-12-06 09:57:35 +01:00
|
|
|
"eslint": "^6.7.2",
|
2019-08-29 09:02:08 +02:00
|
|
|
"eslint-config-oceanprotocol": "^1.5.0",
|
2019-11-22 12:26:40 +01:00
|
|
|
"eslint-config-prettier": "^6.7.0",
|
2019-12-17 09:02:46 +01:00
|
|
|
"eslint-plugin-prettier": "^3.1.2",
|
2019-03-18 15:02:34 +01:00
|
|
|
"lcov-result-merger": "^3.1.0",
|
2020-01-26 09:09:31 +01:00
|
|
|
"mocha": "^7.0.1",
|
2019-11-22 12:26:40 +01:00
|
|
|
"mock-local-storage": "^1.1.11",
|
2019-12-23 02:10:36 +01:00
|
|
|
"nyc": "^15.0.0",
|
2019-10-30 12:04:16 +01:00
|
|
|
"ora": "^4.0.2",
|
2019-11-15 11:30:00 +01:00
|
|
|
"prettier": "^1.19.1",
|
2019-10-30 12:04:16 +01:00
|
|
|
"source-map-support": "^0.5.16",
|
2019-12-06 09:57:35 +01:00
|
|
|
"ts-node": "^8.5.4",
|
2020-01-22 17:44:38 +01:00
|
|
|
"typedoc": "^0.16.8",
|
|
|
|
"typescript": "^3.7.5",
|
2019-08-15 10:49:54 +02:00
|
|
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
2019-12-17 09:02:46 +01:00
|
|
|
"webpack": "^4.41.3",
|
2019-11-04 09:30:51 +01:00
|
|
|
"webpack-cli": "^3.3.10",
|
2019-08-29 09:02:08 +02:00
|
|
|
"webpack-merge": "^4.2.2"
|
2019-06-20 01:03:40 +02:00
|
|
|
},
|
|
|
|
"nyc": {
|
|
|
|
"include": [
|
|
|
|
"src/**/*.ts"
|
|
|
|
],
|
|
|
|
"extension": [
|
|
|
|
".ts"
|
|
|
|
],
|
|
|
|
"require": [
|
|
|
|
"ts-node/register"
|
|
|
|
],
|
|
|
|
"reporter": [
|
|
|
|
"text-summary",
|
|
|
|
"lcov",
|
|
|
|
"html"
|
|
|
|
],
|
|
|
|
"sourceMap": true,
|
|
|
|
"instrument": true
|
|
|
|
},
|
|
|
|
"release-it": {
|
|
|
|
"hooks": {
|
2019-11-07 12:24:55 +01:00
|
|
|
"after:bump": "npm run changelog && npm run doc:json"
|
2019-06-20 01:03:40 +02:00
|
|
|
},
|
|
|
|
"plugins": {
|
|
|
|
"@release-it/bumper": {
|
|
|
|
"out": [
|
|
|
|
"package.json",
|
2019-11-07 12:24:55 +01:00
|
|
|
"package-lock.json"
|
2019-06-20 01:03:40 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"git": {
|
|
|
|
"tagName": "v${version}"
|
|
|
|
},
|
|
|
|
"github": {
|
2019-06-24 19:24:17 +02:00
|
|
|
"release": true,
|
|
|
|
"assets": [
|
|
|
|
"dist/squid-js.json"
|
|
|
|
]
|
2019-06-20 01:03:40 +02:00
|
|
|
},
|
|
|
|
"npm": {
|
|
|
|
"publish": false
|
|
|
|
}
|
2018-08-31 10:13:22 +02:00
|
|
|
}
|
|
|
|
}
|