@optique/core 0.10.0 → 1.0.0-dev.387
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/usage.cjs +4 -2
- package/dist/usage.js +4 -2
- package/package.json +1 -1
package/dist/usage.cjs
CHANGED
|
@@ -194,8 +194,10 @@ function normalizeUsageTerm(term) {
|
|
|
194
194
|
const terms = [];
|
|
195
195
|
for (const usage of term.terms) {
|
|
196
196
|
const normalized = normalizeUsage(usage);
|
|
197
|
-
if (normalized.length
|
|
198
|
-
|
|
197
|
+
if (normalized.length >= 1 && normalized[0].type === "exclusive") {
|
|
198
|
+
const rest = normalized.slice(1);
|
|
199
|
+
for (const subUsage of normalized[0].terms) terms.push([...subUsage, ...rest]);
|
|
200
|
+
} else terms.push(normalized);
|
|
199
201
|
}
|
|
200
202
|
return {
|
|
201
203
|
type: "exclusive",
|
package/dist/usage.js
CHANGED
|
@@ -193,8 +193,10 @@ function normalizeUsageTerm(term) {
|
|
|
193
193
|
const terms = [];
|
|
194
194
|
for (const usage of term.terms) {
|
|
195
195
|
const normalized = normalizeUsage(usage);
|
|
196
|
-
if (normalized.length
|
|
197
|
-
|
|
196
|
+
if (normalized.length >= 1 && normalized[0].type === "exclusive") {
|
|
197
|
+
const rest = normalized.slice(1);
|
|
198
|
+
for (const subUsage of normalized[0].terms) terms.push([...subUsage, ...rest]);
|
|
199
|
+
} else terms.push(normalized);
|
|
198
200
|
}
|
|
199
201
|
return {
|
|
200
202
|
type: "exclusive",
|