{"name":"npm-force-resolutions","version":"0.0.1","description":"This packages modifies package-lock.json to force the installation of specific version of a transitive dependency (dependency of dependency), similar to yarn's [selective dependency resolutions](https://yarnpkg.com/lang/en/docs/selective-version-resolutio","main":"index.js","scripts":{"test":"clj -m cljs.main --target node --output-to tests.js -c npm-force-resolutions.core-test && node tests.js","build":"rm -r out; clj -m cljs.main --target node --output-to index.js -c npm-force-resolutions.core && sed -i -e 's/path\\.resolve(\"\\.\")/__dirname/g' index.js"},"bin":{"npm-force-resolutions":"./index.js"},"author":{"name":"rogeriochaves"},"license":"MIT","dependencies":{"json-format":"^1.0.1","source-map-support":"^0.5.5"},"repository":{"type":"git","url":"git+https://github.com/rogeriochaves/npm-force-resolutions.git"},"gitHead":"959f50e0e2862fca961fc517e8a3576c9237b69f","bugs":{"url":"https://github.com/rogeriochaves/npm-force-resolutions/issues"},"homepage":"https://github.com/rogeriochaves/npm-force-resolutions#readme","_id":"npm-force-resolutions@0.0.1","_npmVersion":"6.0.0","_nodeVersion":"8.9.0","_npmUser":{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"},"dist":{"integrity":"sha512-ZNjo3n7va2fhRvp0oi2lr4ESJ0hGyDgAFc+36Id+/XIGlWku372XuH+xemxyj10ehjW6NOcCNuS+EqNUtD+xLA==","shasum":"548a6bb34e2a8e9cbc828b9f8aa16d0acb5325b6","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.1.tgz","fileCount":72,"unpackedSize":4724579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7yuvCRA9TVsSAnZWagAAqtwP/379jcNYmkTJM7+3vxQr\nfoNLT6QLjPZhpfvNHOSAtTv1UBwLa+mZqCGsYlWGwieVK/DhDnn3T8R8aKRB\nA19Bb4o7jVYvQQprSjkoYyBeuZHroNysC4vIKNNBApAQTkqUJvZ1FSpalrzJ\n6ABDhmNdXK16BsUbJQIGd0qj/Vp01e8Z7X93RkSdUUfj5X84Mnb9ngBerjlC\nGQ3GvHJrJX1+p/tsL9GvcqxawKng5yj3dh0L0wN5aii7EpT/uRU62bDABFt5\nSylmsqapg+xB24AfoxpjXvv2SuLD3NDAnLQF/190OeDaQyetiz783NBR2DaS\nlIiminJQbMsHrOS/+PV4RGMv6Tw8k6iRV5IyhCDq3JTmmpL16z4gfFz8cRDd\nHC7oS2Pm4qn9zXmMhpSR5asK9OXwPiH4RQt1GKKy1UdsWh9bSa1VrTGI0md7\nSvIjfA6vb5VwD+C+WWlSH5XxOmM9CqyeWNFvurqVMcYVfS63Q5ra4yK2i8Yv\nEiIW/bKS6Lv4+WQ8Gv/5qAYDO1TN+eBM3nuOTc7mlPrytrlDMzlARInehY6d\nMw7ino1D0QJcTDKGMMUu0uyvfMErRpY4FleEm17QrXm979kmWvu2DoP8hjvv\nLay6AsUbAHuoIsAha9MdJxCA7rCOSPKHDW7GCOE/5qZWdqrVtFJlTJcxcL/f\nXDmu\r\n=k8cv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxH6Zi8dn5N7Q+Fq2q4l3uBivN4UxOxes6VXJrhB6pwwIgY2RyZ+qSPrK1xxlxI1dSp6m7eXmwxF7L/LKIkyiPWsY="}],"size":807617,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.1.tgz"},"maintainers":[{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-force-resolutions_0.0.1_1525623726702_0.6482870690686544"},"_hasShrinkwrap":false,"readme":"# NPM Force Resolutions\n\nThis packages modifies package-lock.json to force the installation of specific version of a transitive dependency (dependency of dependency), similar to yarn's [selective dependency resolutions](https://yarnpkg.com/lang/en/docs/selective-version-resolutions/), but without having to migrate to yarn.\n\n## WARNING before you start\n\nThe use case for this is when there is a security vulnerability and you MUST update a nested dependency otherwise your project would be vulnerable. But this should only be used as a last resource, you should first update your top-level dependencies and file an issue for them to update the vulnerable sub-dependencies (`npm ls <vulnerable dependency>` can help you with that).\n\n# How to use\n\nFirst add a field `resolutions` with the dependency version you want to fix to your `package.json`, for example:\n\n```json\n\"resolutions\": {\n  \"hoek\": \"4.2.1\"\n}\n```\n\nThen add npm-force-resolutions to the preinstall script so that it patches the `package-lock` file before every `npm install` you run:\n\n```json\n\"scripts\": {\n  \"preinstall\": \"npx npm-force-resolutions\"\n}\n```\n\nNow just run `npm install` as you would normally do:\n\n```\nnpm install\n```\n\nTo confirm that the right version was installed, use:\n\n```\nnpm ls hoek\n```\n\nIf your package-lock changes, you may need to run the steps above again.\n\n# Contributing\n\nTo build the project from source you'll need to install [clojure](https://clojure.org/guides/getting_started). Then you can run:\n\n```\nnpm install\nnpm run build\n```\n","publish_time":1525623726843,"_cnpm_publish_time":1525623726843,"dist-tags":{"latest":"0.0.10"}}