@guanghechen/version 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/index.cjs +2 -1
- package/lib/esm/index.mjs +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/cjs/index.cjs
CHANGED
|
@@ -141,7 +141,8 @@ function parseHyphenRange(range) {
|
|
|
141
141
|
const prereleaseVersions = [];
|
|
142
142
|
if (start.prerelease.length > 0)
|
|
143
143
|
prereleaseVersions.push(startFull);
|
|
144
|
-
if (
|
|
144
|
+
if (end.isWildcard) ;
|
|
145
|
+
else if (isFullVersion(end)) {
|
|
145
146
|
comparators.push(createComparator(end, 'lte'));
|
|
146
147
|
if (end.prerelease.length > 0)
|
|
147
148
|
prereleaseVersions.push(end);
|
package/lib/esm/index.mjs
CHANGED
|
@@ -139,7 +139,8 @@ function parseHyphenRange(range) {
|
|
|
139
139
|
const prereleaseVersions = [];
|
|
140
140
|
if (start.prerelease.length > 0)
|
|
141
141
|
prereleaseVersions.push(startFull);
|
|
142
|
-
if (
|
|
142
|
+
if (end.isWildcard) ;
|
|
143
|
+
else if (isFullVersion(end)) {
|
|
143
144
|
comparators.push(createComparator(end, 'lte'));
|
|
144
145
|
if (end.prerelease.length > 0)
|
|
145
146
|
prereleaseVersions.push(end);
|