• Stars
    star
    559
  • Rank 77,158 (Top 2 %)
  • Language
    Clojure
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Force npm to install a specific transitive dependency version

NPM Force Resolutions

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, but without having to migrate to yarn.

WARNING before you start

The 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).

How to use

First add a field resolutions with the dependency version you want to fix to your package.json, for example:

"resolutions": {
  "hoek": "4.2.1"
}

Then add npm-force-resolutions to the preinstall script so that it patches the package-lock file before every npm install you run:

"scripts": {
  "preinstall": "npx npm-force-resolutions"
}

Now just run npm install as you would normally do:

npm install

To confirm that the right version was installed, use:

npm ls hoek

If your package-lock changes, you may need to run the steps above again.

Contributing

To build the project from source you'll need to install clojure. Then you can run:

npm install
npm run build

More Repositories

1

langstream

Build robust LLM applications with true composability 🔗
Python
354
star
2

spades

Start an Elm SPA ready to the real world
Elm
301
star
3

driver

Python
116
star
4

feedless

Swift
102
star
5

elm-peer-tweet

Decentralized feeds using BitTorrent's DHT. Based on lmatteis' peer-tweet.
Elm
85
star
6

structured-elm-todomvc

Structured TodoMVC with Elm to exemplify real-world apps
72
star
7

bmo

BMO is a ChatGPT voice assistant
Python
60
star
8

remote-retrospectives

Have fun retrospectives using Google Docs
46
star
9

elm-test-bdd-style

BDD-style matchers for elm-test
Elm
37
star
10

react-decompiler

Decompile react components back into jsx format
JavaScript
28
star
11

jasmine-react-diff

Outputs nicely formated jsx when diffing two react components
JavaScript
24
star
12

pictureit-editor

TypeScript
23
star
13

NodeJS-MotionCAPTCHA

josscrowcroft's MotionCAPTCHA server-side validated with NodeJS
JavaScript
19
star
14

elm-suspense

Recreating react-suspense features using elm
Elm
15
star
15

rastreiounico

Rastreie qualquer coisa, pra qualquer um, com um clique, de graça, sem cadastro.
JavaScript
11
star
16

elm-todomvc-pwa

elm-todomvc with pwa features
Elm
10
star
17

notebooks

I'll munch some data here
Jupyter Notebook
10
star
18

unbreakablejs

JavaScript without runtime errors
Elm
9
star
19

codesearch

TypeScript
7
star
20

safe-externals-loader

Load webpack externals only if they are available globally, else require them
JavaScript
6
star
21

elm-ternary

Ternary and Null Coalescing operators for Elm
Elm
6
star
22

elm-test-example

Elm
6
star
23

Reactbox

A true responsive lightbox, when in mobile, it allows you to zoom and scroll the bigger image
JavaScript
6
star
24

rubber

Evaluate LaTeX math code
Elm
5
star
25

ml-101

Jupyter Notebook
5
star
26

unit

Universal Test Generator
Rust
5
star
27

simple-platform

Docker Machine + Ngninx + Prometheus + Grafana to provision on a single host
Shell
5
star
28

oltwitter

Good Ol' Twitter UI, rebuilt
Swift
4
star
29

llm-cost

NodeJS utility for counting tokens and estimating the cost of LLMs
TypeScript
3
star
30

atom-spec-finder

Shortcut for atom editor to switch between the file and its spec
CoffeeScript
3
star
31

gpt2-bot

Python
3
star
32

require-js-plugins-loader

A webpack loader to lazy load RequireJS plugins
JavaScript
3
star
33

sublime-spec-finder

Shortcut for sublime text to switch between the file and it's spec
Python
3
star
34

ptbr-datascience-crawler

Scrapes links from Pt-BR Data Science telegram group because they are too good to miss
Python
3
star
35

FOADocs

Sistema de controle de arquivos e versão para projetos acadêmicos utilizando cloud storage
Ruby
3
star
36

signal-concat-map

ConcatMap for Elm Signals
JavaScript
3
star
37

bayes-akinator

Building Akinator with Python using Bayes Theorem
Python
3
star
38

mle

Elm
2
star
39

elm-testable-css-helpers

Wraper for elm-testable of helper functions for using elm-css with elm-html
Elm
2
star
40

backbone-indexeddb-offline

Allows your Backbone.js app to work offline using indexeddb
2
star
41

chatje

basic version of workchat, because the facebook one is slow as hell
Elm
2
star
42

dotfiles

Shell
2
star
43

perl-tdd-runner

Run Perl tests continuously
Perl
2
star
44

blog

my php (personal home page)
Stylus
2
star
45

astah-anycode-rails

Generate scaffolds from your astah classes
2
star
46

stop-touching-your-face

Uses your camera to buzz you when you touch your face
JavaScript
2
star
47

react_editable_content

let you edit block of text or image in any page on your Rails application
JavaScript
2
star
48

matrizes-clifford

cálculos simples de matriz para a aula do clifford
Ruby
2
star
49

memekombat

The best game that existed on facebook circa 2012
JavaScript
2
star
50

langchain-docs-bot

A simple docs retrieval bot, indexing markdown and jupyter notebooks, which also can have a conversation, built using langchain and vectordb, with a nice chainlit UI
Python
1
star
51

Combina--o-de-Conjuntos

Ruby
1
star
52

newgen-js-bundlers

Comparing new generation of JS bundlers
JavaScript
1
star
53

log-filter

filter repetitive logs and focus on the different ones
Perl
1
star
54

Jogo-da-Ket

Online Multiplayer Facebook Card Game in Node.JS with socket.io
JavaScript
1
star
55

hastext

Clone of a social network based on micro-blogging in Elm
Haskell
1
star
56

prepack-elm-poc

Elm
1
star
57

JavaScript-vs-CSS-animations-tests

JavaScript
1
star
58

forecaster

probability weighted weather forecasts
Jupyter Notebook
1
star
59

babel-plugin-unbreakablejs

No runtime errors for javascript!
JavaScript
1
star
60

SEO-Friendly-Single-Page-Website

Create a stylish single-page website without losing links based navigation ;)
JavaScript
1
star
61

spree_pagseguro

deprecated - não use
Ruby
1
star
62

yyyy_mm_dd

Easy string-based date manipulation library for Python
Python
1
star