We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6010883 commit 7209b14Copy full SHA for 7209b14
classes/range.js
@@ -252,6 +252,7 @@ const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
252
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
253
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
254
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
255
+// ~0.0.1 --> >=0.0.1 <0.1.0-0
256
const replaceTildes = (comp, options) =>
257
comp.trim().split(/\s+/).map((c) => {
258
return replaceTilde(c, options)
@@ -291,6 +292,8 @@ const replaceTilde = (comp, options) => {
291
292
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
293
// ^1.2.3 --> >=1.2.3 <2.0.0-0
294
// ^1.2.0 --> >=1.2.0 <2.0.0-0
295
+// ^0.0.1 --> >=0.0.1 <0.0.2-0
296
+// ^0.1.0 --> >=0.1.0 <0.2.0-0
297
const replaceCarets = (comp, options) =>
298
299
return replaceCaret(c, options)
0 commit comments