auth0-deploy-cli 7.17.3 → 7.17.5

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.
Files changed (144) hide show
  1. package/.nyc_output/2ecb3d38-b430-4323-9cc5-9b21c23e2080.json +1 -0
  2. package/.nyc_output/processinfo/1e8407e3-69dd-42c2-9b3d-00b8b19e4e32.json +1 -0
  3. package/.nyc_output/processinfo/{4931ff4a-8b09-4a9b-899c-ce541c2f6b8a.json → 2ecb3d38-b430-4323-9cc5-9b21c23e2080.json} +1 -1
  4. package/.nyc_output/processinfo/b270210e-f652-46a6-abe9-c486465b0f74.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -1
  6. package/CHANGELOG.md +19 -1
  7. package/coverage/lcov-report/index.html +14 -14
  8. package/coverage/lcov-report/src/args.ts.html +1 -1
  9. package/coverage/lcov-report/src/commands/export.ts.html +1 -1
  10. package/coverage/lcov-report/src/commands/import.ts.html +1 -1
  11. package/coverage/lcov-report/src/commands/index.html +1 -1
  12. package/coverage/lcov-report/src/configFactory.ts.html +1 -1
  13. package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
  14. package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +1 -1
  15. package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +1 -1
  16. package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +1 -1
  17. package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +1 -1
  18. package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +1 -1
  19. package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +1 -1
  20. package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +1 -1
  21. package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +1 -1
  22. package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +1 -1
  23. package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +1 -1
  24. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +1 -1
  25. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +1 -1
  26. package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +1 -1
  27. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  28. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  29. package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +1 -1
  30. package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +1 -1
  31. package/coverage/lcov-report/src/context/directory/handlers/index.html +1 -1
  32. package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
  33. package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +1 -1
  34. package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +1 -1
  35. package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +1 -1
  36. package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +1 -1
  37. package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +1 -1
  38. package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +1 -1
  39. package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +1 -1
  40. package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +1 -1
  41. package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +1 -1
  42. package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +1 -1
  43. package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +1 -1
  44. package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +1 -1
  45. package/coverage/lcov-report/src/context/directory/index.html +1 -1
  46. package/coverage/lcov-report/src/context/directory/index.ts.html +1 -1
  47. package/coverage/lcov-report/src/context/index.html +1 -1
  48. package/coverage/lcov-report/src/context/index.ts.html +1 -1
  49. package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +1 -1
  50. package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +1 -1
  51. package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +1 -1
  52. package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +1 -1
  53. package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +1 -1
  54. package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +1 -1
  55. package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +1 -1
  56. package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +1 -1
  57. package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +1 -1
  58. package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +1 -1
  59. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +1 -1
  60. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +1 -1
  61. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +1 -1
  62. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  63. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  64. package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +1 -1
  65. package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +1 -1
  66. package/coverage/lcov-report/src/context/yaml/handlers/index.html +1 -1
  67. package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
  68. package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +1 -1
  69. package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +1 -1
  70. package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +1 -1
  71. package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +1 -1
  72. package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +1 -1
  73. package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +1 -1
  74. package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +1 -1
  75. package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +1 -1
  76. package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +1 -1
  77. package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +1 -1
  78. package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +1 -1
  79. package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +1 -1
  80. package/coverage/lcov-report/src/context/yaml/index.html +1 -1
  81. package/coverage/lcov-report/src/context/yaml/index.ts.html +1 -1
  82. package/coverage/lcov-report/src/index.html +1 -1
  83. package/coverage/lcov-report/src/index.ts.html +1 -1
  84. package/coverage/lcov-report/src/keywordPreservation.ts.html +1 -1
  85. package/coverage/lcov-report/src/logger.ts.html +2 -2
  86. package/coverage/lcov-report/src/readonly.ts.html +1 -1
  87. package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +1 -1
  88. package/coverage/lcov-report/src/tools/auth0/client.ts.html +1 -1
  89. package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +1 -1
  90. package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +1 -1
  91. package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +1 -1
  92. package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +1 -1
  93. package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +1 -1
  94. package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +1 -1
  95. package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +1 -1
  96. package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +1 -1
  97. package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +27 -27
  98. package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +1 -1
  99. package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +1 -1
  100. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +1 -1
  101. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +1 -1
  102. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +1 -1
  103. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  104. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  105. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +1 -1
  106. package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +1 -1
  107. package/coverage/lcov-report/src/tools/auth0/handlers/index.html +14 -14
  108. package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
  109. package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +21 -9
  110. package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +1 -1
  111. package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +1 -1
  112. package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +1 -1
  113. package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +1 -1
  114. package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +1 -1
  115. package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +1 -1
  116. package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +1 -1
  117. package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +1 -1
  118. package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +154 -73
  119. package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +1 -1
  120. package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +1 -1
  121. package/coverage/lcov-report/src/tools/auth0/index.html +1 -1
  122. package/coverage/lcov-report/src/tools/auth0/index.ts.html +1 -1
  123. package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
  124. package/coverage/lcov-report/src/tools/calculateChanges.ts.html +20 -20
  125. package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
  126. package/coverage/lcov-report/src/tools/deploy.ts.html +1 -1
  127. package/coverage/lcov-report/src/tools/index.html +1 -1
  128. package/coverage/lcov-report/src/tools/index.ts.html +1 -1
  129. package/coverage/lcov-report/src/tools/utils.ts.html +26 -26
  130. package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
  131. package/coverage/lcov-report/src/types.ts.html +1 -1
  132. package/coverage/lcov-report/src/utils.ts.html +2 -2
  133. package/coverage/lcov.info +261 -251
  134. package/lib/tools/auth0/handlers/logStreams.js +5 -1
  135. package/lib/tools/auth0/handlers/logStreams.js.map +1 -1
  136. package/lib/tools/auth0/handlers/tenant.d.ts +2 -4
  137. package/lib/tools/auth0/handlers/tenant.js +59 -30
  138. package/lib/tools/auth0/handlers/tenant.js.map +1 -1
  139. package/package.json +1 -1
  140. package/.nyc_output/4931ff4a-8b09-4a9b-899c-ce541c2f6b8a.json +0 -1
  141. package/.nyc_output/processinfo/760b21c1-74f0-47a2-bacb-55b1796d1d84.json +0 -1
  142. package/.nyc_output/processinfo/f8a6012a-6f3c-46cf-8693-1687738e001c.json +0 -1
  143. /package/.nyc_output/{760b21c1-74f0-47a2-bacb-55b1796d1d84.json → 1e8407e3-69dd-42c2-9b3d-00b8b19e4e32.json} +0 -0
  144. /package/.nyc_output/{f8a6012a-6f3c-46cf-8693-1687738e001c.json → b270210e-f652-46a6-abe9-c486465b0f74.json} +0 -0
@@ -36,7 +36,11 @@ exports.schema = {
36
36
  };
37
37
  class LogStreamsHandler extends default_1.default {
38
38
  constructor(config) {
39
- super(Object.assign(Object.assign({}, config), { type: 'logStreams', stripUpdateFields: ['type'], stripCreateFields: ['status', 'sink.awsPartnerEventSource'], sensitiveFieldsToObfuscate: ['sink.httpAuthorization'] }));
39
+ super(Object.assign(Object.assign({}, config), { type: 'logStreams', stripUpdateFields: ['type'], stripCreateFields: ['status', 'sink.awsPartnerEventSource'], sensitiveFieldsToObfuscate: [
40
+ 'sink.httpAuthorization',
41
+ 'sink.splunkToken',
42
+ 'sink.datadogApiKey',
43
+ ] }));
40
44
  }
41
45
  objString(item) {
42
46
  return super.objString(item.name);
@@ -1 +1 @@
1
- {"version":3,"file":"logStreams.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/logStreams.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAA0C;AAG7B,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE;YACnE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;CACF,CAAC;AAYF,MAAqB,iBAAkB,SAAQ,iBAAiB;IAG9D,YAAY,MAAyB;QACnC,KAAK,iCACA,MAAM,KACT,IAAI,EAAE,YAAY,EAClB,iBAAiB,EAAE,CAAC,MAAM,CAAC,EAC3B,iBAAiB,EAAE,CAAC,QAAQ,EAAE,4BAA4B,CAAC,EAC3D,0BAA0B,EAAE,CAAC,wBAAwB,CAAC,IACtD,CAAC;IACL,CAAC;IAED,SAAS,CAAC,IAAW;QACnB,OAAO,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAEK,OAAO;;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DefaultHandler {
16
16
  validate(assets: Assets): Promise<void>;
17
17
  processChanges(assets: Assets): Promise<void>;
18
18
  }
19
- export declare const sanitizeMigrationFlags: ({ existingFlags, proposedFlags, }: {
20
- existingFlags: Tenant['flags'];
21
- proposedFlags: Tenant['flags'];
22
- }) => Tenant['flags'];
19
+ export declare const allowedTenantFlags: string[];
20
+ export declare const removeUnallowedTenantFlags: (proposedFlags: Tenant['flags'] | undefined) => Tenant['flags'];
@@ -41,11 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.sanitizeMigrationFlags = exports.schema = void 0;
44
+ exports.removeUnallowedTenantFlags = exports.allowedTenantFlags = exports.schema = void 0;
45
45
  const validationError_1 = __importDefault(require("../../validationError"));
46
46
  const default_1 = __importStar(require("./default"));
47
47
  const pages_1 = require("./pages");
48
48
  const utils_1 = require("../../utils");
49
+ const logger_1 = __importDefault(require("../../../logger"));
49
50
  exports.schema = {
50
51
  type: 'object',
51
52
  };
@@ -61,6 +62,7 @@ class TenantHandler extends default_1.default {
61
62
  getType() {
62
63
  return __awaiter(this, void 0, void 0, function* () {
63
64
  const tenant = yield this.client.tenant.getSettings();
65
+ tenant.flags = (0, exports.removeUnallowedTenantFlags)(tenant.flags);
64
66
  this.existing = tenant;
65
67
  blockPageKeys.forEach((key) => {
66
68
  if (tenant[key])
@@ -88,13 +90,12 @@ class TenantHandler extends default_1.default {
88
90
  // Do nothing if not set
89
91
  if (!tenant)
90
92
  return;
91
- const existingTenant = this.existing || (yield this.getType());
92
93
  const updatedTenant = Object.assign({}, tenant);
93
94
  if ('flags' in updatedTenant) {
94
- updatedTenant.flags = (0, exports.sanitizeMigrationFlags)({
95
- existingFlags: existingTenant.flags,
96
- proposedFlags: tenant.flags,
97
- });
95
+ updatedTenant.flags = (0, exports.removeUnallowedTenantFlags)(tenant.flags);
96
+ if (Object.keys(updatedTenant.flags).length === 0) {
97
+ delete updatedTenant.flags;
98
+ }
98
99
  }
99
100
  if (updatedTenant && Object.keys(updatedTenant).length > 0) {
100
101
  yield this.client.tenant.updateSettings(updatedTenant);
@@ -108,30 +109,58 @@ __decorate([
108
109
  (0, default_1.order)('100')
109
110
  ], TenantHandler.prototype, "processChanges", null);
110
111
  exports.default = TenantHandler;
111
- const sanitizeMigrationFlags = ({ existingFlags = {}, proposedFlags = {}, }) => {
112
- /*
113
- Tenants can only update migration flags that are already configured.
114
- If moving configuration from one tenant to another, there may be instances
115
- where different migration flags exist and cause an error on update. This
116
- function removes any migration flags that aren't already present on the target
117
- tenant. See: https://github.com/auth0/auth0-deploy-cli/issues/374
118
- */
119
- const tenantMigrationFlags = [
120
- 'disable_clickjack_protection_headers',
121
- 'enable_mgmt_api_v1',
122
- 'trust_azure_adfs_email_verified_connection_property',
123
- 'include_email_in_reset_pwd_redirect',
124
- 'include_email_in_verify_email_redirect',
125
- ];
126
- return Object.keys(proposedFlags).reduce((acc, proposedKey) => {
127
- const isMigrationFlag = tenantMigrationFlags.includes(proposedKey);
128
- if (!isMigrationFlag)
129
- return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
130
- const keyCurrentlyExists = existingFlags[proposedKey] !== undefined;
131
- if (keyCurrentlyExists)
132
- return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
133
- return acc;
112
+ /*
113
+ Tenant flags are used to facilitate a number of functionalities, some
114
+ public, some internal. The subset of flags that are allowed to be updated
115
+ in the context of the Deploy CLI is based on wether they're publicly exposed
116
+ in the Auth0 API docs:
117
+
118
+ https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings
119
+ */
120
+ exports.allowedTenantFlags = [
121
+ 'change_pwd_flow_v1',
122
+ 'enable_client_connections',
123
+ 'enable_apis_section',
124
+ 'enable_pipeline2',
125
+ 'enable_dynamic_client_registration',
126
+ 'enable_custom_domain_in_emails',
127
+ 'allow_legacy_tokeninfo_endpoint',
128
+ 'enable_legacy_profile',
129
+ 'enable_idtoken_api2',
130
+ 'enable_public_signup_user_exists_error',
131
+ 'allow_legacy_delegation_grant_types',
132
+ 'allow_legacy_ro_grant_types',
133
+ 'enable_sso',
134
+ 'disable_clickjack_protection_headers',
135
+ 'no_disclose_enterprise_connections',
136
+ 'disable_management_api_sms_obfuscation',
137
+ 'enforce_client_authentication_on_passwordless_start',
138
+ 'trust_azure_adfs_email_verified_connection_property',
139
+ 'enable_adfs_waad_email_verification',
140
+ 'revoke_refresh_token_grant',
141
+ 'dashboard_log_streams_next',
142
+ 'dashboard_insights_view',
143
+ 'disable_fields_map_fix',
144
+ 'require_pushed_authorization_requests',
145
+ 'mfa_show_factor_list_on_enrollment',
146
+ ];
147
+ const removeUnallowedTenantFlags = (proposedFlags) => {
148
+ if (proposedFlags === undefined)
149
+ return {};
150
+ const removedFlags = [];
151
+ const filteredFlags = Object.keys(proposedFlags).reduce((acc, proposedKey) => {
152
+ const isAllowedFlag = exports.allowedTenantFlags.includes(proposedKey);
153
+ if (!isAllowedFlag) {
154
+ removedFlags.push(proposedKey);
155
+ return acc;
156
+ }
157
+ return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
134
158
  }, {});
159
+ if (removedFlags.length > 0) {
160
+ logger_1.default.warn(`The following tenant flag${removedFlags.length > 1 ? 's have not been' : ' has not been'} updated because deemed incompatible with the target tenant: ${removedFlags.join(', ')}
161
+ ${removedFlags.length > 1 ? 'These flags' : 'This flag'} can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.`);
162
+ }
163
+ return filteredFlags;
135
164
  };
136
- exports.sanitizeMigrationFlags = sanitizeMigrationFlags;
165
+ exports.removeUnallowedTenantFlags = removeUnallowedTenantFlags;
137
166
  //# sourceMappingURL=tenant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/tenant.ts"],"names":[],"mappings":";;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AAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAChD,gEAAgE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;QAErF,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAC5C,oIAAoI,CACrI,CAAC;KACH;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAjCW,QAAA,0BAA0B,8BAiCrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-deploy-cli",
3
- "version": "7.17.3",
3
+ "version": "7.17.5",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {