@optique/core 1.0.0-dev.1309 → 1.0.0-dev.1313

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.
@@ -628,7 +628,7 @@ function multiple(parser, options = {}) {
628
628
  suggestion.type,
629
629
  suggestion.pattern ?? "",
630
630
  suggestion.includeHidden === true,
631
- suggestion.extensions == null ? "" : suggestion.extensions.join("\0"),
631
+ suggestion.extensions == null ? "" : suggestion.extensions.toSorted().join("\0"),
632
632
  description
633
633
  ]);
634
634
  };
package/dist/modifiers.js CHANGED
@@ -628,7 +628,7 @@ function multiple(parser, options = {}) {
628
628
  suggestion.type,
629
629
  suggestion.pattern ?? "",
630
630
  suggestion.includeHidden === true,
631
- suggestion.extensions == null ? "" : suggestion.extensions.join("\0"),
631
+ suggestion.extensions == null ? "" : suggestion.extensions.toSorted().join("\0"),
632
632
  description
633
633
  ]);
634
634
  };
@@ -192,7 +192,7 @@ function createErrorWithSuggestions(baseError, invalidInput, usage, type = "both
192
192
  */
193
193
  function getSuggestionKey(suggestion) {
194
194
  if (suggestion.kind === "literal") return suggestion.text;
195
- return `__FILE__:${suggestion.type}:${suggestion.extensions?.join(",") ?? ""}:${suggestion.pattern ?? ""}`;
195
+ return `__FILE__:${suggestion.type}:${suggestion.extensions?.toSorted().join(",") ?? ""}:${suggestion.pattern ?? ""}`;
196
196
  }
197
197
  /**
198
198
  * Removes duplicate suggestions from an array while preserving order.
@@ -192,7 +192,7 @@ function createErrorWithSuggestions(baseError, invalidInput, usage, type = "both
192
192
  */
193
193
  function getSuggestionKey(suggestion) {
194
194
  if (suggestion.kind === "literal") return suggestion.text;
195
- return `__FILE__:${suggestion.type}:${suggestion.extensions?.join(",") ?? ""}:${suggestion.pattern ?? ""}`;
195
+ return `__FILE__:${suggestion.type}:${suggestion.extensions?.toSorted().join(",") ?? ""}:${suggestion.pattern ?? ""}`;
196
196
  }
197
197
  /**
198
198
  * Removes duplicate suggestions from an array while preserving order.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1309+70f882d5",
3
+ "version": "1.0.0-dev.1313+758f4e24",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",