Update dependencies
Dance the update dance with me.
This commit is contained in:
parent
a318fe8374
commit
78c8052629
2339
package-lock.json
generated
2339
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@ -8,7 +8,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install-all": "./scripts/every-app.sh \"npm install\"",
|
"install-all": "./scripts/every-app.sh \"npm install\"",
|
||||||
"postshrinkwrap": "node scripts/fix-package-lock.js &>/dev/null || true",
|
|
||||||
"build-json": "npm run compile-contracts && node ./scripts/build-json.js",
|
"build-json": "npm run compile-contracts && node ./scripts/build-json.js",
|
||||||
"repl": "truffle exec scripts/repl.js",
|
"repl": "truffle exec scripts/repl.js",
|
||||||
"seeds": "truffle exec scripts/seeds.js",
|
"seeds": "truffle exec scripts/seeds.js",
|
||||||
@ -43,22 +42,22 @@
|
|||||||
"homepage": "https://github.com/67P/truffle-kredits#readme",
|
"homepage": "https://github.com/67P/truffle-kredits#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aragon/kits-base": "^1.0.0",
|
"@aragon/kits-base": "^1.0.0",
|
||||||
"@aragon/os": "^4.2.0",
|
"@aragon/os": "^4.3.0",
|
||||||
"async-each-series": "^1.1.0",
|
"async-each-series": "^1.1.0",
|
||||||
"cli-table": "^0.3.1",
|
"cli-table": "^0.3.1",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^6.8.0",
|
||||||
"eslint-plugin-import": "^2.17.3",
|
"eslint-plugin-import": "^2.20.1",
|
||||||
"eslint-plugin-node": "^8.0.1",
|
"eslint-plugin-node": "^11.0.0",
|
||||||
"eslint-plugin-promise": "^4.1.1",
|
"eslint-plugin-promise": "^4.2.1",
|
||||||
"eth-provider": "^0.2.2",
|
"eth-provider": "^0.2.5",
|
||||||
"promptly": "^3.0.3",
|
"promptly": "^3.0.3",
|
||||||
"solc": "^0.4.26",
|
"solc": "^0.4.26",
|
||||||
"solhint": "^2.1.0",
|
"solhint": "^2.3.0",
|
||||||
"yargs": "^12.0.0"
|
"yargs": "^12.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ethers": "^4.0.29",
|
"ipfs-http-client": "^41.0.1",
|
||||||
"ipfs-http-client": "^30.1.3",
|
"ethers": "^4.0.44",
|
||||||
"kosmos-schemas": "^2.1.0",
|
"kosmos-schemas": "^2.1.0",
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.0",
|
||||||
"tv4": "^1.3.0"
|
"tv4": "^1.3.0"
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// whatever npm does?! and for whatever this is needed..
|
|
||||||
// https://github.com/aragon/aragon-cli/blob/master/packages/aragon-cli/scripts/fix-lockfile
|
|
||||||
// https://github.com/aragon/aragon-cli/blob/master/docs-internal/Dependencies.md#regenerate-the-lockfiles
|
|
||||||
|
|
||||||
const fs = require('fs')
|
|
||||||
const path = require('path')
|
|
||||||
|
|
||||||
function replaceAll(string, mapObject) {
|
|
||||||
const regex = new RegExp(Object.keys(mapObject).join('|'), 'gi')
|
|
||||||
let occurrences = 0
|
|
||||||
const result = string.replace(regex, matched => {
|
|
||||||
occurrences++
|
|
||||||
return mapObject[matched]
|
|
||||||
})
|
|
||||||
console.log(`[fix-lockfile] Replaced ${occurrences} occurrences.`)
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
async function fixLockfile(path, replacementMap) {
|
|
||||||
const originalJson = require(path)
|
|
||||||
const originalText = JSON.stringify(originalJson, null, 2)
|
|
||||||
const fixedText = replaceAll(originalText, replacementMap)
|
|
||||||
const fixedJson = JSON.parse(fixedText)
|
|
||||||
console.log('writing file', path);
|
|
||||||
await fs.writeFileSync(path, JSON.stringify(fixedJson, null, 2))
|
|
||||||
}
|
|
||||||
//
|
|
||||||
|
|
||||||
const LOCKFILE_PATH = path.join(__dirname, '..', 'package-lock.json')
|
|
||||||
|
|
||||||
const replacementMap = {
|
|
||||||
//
|
|
||||||
'"version": "github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"':
|
|
||||||
'"version": "0.2.3"',
|
|
||||||
//
|
|
||||||
'"from": "github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"':
|
|
||||||
'"resolved": "github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"',
|
|
||||||
//
|
|
||||||
'"from": "async-eventemitter@github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"':
|
|
||||||
'"resolved": "github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"',
|
|
||||||
//
|
|
||||||
'"async-eventemitter": "async-eventemitter@github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"':
|
|
||||||
'"async-eventemitter": "github:ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c"',
|
|
||||||
}
|
|
||||||
|
|
||||||
fixLockfile(LOCKFILE_PATH, replacementMap)
|
|
Loading…
x
Reference in New Issue
Block a user