{"name":"npm-force-resolutions","version":"0.0.9","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":"4b8ffb797d09665f4b0656d353be65b3f49eac77","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.9","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-NsZ8DTP2Ax9cN7J7EwAG3I2cn+yCMcsYMOkj7j9tO1M8keeHIGekSA7WvvIMJwVItiJLwdNm697AYCme2NW+2A==","shasum":"c0983f8c0a9cbaa64c77e51fdeff83122090b768","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.9.tgz","fileCount":445,"unpackedSize":15607594,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOSwFCRA9TVsSAnZWagAAihwP/RmJ0iCXNhk480qn71Ok\nllFiEjltK8OKjN2gW6I10ZJ93i3Lf2pRXN6vkapdPqUON+0qbToGSaAOuKou\ndWV73HlqAcrqimaY4q0tWh2TgQHivMNwX9nI3tjeQNtdK1OOoOb4dp8iKMbu\n5eepOv1DwTQ4pvcfOTZA/uTdmiyO/nnQ64ePxsTMU5MQ23pzh/keKusUuaj3\nGxSFDicd5PkSLwBw9EuhFZGMqbf1e+bUI8qJtMHZqH/f2B2ax8zw0OHLkysi\nfk84CqufmiA5xhN0XOQOyy8BrrQ1gdLadDsJddWKc4DAOrmAHC9FP21EyNKu\n33OsBcLALR4PpS5FW1asJzsXZqd0pPmgPovtqSfO1ypcy8qNWPJqYnfOGW8t\nEr7GGYdeWOC5xfFrcbG4Q/R9WPZ4isPhGw6aKmiRtcrT/mSKgphwD9kK2Sd3\n1BXsZcxa/yOzmfMycwc6TmsJgUoo1K6LYxVrIO79y27jAdG3Q2Mtyh+WWd3t\nOHeEWSJPiSC2OAr+RlP1o9ujCr4ZmfuabwB7WN8fh/VJNSs6S1z2f2BHbmDz\nB7J5W2Gf1WTtN8XfblboTzbnCm9/RbdkrDMvEOM2hw5h4Sc5EvhoT/o/+Btz\nuvCMzK/IcoYcnof6f+ER1DG2w4Ofsp9Dd8sjjSu02oYyTvmJw8H2ikj6mPVU\nOYVC\r\n=2aRA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG7WdUf5NDzycXh7ig7PxE6kjx9hkCIRtBCyWkNo7JOyAiBO8a5vkTr/oxuNH8Ei0/GUyTJGvQnVl8U/u8i+hBEn/A=="}],"size":2513701,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.9.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.9_1614359556897_0.1320109383069541"},"_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":1614359557183,"_cnpm_publish_time":1614359557183,"dist-tags":{"latest":"0.0.10"}}