{"name":"npm-force-resolutions","version":"0.0.3","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":"a091af2f8a1e2353bc2ff4a2b21db1e2d10fd0e0","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.3","_nodeVersion":"8.11.3","_npmVersion":"6.7.0","dist":{"integrity":"sha512-xbIPAGzD3nrJHDLtnRFt/O83teTA8ju5pWTf8W6OKL4D0XD9EjdRNJhzg4bSXWuucE+l1HGdTpOJR/l1Mi1Ycg==","shasum":"955c8cb476cd949e94b19a2e5828b589397cdb24","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.3.tgz","fileCount":57,"unpackedSize":3544211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrKtqCRA9TVsSAnZWagAAt7YQAJfJKy7vPJW/uy38WzFa\nKC8RuKzVzvOpV071pcfSvnsoC0MJeBXhA0AKdKiPYkEFwyWWe33AJUH8e6IC\nD2dTzzDAGvyL8wT4NwTM6TAJuVizxCGzEkmuMCIvO00cHbTqQEkeXy15xm0z\niO7nFBVYzhKbVo7U+ejPNv69jmvRdaebm+cbpQKr/+fM1dBeTUlsj58Pmo3Q\nsfL9owbQ3EbZ/97xmYIhZ3n+mQho3+wkaqPQjGlI71X7qyTVkOTQDmRp0Hjd\na4FBR/a92F6z3ksYHv8D+5yQ0LGxuMO75LO3MifSTJD7F9NJaVI+knOxcO3g\nTeFAigWbabGSiicSLPZOFcGIhHbFWR4H6yETFVxCv54jCaElkDUuG+CeB+dT\nWfp/92VutMSyXfjAaAG4dx4AK0kzaMXuR1YxxJAv056z+aAi1NW9F7XJYLle\nb+2k91X/DJm9SZ78QY6zfR358yRv2Hsbm4OWs5E3xvaFtjPa1h5NR6dlAEIC\nguiGJfnlblQ/BCMFNqNQm16lVDxzZ8BmKGIAj9Bd8ppUpC/Wu3d9IiUGHNv5\n3LkzNKyJR+9evDz3ieo6BajTwiaGWF9+Basg9+Lx3NsUcWVW9ZNa/kME0HE6\nu05t7tYV27nN6+U1Cx2R4HBncdO2IT0c64GCSuDheXNZToIsIfEWHj2K54ke\nmKvF\r\n=E7i5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8xhTTiEr3xyNMGLDgrDPRgIqUsnDT8NWVdY5qzbCUHAiEAgyG/3hQyeHU0vxS8k+hfMt+yu4KLvHNB4DO6dWkPGtE="}],"size":618461,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.3.tgz"},"maintainers":[{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"}],"_npmUser":{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-force-resolutions_0.0.3_1571597162132_0.2882031255394626"},"_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":1571597162302,"_cnpm_publish_time":1571597162302,"dist-tags":{"latest":"0.0.10"}}