sim 2.2.22-preview.266.1 → 2.2.22

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/index.js CHANGED
@@ -22393,7 +22393,7 @@ function commandPath2(command) {
22393
22393
  return names.join(" ");
22394
22394
  }
22395
22395
  function looksLikeAnId(token) {
22396
- return token.length > 2 && !token.startsWith("--") && /^-[A-Za-z0-9_-]*[A-Z0-9][A-Za-z0-9_-]*$/.test(token);
22396
+ return token.length > 2 && !token.startsWith("--") && /^-[\w-]+$/.test(token) && /[A-Z0-9]/.test(token);
22397
22397
  }
22398
22398
  function hasOwnAction(command) {
22399
22399
  return Boolean(command._actionHandler);
package/dist/runtime.js CHANGED
@@ -22442,7 +22442,7 @@ function commandPath2(command) {
22442
22442
  return names.join(" ");
22443
22443
  }
22444
22444
  function looksLikeAnId(token) {
22445
- return token.length > 2 && !token.startsWith("--") && /^-[A-Za-z0-9_-]*[A-Z0-9][A-Za-z0-9_-]*$/.test(token);
22445
+ return token.length > 2 && !token.startsWith("--") && /^-[\w-]+$/.test(token) && /[A-Z0-9]/.test(token);
22446
22446
  }
22447
22447
  function hasOwnAction(command) {
22448
22448
  return Boolean(command._actionHandler);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.22-preview.266.1",
3
+ "version": "2.2.22",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "imports": {