{"name":"npm-force-resolutions","version":"0.0.10","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":"fe40f65ba8a70772b29be8716bbde7d80b0879c4","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.10","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Jscex+xIU6tw3VsyrwxM1TeT+dd9Fd3UOMAjy6J1TMpuYeEqg4LQZnATQO5vjPrsARm3und6zc6Dii/GUyRE5A==","shasum":"e02c28f5d24fbf32f4c3d9a87faf375849e715ef","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.10.tgz","fileCount":443,"unpackedSize":15334158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOX4/CRA9TVsSAnZWagAAzCAP/3rVv0+/uYiDnEMjkOko\nj/TaEmYKBVQ4ObNydY6ZvpIJnquhrYSFFIU+1aTp0eX7ifqJ7FCp8w+62w/5\nmGW4yw3WWinLL0S/zWXHA+YnqlntvIylNQ/74qN4yzEiRlnvAvbEEjzzZ1ZU\nQ2zOQctyjC0nFFW/GoEwi4NKTK2J2LiyWsDar+QUC6cL5c3P92/J7E1NBDn9\nEbFcGqwkcgtmWvBtF+hIyMjdqZSdthYx2jHy8C96qQsGpVjtXZ8Jm8lFKELr\nWmcns/aooMcFPxM35attsF9CIzkVsAaP6eIOs111C0WrKEzwFNvKadShpF5E\nsk24snWJrBkP626VIow2dKDkpwfRX5/4o0hw7SbslU/NJDgaLt6am8vQ/a+Y\ngoASWAqop2vMi8BdAJExUKKcuBOgyqS7TEUNRhbLDwTp11xxElO1ESFSa5zu\nrYmEeZJLioE75LwWHo6sMYl1bVHD8zpGXXygIviOjBaaE+lJxOS/440mCCsn\n/3IfdrUJU0PtGVU2j7tmkTqxDUWTlalJbJXgqx7ophmG3IfkOVT3pfN4cm1A\nYIEwqX4t3sWCrfN5Z3wC6H6lmxss481lv1fv1Whh1ufGLEbiJYL+wIRMGkZa\nj6K3v+/zxNOJJLTXr5uR4//JbLpUr9UVW1Sy+22OxFMX4Fk15JTFBQ46xsDE\nvqFT\r\n=13kN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFLV96WMAEGpmjAeNZ10AB8KekmOk+bqphnWBk5W/kpQIgaveJyYVWmbEzYHtjf+/zbw2Ccd91+ay48TSymj7dYUY="}],"size":2434424,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.10.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.10_1614380606829_0.2024643804039381"},"_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":1614380607068,"_cnpm_publish_time":1614380607068,"dist-tags":{"latest":"0.0.10"}}