pacc 4.40.4 → 4.40.5

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/package.json +1 -1
  2. package/src/types.mjs +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "4.40.4",
3
+ "version": "4.40.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/types.mjs CHANGED
@@ -76,9 +76,7 @@ export function addType(type) {
76
76
  break;
77
77
 
78
78
  case "string":
79
- if (typeof type.extends === "string") {
80
- type.extends = raiseOnUnknownType(type.extends, type);
81
- }
79
+ type.extends = raiseOnUnknownType(type.extends, type);
82
80
  break;
83
81
  }
84
82
 
@@ -105,7 +103,7 @@ export function oneOfType(definition) {
105
103
  name,
106
104
  members: list.reduce((all, type) => {
107
105
  if (typeof type === "string") {
108
- type = raiseOnUnknownType(type, definition); // addType({ name: type });
106
+ type = raiseOnUnknownType(type, definition);
109
107
  }
110
108
  return all.union(type.members ?? new Set([type]));
111
109
  }, new Set())