@vm0/cli 9.165.2 → 9.165.3

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.
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.165.2",
74086
+ release: "9.165.3",
74087
74087
  sendDefaultPii: false,
74088
74088
  tracesSampleRate: 0,
74089
74089
  shutdownTimeout: 500,
@@ -74102,7 +74102,7 @@ if (DSN) {
74102
74102
  }
74103
74103
  });
74104
74104
  setContext("cli", {
74105
- version: "9.165.2",
74105
+ version: "9.165.3",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -117814,19 +117814,6 @@ var GOOGLE_OAUTH_CONNECTOR_TYPES = [
117814
117814
  var GOOGLE_OAUTH_CONNECTOR_TYPE_SET = new Set(GOOGLE_OAUTH_CONNECTOR_TYPES);
117815
117815
 
117816
117816
  // ../../packages/connectors/src/connector-utils.ts
117817
- function lookupConnectorAuthMethod(type, authMethod) {
117818
- for (const [methodId, method] of Object.entries(
117819
- CONNECTOR_TYPES[type].authMethods
117820
- )) {
117821
- if (methodId === authMethod) {
117822
- return method;
117823
- }
117824
- }
117825
- return void 0;
117826
- }
117827
- function getConnectorAuthMethod(type, authMethod) {
117828
- return lookupConnectorAuthMethod(type, authMethod);
117829
- }
117830
117817
  function connectorAuthMethodValues(type) {
117831
117818
  return Object.values(CONNECTOR_TYPES[type].authMethods);
117832
117819
  }
@@ -117869,18 +117856,24 @@ function authMethodAccessPriority(method) {
117869
117856
  return 0;
117870
117857
  }
117871
117858
  }
117872
- function getConnectorOAuthGrantConfigIfSupported(type) {
117873
- const method = getConnectorAuthMethod(type, "oauth");
117874
- switch (method?.grant.kind) {
117859
+ function isConnectorOAuthGrantConfig(method) {
117860
+ switch (method.grant.kind) {
117875
117861
  case "auth-code":
117876
117862
  case "device-auth":
117877
- return method.grant;
117863
+ return true;
117878
117864
  case "manual":
117879
117865
  case "managed":
117880
117866
  case "interactive-pairing":
117881
- case void 0:
117882
- return void 0;
117867
+ return false;
117868
+ }
117869
+ }
117870
+ function getConnectorOAuthGrantConfigIfSupported(type) {
117871
+ for (const method of connectorAuthMethodValues(type)) {
117872
+ if (isConnectorOAuthGrantConfig(method)) {
117873
+ return method.grant;
117874
+ }
117883
117875
  }
117876
+ return void 0;
117884
117877
  }
117885
117878
  function getConnectorGenerationTypes(type) {
117886
117879
  const config4 = CONNECTOR_TYPES[type];
@@ -135353,4 +135346,4 @@ undici/lib/web/fetch/body.js:
135353
135346
  undici/lib/web/websocket/frame.js:
135354
135347
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
135355
135348
  */
135356
- //# sourceMappingURL=chunk-2U6TV3JH.js.map
135349
+ //# sourceMappingURL=chunk-X7OEKYPB.js.map