screwdriver-api 8.0.163 → 8.0.165

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "8.0.163",
3
+ "version": "8.0.165",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 (!json.name || !json.version || data[key]) {
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
- data[key] = moduleInfo;
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 => {