@vltpkg/types 1.0.0-rc.31 → 1.0.0-rc.32

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -243,12 +243,14 @@ const normalizeSingleBug = (bug) => {
243
243
  if (isNormalizedBugsEntry(bug)) {
244
244
  res.push(bug);
245
245
  }
246
- const obj = bug;
247
- if (obj.url) {
248
- res.push({ type: 'link', url: obj.url });
249
- }
250
- if (obj.email) {
251
- res.push({ type: 'email', email: obj.email });
246
+ else {
247
+ const obj = bug;
248
+ if (obj.url) {
249
+ res.push({ type: 'link', url: obj.url });
250
+ }
251
+ if (obj.email) {
252
+ res.push({ type: 'email', email: obj.email });
253
+ }
252
254
  }
253
255
  }
254
256
  return res.length > 0 ? res : [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/types",
3
3
  "description": "definitions for some of vlt's core types",
4
- "version": "1.0.0-rc.31",
4
+ "version": "1.0.0-rc.32",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -13,10 +13,10 @@
13
13
  "url": "http://vlt.sh"
14
14
  },
15
15
  "dependencies": {
16
- "@vltpkg/dep-id": "1.0.0-rc.31",
17
- "@vltpkg/error-cause": "1.0.0-rc.31",
18
- "@vltpkg/semver": "1.0.0-rc.31",
19
- "@vltpkg/spec": "1.0.0-rc.31"
16
+ "@vltpkg/dep-id": "1.0.0-rc.32",
17
+ "@vltpkg/error-cause": "1.0.0-rc.32",
18
+ "@vltpkg/semver": "1.0.0-rc.32",
19
+ "@vltpkg/spec": "1.0.0-rc.32"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@eslint/js": "^9.39.1",