screwdriver-api 8.0.163 → 8.0.164
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/package.json +1 -1
- package/plugins/versions.js +5 -2
package/package.json
CHANGED
package/plugins/versions.js
CHANGED
|
@@ -179,8 +179,9 @@ function collectPackage(pkgDir, data) {
|
|
|
179
179
|
|
|
180
180
|
const json = readJson(packageJsonPath);
|
|
181
181
|
const key = `${json.name}@${json.version}`;
|
|
182
|
+
const hasIdentity = json.name && json.version;
|
|
182
183
|
|
|
183
|
-
if (
|
|
184
|
+
if (hasIdentity && data[key]) {
|
|
184
185
|
return data;
|
|
185
186
|
}
|
|
186
187
|
|
|
@@ -234,7 +235,9 @@ function collectPackage(pkgDir, data) {
|
|
|
234
235
|
moduleInfo.licenses = UNLICENSED;
|
|
235
236
|
}
|
|
236
237
|
|
|
237
|
-
|
|
238
|
+
if (hasIdentity) {
|
|
239
|
+
data[key] = moduleInfo;
|
|
240
|
+
}
|
|
238
241
|
|
|
239
242
|
[json.dependencies, json.optionalDependencies, json.peerDependencies].forEach(dependencies => {
|
|
240
243
|
Object.keys(dependencies || {}).forEach(depName => {
|