|
6 | 6 | "type": "git", |
7 | 7 | "url": "git://github.com/streamr-dev/streamr-client.git" |
8 | 8 | }, |
9 | | - "main": "dist/streamr-client.nodejs.js", |
10 | | - "browser": "dist/streamr-client.web.min.js", |
11 | 9 | "types": "dist/types/src/StreamrClient.d.ts", |
| 10 | + "main": "dist/node/src/StreamrClient.js", |
| 11 | + "browser": "dist/streamr-client.web.min.js", |
12 | 12 | "directories": { |
13 | 13 | "example": "examples", |
14 | 14 | "test": "test" |
15 | 15 | }, |
16 | 16 | "scripts": { |
17 | | - "build": "rm -rf dist; NODE_ENV=production webpack --mode=production --progress && npm run build:types", |
18 | | - "build:types": "tsc --emitDeclarationOnly", |
| 17 | + "build": "rm -rf dist; NODE_ENV=production webpack --mode=production --progress && npm run build-node && npm run build:types", |
| 18 | + "build-node": "tsc --incremental --project ./tsconfig.node.json", |
| 19 | + "watch-node": "tsc --incremental --watch --project ./tsconfig.node.json", |
| 20 | + "build:types": "tsc --incremental --emitDeclarationOnly", |
19 | 21 | "benchmarks": "node test/benchmarks/publish.js && node test/benchmarks/subscribe.js", |
20 | 22 | "prebuild-benchmark": "npm run build -- --config-name=node-lib", |
21 | 23 | "build-benchmark": "npm run benchmarks", |
22 | 24 | "benchmark-build": "npm run build-benchmark", |
23 | 25 | "benchmark": "npm run benchmarks", |
24 | 26 | "prepack": "npm run build", |
25 | 27 | "prebuild": "npm run eslint -- --cache", |
26 | | - "dev": "webpack --progress --colors --watch --mode=development", |
| 28 | + "watch": "webpack --progress --watch --mode=development", |
27 | 29 | "eslint": "eslint --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'", |
28 | 30 | "test": "jest --detectOpenHandles", |
29 | 31 | "test-unit": "jest test/unit --detectOpenHandles", |
30 | | - "test-types": "tsc --noEmit --project ./tsconfig.test.json", |
| 32 | + "test-types": "tsc --noEmit --incremental --project ./tsconfig.test.json", |
31 | 33 | "coverage": "jest --coverage", |
32 | 34 | "test-integration": "jest --forceExit test/integration", |
33 | 35 | "test-integration-no-resend": "jest --forceExit --testTimeout=10000 --testPathIgnorePatterns='resend|Resend' --testNamePattern='^((?!(resend|Resend|resent|Resent|gap|Gap)).)*$' test/integration/*.test.js", |
|
45 | 47 | "author": "Streamr", |
46 | 48 | "license": "Apache-2.0", |
47 | 49 | "devDependencies": { |
48 | | - "@babel/cli": "^7.12.10", |
49 | | - "@babel/core": "^7.12.10", |
50 | | - "@babel/plugin-proposal-class-properties": "^7.12.1", |
51 | | - "@babel/plugin-transform-classes": "^7.12.1", |
52 | | - "@babel/plugin-transform-modules-commonjs": "^7.12.1", |
53 | | - "@babel/plugin-transform-runtime": "^7.12.15", |
54 | | - "@babel/preset-env": "^7.12.11", |
55 | | - "@babel/preset-typescript": "^7.12.13", |
| 50 | + "@babel/cli": "^7.12.17", |
| 51 | + "@babel/core": "^7.12.17", |
| 52 | + "@babel/helper-call-delegate": "^7.12.13", |
| 53 | + "@babel/plugin-proposal-class-properties": "^7.12.13", |
| 54 | + "@babel/plugin-transform-classes": "^7.12.13", |
| 55 | + "@babel/plugin-transform-modules-commonjs": "^7.12.13", |
| 56 | + "@babel/plugin-transform-runtime": "^7.12.17", |
| 57 | + "@babel/preset-env": "^7.12.17", |
| 58 | + "@babel/preset-typescript": "^7.12.17", |
| 59 | + "@tsconfig/node14": "^1.0.0", |
56 | 60 | "@types/debug": "^4.1.5", |
57 | 61 | "@types/jest": "^26.0.20", |
| 62 | + "@types/lodash.uniqueid": "^4.0.6", |
| 63 | + "@types/node": "^14.14.31", |
58 | 64 | "@types/qs": "^6.9.5", |
| 65 | + "@types/uuid": "^8.3.0", |
59 | 66 | "@typescript-eslint/eslint-plugin": "^4.15.1", |
60 | 67 | "@typescript-eslint/parser": "^4.15.1", |
61 | | - "async-mutex": "^0.2.6", |
| 68 | + "async-mutex": "^0.3.0", |
62 | 69 | "babel-loader": "^8.2.2", |
63 | 70 | "babel-plugin-add-module-exports": "^1.0.4", |
64 | 71 | "babel-plugin-transform-class-properties": "^6.24.1", |
65 | 72 | "benchmark": "^2.1.4", |
66 | 73 | "buffer": "^6.0.3", |
67 | 74 | "chromedriver": "^88.0.0", |
68 | | - "core-js": "^3.8.3", |
| 75 | + "core-js": "^3.9.0", |
| 76 | + "crypto-browserify": "^3.12.0", |
69 | 77 | "eslint": "^7.20.0", |
70 | 78 | "eslint-config-airbnb": "^18.2.1", |
71 | 79 | "eslint-config-streamr-nodejs": "^1.3.0", |
72 | 80 | "eslint-loader": "^4.0.2", |
73 | 81 | "eslint-plugin-import": "^2.22.1", |
74 | | - "eslint-plugin-promise": "^4.2.1", |
75 | | - "ethers": "^5.0.26", |
| 82 | + "eslint-plugin-promise": "^4.3.1", |
| 83 | + "ethers": "^5.0.31", |
76 | 84 | "express": "^4.17.1", |
77 | 85 | "geckodriver": "^1.22.1", |
78 | 86 | "git-revision-webpack-plugin": "^3.0.6", |
79 | 87 | "jest": "^26.6.3", |
80 | 88 | "jest-circus": "^26.6.3", |
81 | 89 | "nightwatch": "^1.5.1", |
| 90 | + "process": "^0.11.10", |
82 | 91 | "sinon": "^9.2.4", |
83 | | - "streamr-test-utils": "^1.3.0", |
84 | | - "terser-webpack-plugin": "^4.2.3", |
85 | | - "webpack": "^4.46.0", |
| 92 | + "streamr-test-utils": "^1.3.1", |
| 93 | + "terser-webpack-plugin": "^5.1.1", |
| 94 | + "ts-jest": "^26.5.1", |
| 95 | + "ts-loader": "^8.0.17", |
| 96 | + "typescript": "^4.1.5", |
| 97 | + "util": "^0.12.3", |
| 98 | + "webpack": "^5.23.0", |
86 | 99 | "webpack-bundle-analyzer": "^4.4.0", |
87 | | - "webpack-cli": "^4.4.0", |
| 100 | + "webpack-cli": "^4.5.0", |
88 | 101 | "webpack-merge": "^5.7.3" |
89 | 102 | }, |
90 | 103 | "#IMPORTANT": "babel-runtime must be in dependencies, not devDependencies", |
91 | 104 | "dependencies": { |
| 105 | + "@babel/runtime": "^7.12.18", |
| 106 | + "@babel/runtime-corejs3": "^7.12.18", |
92 | 107 | "@ethersproject/abi": "^5.0.12", |
93 | | - "@babel/runtime": "^7.12.13", |
94 | | - "@babel/runtime-corejs3": "^7.12.13", |
95 | | - "@ethersproject/address": "^5.0.9", |
96 | | - "@ethersproject/bignumber": "^5.0.13", |
97 | | - "@ethersproject/bytes": "^5.0.9", |
98 | | - "@ethersproject/contracts": "^5.0.9", |
99 | | - "@ethersproject/keccak256": "^5.0.7", |
100 | | - "@ethersproject/providers": "^5.0.19", |
101 | | - "@ethersproject/sha2": "^5.0.7", |
102 | | - "@ethersproject/transactions": "^5.0.9", |
103 | | - "@ethersproject/wallet": "^5.0.10", |
| 108 | + "@ethersproject/address": "^5.0.10", |
| 109 | + "@ethersproject/bignumber": "^5.0.14", |
| 110 | + "@ethersproject/bytes": "^5.0.10", |
| 111 | + "@ethersproject/contracts": "^5.0.11", |
| 112 | + "@ethersproject/keccak256": "^5.0.8", |
| 113 | + "@ethersproject/providers": "^5.0.23", |
| 114 | + "@ethersproject/sha2": "^5.0.8", |
| 115 | + "@ethersproject/transactions": "^5.0.10", |
| 116 | + "@ethersproject/wallet": "^5.0.11", |
104 | 117 | "debug": "^4.3.2", |
105 | 118 | "eventemitter3": "^4.0.7", |
106 | 119 | "lodash.uniqueid": "^4.0.1", |
|
114 | 127 | "p-queue": "^6.6.2", |
115 | 128 | "promise-memoize": "^1.2.1", |
116 | 129 | "qs": "^6.9.6", |
117 | | - "quick-lru": "^5.1.1", |
| 130 | + "quick-lru": "^6.0.0", |
118 | 131 | "readable-stream": "^3.6.0", |
119 | 132 | "streamr-client-protocol": "^8.0.0-beta.2", |
120 | | - "typescript": "^4.1.4", |
| 133 | + "ts-toolbelt": "^9.3.12", |
121 | 134 | "uuid": "^8.3.2", |
122 | 135 | "webpack-node-externals": "^2.5.2", |
123 | | - "ws": "^7.4.2" |
| 136 | + "ws": "^7.4.3" |
124 | 137 | }, |
125 | 138 | "optionalDependencies": { |
126 | 139 | "bufferutil": "^4.0.3", |
|
0 commit comments