{"name":"npm-force-resolutions","version":"0.0.8","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":"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","xmlhttprequest":"^1.8.0"},"repository":{"type":"git","url":"git+https://github.com/rogeriochaves/npm-force-resolutions.git"},"gitHead":"4a1a69d759bb2df64d6cd8f536a26efb9fcdeb07","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.8","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-BOy8ybEpYHZRl6aZa0KeRqbqV2tU1OnA5DMnxItuG9E80B8/nI9Z8BeuRFaeqFfte9x8N9q4edpNSNAK/ptzuQ==","shasum":"101c18cab02ca785d5572a037696560d7f26a845","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.8.tgz","fileCount":220,"unpackedSize":7707187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgORHQCRA9TVsSAnZWagAAQh8P/3jpl3vo63WtyPoFIVqY\nbTgv8jMqlrr1Ed5HzNcNj1uhJaEwEdgJiLn66pKTdzQIia7fhcVMzv4b6xsl\n567gyw1dLzZO+d9ChS7N3tMqjP2H5CTIwWMKUFZjlrnIoaOl4hg+DGMiZ+u4\nR5fVqlQ/w8eBi3SmNl9Qkb4YcI0/UMAUB+21FnP6vBDGacGRnZiI4NZZ5DYt\n+dNXotSI72dd9iXB8YtFDD1IGfNCLaVd1Wketv7jN+ZRYGzmCQL9bS8T/WgZ\ncHxtgnd9fJ5sQHGtwl5G/kjwsbFggMBGutxu71sboC5sBnWkiZ61mI3DssAK\nJ93e+ZJeerzsqLRBww60LGlyWh7qxorZhz3hdlTKdPblzk+yqzVwvWnGPkER\nPqjOA3yYOe8IbI1CVYQUolTb5NfhIrysK3FcXyr4vNu8/WENWtd3nlMUVebH\nhDRNgKJOR3SZO4wWV6GB2Poyk7rAG07uAX0BHeNzZO89ziQXGXeGZZYWPUAY\nxJWZHrX1nnar54XP1/QXwSGEe0XnerP1ogBMRWl/RAXDHByHnl7htaQvWvds\nBvrlFowtBuoVMBKqA6AqJIf4hS2a90wRvqwEKafbVTOtVsLy7ElG5MofGnIx\nfgR7mUciiPkigO914rryFfVJf+wH/Xt+rVe2YMrgPJn/XR3Nu6EMXSju1b78\nmhey\r\n=4VzY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNNdzJf4jslL2ToA/o/Y91e4jRYyjIYaE+J9VyS1iWGAiBGhk158dgr3VjIk8Mo2sNiURpcJqiYuB7xZhodoD2rNw=="}],"size":1397991,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.8.tgz"},"_npmUser":{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"},"directories":{},"maintainers":[{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-force-resolutions_0.0.8_1614352847602_0.11930675680542291"},"_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":1614352847796,"_cnpm_publish_time":1614352847796,"dist-tags":{"latest":"0.0.10"}}