socket 1.1.115 → 1.1.117

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.
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-default-org-slug.d.mts","sourceRoot":"","sources":["../../../../src/commands/ci/fetch-default-org-slug.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,sEAAsE;AACtE,wBAAsB,iBAAiB,CACrC,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAoD1B"}
1
+ {"version":3,"file":"fetch-default-org-slug.d.mts","sourceRoot":"","sources":["../../../../src/commands/ci/fetch-default-org-slug.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,sEAAsE;AACtE,wBAAsB,iBAAiB,CACrC,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAwD1B"}
package/dist/utils.js CHANGED
@@ -3821,7 +3821,12 @@ async function getDefaultOrgSlug(silence) {
3821
3821
  data: `No organization associated with the Socket API token. Unable to continue.`
3822
3822
  };
3823
3823
  }
3824
- const slug = organizations[keys[0]]?.name ?? undefined;
3824
+
3825
+ // Use the org's URL-safe `slug`, not its display `name`: this value is
3826
+ // exported as SOCKET_ORG_SLUG for the Coana CLI, which resolves the org by
3827
+ // slug. `name` is the human-readable display name (and may be null), so using
3828
+ // it here produced a wrong/empty org identifier.
3829
+ const slug = organizations[0]?.slug ?? undefined;
3825
3830
  if (!slug) {
3826
3831
  return {
3827
3832
  ok: false,
@@ -8350,5 +8355,5 @@ exports.updateConfigValue = updateConfigValue;
8350
8355
  exports.walkNestedMap = walkNestedMap;
8351
8356
  exports.webLink = webLink;
8352
8357
  exports.writeSocketJson = writeSocketJson;
8353
- //# debugId=da564a1a-94b4-43b0-953f-ee64e00633c5
8358
+ //# debugId=94ef2183-dca4-487d-a212-97d72c67367e
8354
8359
  //# sourceMappingURL=utils.js.map