{"name":"npm-force-resolutions","version":"0.0.7","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":"42fdacb39895c655e4e18422c20c5470aba7e74d","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.7","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-eAhEX3WQryKET57TwlvvRpb3o2ZYeMUQLDI6MvDoSkhl7+1EW4dt/foUko1KbvonaxyhLzMLRoCMEDMTHascWg==","shasum":"8b5c173a8a1eec82090ebbd4b9549310b8b4d7f7","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.7.tgz","fileCount":220,"unpackedSize":7708902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOODXCRA9TVsSAnZWagAAS20QAIt4bTy2i7ri3OCPbCyK\nE9eEjJz7XW0pqbnnC9gJzPxbbuPrqlTVL1t212YASHa4bPCQ6oNi+FEGWAjb\n5ewYWTPpYdooKT2dQu103qnUCo7rLIJbdXK2el/ZHvwpXCRObO3MKVOR5Qdn\n8xNgwD73W3KSwpZrnbuLQOaUg3NGMhq95+mhtCO3Ym1IiV6SJxuFq+DhKhmC\n+sKu02NWyMwrTSmujkZuL0WHLZIjLptLuL8lo19MJqh2o/WUSbKFWC33Wsaj\nvxiU+Gwot7jATt/8NlPTT79w7SGkxbCkXASGGOjNpR2O945Cdo7ctRltApYm\n/wHVkcwCuxJdlqn82tjAN23fGO+1CRa1fWZrt5qSRQmoHi/tlTMLY4NiPN4l\nsfgW4QuMMoWTeBiVYrNl4w/M0jFEn2Movy+E125/V1BPsk8a5GbMOaB01qQk\n7g2/BfwkkTUmHmhYFMQxduw0BNLiukzG5jA0DzbLYAQbYECO1nqucSfTTjj9\nM4ax8QOeW5qY646Qk7fvz6diBI4POjG0SPjk/EbfWZv9+X9/+aafV1pJVG06\nGqrTmFR5O1+bunPamwuzUgKmefXKFasHlBjXZLFKBmdZn1qbTqnacDmtTxIC\nNr6hqnW9fX3NIAWS6Eb2FM3a+kPI3XSpdLsq+dTBwzzRKqzvECqzf2HNZpya\nKW7N\r\n=/ns9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzRqvymlz4p6aoSTxt1ddSnmO1FIRW37IINAQfuLj/sAiEA1MVHzzjhsWg660kcCs6uPYTxv/I/QqTFlZylrzY6czE="}],"size":1398406,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.7.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.7_1614340311071_0.2042218689384463"},"_hasShrinkwrap":false,"deprecated":"broken version","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":1614340311363,"_cnpm_publish_time":1614340311363,"dist-tags":{"latest":"0.0.10"}}