{"name":"npm-force-resolutions","version":"0.0.2","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":"751f1516a9eb37921a698b896359c7ceedf5f923","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.2","_npmVersion":"6.0.0","_nodeVersion":"8.9.0","_npmUser":{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"},"dist":{"integrity":"sha512-2F1FxxDvoatn+OwBxrUGahnEECOpr5RDuF/jqfyy5dI87KmHI3zmb+cCcKDnhR7wnhaTH54/KyPlLTtUTL0Qpw==","shasum":"91450d07a03b658f71b36efc5e034416b6a42830","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.2.tgz","fileCount":70,"unpackedSize":4723598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7ywpCRA9TVsSAnZWagAAMpgQAKUd2J2kOdkvGE+9xodS\nb/0L8gObq9g2Rx4h8l+eeYY2WI83XfbjbJfUJXZArAXX01QHmKJtKPG7EoJz\nJQwN0TmIvWzIDSTC2W1finntQQTjf/4xuaBwCnpbncBPWCay4gVhSNHvuqjm\nJOStMjwp/tVWW+EkY8wuESie/3aX3rNCcvuFSpOZLqnIJw+SOUSSktFV4zmX\n+aQhnnYERKtdUogJhHDO4nI7glWdWjBtNzTerWgBiCS7fg1trV2800nsiOOa\nG/E/sR5jY4xGiQ1rq6Xp18CGMXyGc1Il/mQrZ0jgkb//7APgDiB/TXyFLQ8C\nJ/muyv6vKK5+wn3kBckNUUGS7nSyS0qwb488IKSikqqDiEjwpq2i3aVvR/WO\nTRUZh2SazWM7sjotBn+t5Kx4qvkKggBt3HdYXKG4loWX289sbxYlnPjaSPYb\nG0e3QjZArKhO1F2P1YyBeAuMnH0UxxlvXN64DQxChh9DkqLagUg2pMmv6MQC\niCVzYJonYwWw8liW5dU942/rOHysKzkKPOQic0Z++sUd9ALE99QQxalwLvze\n5R/OceMLY6FWYUzY6JOTg2XcwY1XPnGDEFylHOl5vAfwqa5os+KLMVUqUNOq\nUIY/zISTXQFU86oVVevIPegjzGXoxQ4PXlOlcWajAqdtfNufsC4kCtqOMWbo\nDqLg\r\n=yGsg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2J4hWJa+Po0fVRGsroezG2grHHiOBDeDc6dya05sjgQIgdsEzD/gt0LEk5VRdF8mhNOg9DR5ug8WX4Jj6PtkLJgM="}],"size":807501,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.2.tgz"},"maintainers":[{"name":"rchaves","email":"rogeriocfj+npm@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-force-resolutions_0.0.2_1525623847726_0.8426118939432912"},"_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":1525623847872,"_cnpm_publish_time":1525623847872,"dist-tags":{"latest":"0.0.10"}}