{"name":"npm-force-resolutions","version":"0.0.5","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":"01416a765244fe0ddc0be5be1b50496ce9ffebaa","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.5","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-jw/mX1HYAmWCcKUH2j7gR44jIESwtbqSyKSELTecs5EFXR1//lV+0XY5rNB580zlZnVa9m6x9LpLhuQ0ShYcBQ==","shasum":"3e1281254b2c610bd17450923a29afa580af1ee8","tarball":"http://registry-npm.ywwl.com/npm-force-resolutions/download/npm-force-resolutions-0.0.5.tgz","fileCount":219,"unpackedSize":7687338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNdIZCRA9TVsSAnZWagAAsIUP/2uAa3skZJ8hFsAyF8Yd\nb+viMpRol0EzGqh/vmkoW6myqiMMogotclvAuMxRMpzjYzEfyCd/qF0OS0sO\nCSqcvC+ZC780JJly4d5cR1emUNoAnF/M1o9PMUQvbzB/ksQO7rylkfItb3LO\nBfuXb3EZ+1e58IgX0wKS2GrzdSU5t4eWOoXe0IVqw4ILqajUiukOwuROL2Ze\nyo10J4YRLZkUpisl7kYzZ6xM9RNFXZL19X6BjiiYmdfZkSZH19n1MfIQXDvn\nTLRKvHpFm4Gmo0L4VGXD53oduo6USCxAPUTbvZHQs4Py86sbqHVHfwwxHydA\nuwiFhXnr8F41EjaFXFRy7PctX7KCv8jYJeo3xScJ5kJVv+JL4mH686oYW2pa\nWCN1pK+pUDH/yXfpLpKNneQx9SJx0460QTtyod9F4kt6PeTFApiqnaJlg+bR\nWral34IBzjP1wnd7KA3KT1XHdc1seoZInARTXDXjf9+873wiib9KwvqJwMzj\n+LPMwUJrW+kowaHALq3yhJ4VLsw4l148BrYpGSyBMbnZfmGgWDtXiGyagzCZ\nb5u7HJ9qYQLUElaV5a/SvjJ66Sy6u5XxJetiFpNg760RkFwwpHGhB6gaTxNa\nYiJ4KubVt0oJkBpaVOMVEuMny8FW3M79h3hvQMYz5ADVelaSXrAaIj2XOGPs\nhflA\r\n=AE20\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzF2Yne579vLIld+xp80+0UfXKwRIDL1aEZbw7N9iNTAiAevbPtR0X1ZRZ7S4h2t34ubxv2NJQLrBWjL/qQZkJudw=="}],"size":1395658,"noattachment":false,"key":"/npm-force-resolutions/-/npm-force-resolutions-0.0.5.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.5_1614139928610_0.6398606171115673"},"_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":1614139928845,"_cnpm_publish_time":1614139928845,"dist-tags":{"latest":"0.0.10"}}