@vltpkg/satisfies 1.0.0-rc.32 → 1.0.0-rc.33
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/dist/index.js +9 -1
- package/package.json +14 -7
package/dist/index.js
CHANGED
|
@@ -42,7 +42,15 @@ export const satisfiesTuple = (tuple, spec, fromLocation = process.cwd(), projec
|
|
|
42
42
|
}
|
|
43
43
|
/* c8 ignore stop */
|
|
44
44
|
}
|
|
45
|
-
else
|
|
45
|
+
else if (
|
|
46
|
+
// With no configured registry, a plain registry spec has no
|
|
47
|
+
// registry of its own, but getTuple() still stamps its DepID with
|
|
48
|
+
// the `npm` name. Treating that as a mismatch would make
|
|
49
|
+
// satisfies() contradict getId(), so let it through and fall to
|
|
50
|
+
// the name/version checks below.
|
|
51
|
+
!(first === defaultRegistryName &&
|
|
52
|
+
!spec.registry &&
|
|
53
|
+
!options.registry)) {
|
|
46
54
|
let namedRegistry = options.registries[first];
|
|
47
55
|
/* c8 ignore next 3 */
|
|
48
56
|
if (!namedRegistry && first === defaultRegistryName) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vltpkg/satisfies",
|
|
3
3
|
"description": "method for determining if a DepID satisfies a Spec",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.33",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/vltpkg/vltpkg.git",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"url": "http://vlt.sh"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@vltpkg/dep-id": "1.0.0-rc.
|
|
17
|
-
"@vltpkg/error-cause": "1.0.0-rc.
|
|
18
|
-
"@vltpkg/semver": "1.0.0-rc.
|
|
19
|
-
"@vltpkg/spec": "1.0.0-rc.
|
|
20
|
-
"@vltpkg/workspaces": "1.0.0-rc.
|
|
16
|
+
"@vltpkg/dep-id": "1.0.0-rc.33",
|
|
17
|
+
"@vltpkg/error-cause": "1.0.0-rc.33",
|
|
18
|
+
"@vltpkg/semver": "1.0.0-rc.33",
|
|
19
|
+
"@vltpkg/spec": "1.0.0-rc.33",
|
|
20
|
+
"@vltpkg/workspaces": "1.0.0-rc.33"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@eslint/js": "^9.39.1",
|
|
@@ -60,5 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"files": [
|
|
62
62
|
"dist"
|
|
63
|
-
]
|
|
63
|
+
],
|
|
64
|
+
"bugs": [
|
|
65
|
+
{
|
|
66
|
+
"type": "link",
|
|
67
|
+
"url": "https://github.com/vltpkg/vltpkg/issues"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"homepage": "https://github.com/vltpkg/vltpkg/tree/main/src/satisfies#readme"
|
|
64
71
|
}
|