Use any version as bower / npm dependency
I have a library package of a library that depends on jQuery and the latest version of my library:
"dependencies": {
"jquery": "~2"
}
can be used
"dependencies": {
"jquery": "any"
}
or
"dependencies": {
"jquery": "*"
}
so it uses whatever version suits other dependencies.
I can't seem to find any documentation about this, is it possible to do the same in npm?
EDIT : Basically I want version ~ 3 or ~ 2 if other dependencies require version 2 due to XSS and DOS vulnerabilities found in my library due to old jQuery.
+3
source to share
No one has answered this question yet
Check out similar questions: