@socketsecurity/cli-with-sentry 1.0.80 → 1.0.81

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,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CA6ClE"}
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,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAqDlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"cmd-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/cmd-fix.mts"],"names":[],"mappings":"AA8HA,eAAO,MAAM,MAAM;;;;CAIlB,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GACrC,OAAO,CAAC,IAAI,CAAC,CAyGf"}
1
+ {"version":3,"file":"cmd-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/cmd-fix.mts"],"names":[],"mappings":"AAgIA,eAAO,MAAM,MAAM;;;;CAIlB,CAAA;AAED,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,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B,CAAC,CAAC,MAAM,CAAC,WAI1E;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAClC,MAAM,EAAE,CAGV"}
package/dist/utils.js CHANGED
@@ -1399,7 +1399,7 @@ async function determineOrgSlug(orgFlag, interactive, dryRun) {
1399
1399
  async function getDefaultOrgSlug() {
1400
1400
  const defaultOrgResult = getConfigValueOrUndef('defaultOrg');
1401
1401
  if (defaultOrgResult) {
1402
- require$$6.debugFn('notice', 'use: default org', defaultOrgResult);
1402
+ require$$6.debugFn('notice', 'use: org from defaultOrg value of socket/settings local app data', defaultOrgResult);
1403
1403
  return {
1404
1404
  ok: true,
1405
1405
  data: defaultOrgResult
@@ -1409,7 +1409,7 @@ async function getDefaultOrgSlug() {
1409
1409
  // Lazily access constants.ENV.SOCKET_CLI_ORG_SLUG.
1410
1410
  const envOrgSlug = constants.ENV.SOCKET_CLI_ORG_SLUG;
1411
1411
  if (envOrgSlug) {
1412
- require$$6.debugFn('notice', 'use: org from environment variable', envOrgSlug);
1412
+ require$$6.debugFn('notice', 'use: org from SOCKET_CLI_ORG_SLUG environment variable', envOrgSlug);
1413
1413
  return {
1414
1414
  ok: true,
1415
1415
  data: envOrgSlug
@@ -1427,7 +1427,7 @@ async function getDefaultOrgSlug() {
1427
1427
  return {
1428
1428
  ok: false,
1429
1429
  message: 'Failed to establish identity',
1430
- data: `API did not return any organization associated with the current API token. Unable to continue.`
1430
+ data: `No organization associated with the API token. Unable to continue.`
1431
1431
  };
1432
1432
  }
1433
1433
  const slug = organizations[keys[0]]?.name ?? undefined;
@@ -1435,10 +1435,10 @@ async function getDefaultOrgSlug() {
1435
1435
  return {
1436
1436
  ok: false,
1437
1437
  message: 'Failed to establish identity',
1438
- data: `Was unable to determine the default organization for the current API token. Unable to continue.`
1438
+ data: `Cannot determine the default organization for the API token. Unable to continue.`
1439
1439
  };
1440
1440
  }
1441
- require$$6.debugFn('notice', 'resolve: org', slug);
1441
+ require$$6.debugFn('notice', 'resolve: org from API', slug);
1442
1442
  return {
1443
1443
  ok: true,
1444
1444
  message: 'Retrieved default org from server',
@@ -2020,7 +2020,7 @@ async function globWithGitIgnore(patterns, options) {
2020
2020
  }
2021
2021
  let hasNegatedPattern = false;
2022
2022
  for (const p of ignores) {
2023
- if (p.charCodeAt(0) === 33) {
2023
+ if (p.charCodeAt(0) === 33 /*'!'*/) {
2024
2024
  hasNegatedPattern = true;
2025
2025
  break;
2026
2026
  }
@@ -2036,8 +2036,11 @@ async function globWithGitIgnore(patterns, options) {
2036
2036
  if (!hasNegatedPattern) {
2037
2037
  return await vendor.outExports.glob(patterns, globOptions);
2038
2038
  }
2039
- const ig = vendor.ignoreExports().add([...ignores]);
2039
+
2040
+ // Add support for negated "ignore" patterns which many globbing libraries,
2041
+ // including 'fast-glob', 'globby', and 'tinyglobby', lack support for.
2040
2042
  const filtered = [];
2043
+ const ig = vendor.ignoreExports().add([...ignores]);
2041
2044
  const stream = vendor.outExports.globStream(patterns, globOptions);
2042
2045
  for await (const p of stream) {
2043
2046
  // Note: the input files must be INSIDE the cwd. If you get strange looking
@@ -3869,5 +3872,5 @@ exports.tildify = tildify;
3869
3872
  exports.updateConfigValue = updateConfigValue;
3870
3873
  exports.walkNestedMap = walkNestedMap;
3871
3874
  exports.writeSocketJson = writeSocketJson;
3872
- //# debugId=97cbba5e-7a53-4df3-9a47-3d2e8287b36b
3875
+ //# debugId=e5cd4032-d503-47fb-97fe-83d96ce9043d
3873
3876
  //# sourceMappingURL=utils.js.map