auth0-deploy-cli 7.3.1 → 7.3.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.
- package/.nyc_output/3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050.json +1 -0
- package/.nyc_output/processinfo/{04420105-57dc-45d4-8ebe-d4d2b384e738.json → 3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050.json} +1 -1
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +28 -2
- package/lib/context/directory/index.js +2 -2
- package/lib/tools/auth0/client.js +88 -38
- package/lib/tools/auth0/handlers/index.js +2 -2
- package/lib/tools/auth0/handlers/organizations.js +1 -1
- package/lib/tools/auth0/index.js +2 -2
- package/lib/tools/auth0/schema.js +2 -2
- package/package.json +3 -3
- package/.nyc_output/04420105-57dc-45d4-8ebe-d4d2b384e738.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"parent":null,"pid":
|
|
1
|
+
{"parent":null,"pid":213,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1643311085617,"ppid":202,"coverageFilename":"/home/circleci/repo/.nyc_output/3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050.json","externalId":"","uuid":"3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050","files":["/home/circleci/repo/src/context/index.js","/home/circleci/repo/src/context/yaml/index.js","/home/circleci/repo/src/tools/index.js","/home/circleci/repo/src/tools/constants.js","/home/circleci/repo/src/tools/deploy.js","/home/circleci/repo/src/tools/auth0/index.js","/home/circleci/repo/src/tools/auth0/client.js","/home/circleci/repo/src/tools/utils.js","/home/circleci/repo/src/tools/logger.js","/home/circleci/repo/src/tools/auth0/schema.js","/home/circleci/repo/src/tools/auth0/handlers/index.js","/home/circleci/repo/src/tools/auth0/handlers/rules.js","/home/circleci/repo/src/tools/ValidationError.js","/home/circleci/repo/src/tools/auth0/handlers/default.js","/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js","/home/circleci/repo/src/tools/auth0/handlers/hooks.js","/home/circleci/repo/src/tools/auth0/handlers/pages.js","/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js","/home/circleci/repo/src/tools/auth0/handlers/databases.js","/home/circleci/repo/src/tools/auth0/handlers/connections.js","/home/circleci/repo/src/tools/auth0/handlers/clients.js","/home/circleci/repo/src/tools/auth0/handlers/tenant.js","/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js","/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js","/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/tools/auth0/handlers/roles.js","/home/circleci/repo/src/tools/auth0/handlers/branding.js","/home/circleci/repo/src/tools/auth0/handlers/prompts.js","/home/circleci/repo/src/tools/auth0/handlers/migrations.js","/home/circleci/repo/src/tools/auth0/handlers/actions.js","/home/circleci/repo/src/tools/auth0/handlers/triggers.js","/home/circleci/repo/src/tools/auth0/handlers/organizations.js","/home/circleci/repo/src/logger.js","/home/circleci/repo/src/utils.js","/home/circleci/repo/src/context/yaml/handlers/index.js","/home/circleci/repo/src/context/yaml/handlers/pages.js","/home/circleci/repo/src/context/yaml/handlers/rules.js","/home/circleci/repo/src/context/yaml/handlers/hooks.js","/home/circleci/repo/src/context/yaml/handlers/clients.js","/home/circleci/repo/src/context/yaml/handlers/tenant.js","/home/circleci/repo/src/context/yaml/handlers/emailProvider.js","/home/circleci/repo/src/context/defaults.js","/home/circleci/repo/src/context/yaml/handlers/connections.js","/home/circleci/repo/src/context/yaml/handlers/databases.js","/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js","/home/circleci/repo/src/context/yaml/handlers/clientGrants.js","/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js","/home/circleci/repo/src/context/yaml/handlers/resourceServers.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js","/home/circleci/repo/src/context/yaml/handlers/roles.js","/home/circleci/repo/src/context/yaml/handlers/organizations.js","/home/circleci/repo/src/context/yaml/handlers/migrations.js","/home/circleci/repo/src/context/yaml/handlers/actions.js","/home/circleci/repo/src/context/yaml/handlers/triggers.js","/home/circleci/repo/src/readonly.js","/home/circleci/repo/src/context/directory/index.js","/home/circleci/repo/src/context/directory/handlers/index.js","/home/circleci/repo/src/context/directory/handlers/pages.js","/home/circleci/repo/src/context/directory/handlers/rules.js","/home/circleci/repo/src/context/directory/handlers/hooks.js","/home/circleci/repo/src/context/directory/handlers/clients.js","/home/circleci/repo/src/context/directory/handlers/tenant.js","/home/circleci/repo/src/context/directory/handlers/emailProvider.js","/home/circleci/repo/src/context/directory/handlers/connections.js","/home/circleci/repo/src/context/directory/handlers/databases.js","/home/circleci/repo/src/context/directory/handlers/emailTemplates.js","/home/circleci/repo/src/context/directory/handlers/clientGrants.js","/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js","/home/circleci/repo/src/context/directory/handlers/resourceServers.js","/home/circleci/repo/src/context/directory/handlers/guardianFactors.js","/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js","/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js","/home/circleci/repo/src/context/directory/handlers/roles.js","/home/circleci/repo/src/context/directory/handlers/migrations.js","/home/circleci/repo/src/context/directory/handlers/actions.js","/home/circleci/repo/src/context/directory/handlers/organizations.js","/home/circleci/repo/src/context/directory/handlers/triggers.js","/home/circleci/repo/src/index.js","/home/circleci/repo/src/args.js","/home/circleci/repo/src/commands/index.js","/home/circleci/repo/src/commands/import.js","/home/circleci/repo/src/configFactory.js","/home/circleci/repo/src/commands/export.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/constants.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/deploy.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/client.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/utils.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/logger.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/schema.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/ValidationError.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/logger.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/utils.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/defaults.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/readonly.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/args.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/commands/index.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/commands/import.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/configFactory.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"],"/home/circleci/repo/src/commands/export.js":["3aaf2f9d-fd3b-4d98-8c6b-8ba83b332050"]},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [7.3.5] - 2022-01-27
|
|
11
|
+
### Fixed
|
|
12
|
+
- Fix an error with the function context [#403]
|
|
13
|
+
|
|
14
|
+
## [7.3.4] - 2022-01-26
|
|
15
|
+
### Fixed
|
|
16
|
+
- Fix pagination [#401]
|
|
17
|
+
|
|
18
|
+
## [7.3.3] - 2022-01-26
|
|
19
|
+
### Fixed
|
|
20
|
+
- Fix pagination [#400]
|
|
21
|
+
|
|
22
|
+
### Security
|
|
23
|
+
- Security fixes from dependencies
|
|
24
|
+
|
|
25
|
+
## [7.3.2] - 2021-12-14
|
|
26
|
+
### Security
|
|
27
|
+
- Fixes dependency security issues
|
|
28
|
+
|
|
10
29
|
## [7.3.1] - 2021-09-21
|
|
11
30
|
### Fixed
|
|
12
31
|
- Error when authenticating with AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET with Node.js prior to v14
|
|
@@ -388,8 +407,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
388
407
|
[#364]: https://github.com/auth0/auth0-deploy-cli/issues/364
|
|
389
408
|
[#367]: https://github.com/auth0/auth0-deploy-cli/issues/367
|
|
390
409
|
[#379]: https://github.com/auth0/auth0-deploy-cli/issues/379
|
|
391
|
-
|
|
392
|
-
[
|
|
410
|
+
[#400]: https://github.com/auth0/auth0-deploy-cli/issues/400
|
|
411
|
+
[#401]: https://github.com/auth0/auth0-deploy-cli/issues/401
|
|
412
|
+
[#403]: https://github.com/auth0/auth0-deploy-cli/issues/403
|
|
413
|
+
|
|
414
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.5...HEAD
|
|
415
|
+
[7.3.5]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.4...v7.3.5
|
|
416
|
+
[7.3.4]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.3...v7.3.4
|
|
417
|
+
[7.3.3]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.2...v7.3.3
|
|
418
|
+
[7.3.2]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.1...v7.3.2
|
|
393
419
|
[7.3.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.0...v7.3.1
|
|
394
420
|
[7.3.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.2.1...v7.3.0
|
|
395
421
|
[7.2.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.2.0...v7.2.1
|
|
@@ -26,9 +26,9 @@ var _utils = require("../../utils");
|
|
|
26
26
|
|
|
27
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
28
|
|
|
29
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
29
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
30
30
|
|
|
31
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
32
32
|
|
|
33
33
|
exports.default = class {
|
|
34
34
|
constructor(config, mgmtClient) {
|
|
@@ -29,50 +29,100 @@ function getEntity(rsp) {
|
|
|
29
29
|
throw new Error('There was an error trying to find the entity within paginate');
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
function checkpointPaginator(client, target, name) {
|
|
33
|
+
return async function (...args) {
|
|
34
|
+
const data = [];
|
|
35
|
+
|
|
36
|
+
const {
|
|
37
|
+
checkpoint,
|
|
38
|
+
...newArgs
|
|
39
|
+
} = _lodash2.default.cloneDeep(args[0]);
|
|
40
|
+
|
|
41
|
+
const {
|
|
42
|
+
total
|
|
43
|
+
} = await client.pool.addSingleTask({
|
|
44
|
+
data: newArgs,
|
|
45
|
+
generator: requestArgs => target[name](requestArgs)
|
|
46
|
+
}).promise();
|
|
47
|
+
let done = false;
|
|
48
|
+
newArgs.take = 50;
|
|
49
|
+
|
|
50
|
+
while (!done) {
|
|
51
|
+
const rsp = await client.pool.addSingleTask({
|
|
52
|
+
data: newArgs,
|
|
53
|
+
generator: requestArgs => target[name](requestArgs)
|
|
54
|
+
}).promise();
|
|
55
|
+
data.push(...getEntity(rsp));
|
|
56
|
+
|
|
57
|
+
if (!rsp.next) {
|
|
58
|
+
done = true;
|
|
59
|
+
} else {
|
|
60
|
+
newArgs.from = rsp.next;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (data.length !== total) {
|
|
65
|
+
throw new Error('Fail to load data from tenant');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return data;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function pagePaginator(client, target, name) {
|
|
73
|
+
return async function (...args) {
|
|
74
|
+
const data = [];
|
|
75
|
+
const newArgs = [...args];
|
|
76
|
+
newArgs[0] = { ...newArgs[0],
|
|
77
|
+
page: 0
|
|
78
|
+
};
|
|
79
|
+
const perPage = newArgs[0].per_page || MAX_PAGE_SIZE;
|
|
80
|
+
newArgs[0].per_page = perPage;
|
|
81
|
+
delete newArgs[0].paginate;
|
|
82
|
+
const rsp = await client.pool.addSingleTask({
|
|
83
|
+
data: _lodash2.default.cloneDeep(newArgs),
|
|
84
|
+
generator: pageArgs => target[name](...pageArgs)
|
|
85
|
+
}).promise();
|
|
86
|
+
data.push(...getEntity(rsp));
|
|
87
|
+
const total = rsp.total || 0;
|
|
88
|
+
const pagesLeft = Math.ceil(total / perPage) - 1;
|
|
89
|
+
|
|
90
|
+
if (pagesLeft > 0) {
|
|
91
|
+
const pages = await client.pool.addEachTask({
|
|
92
|
+
data: Array.from(Array(pagesLeft).keys()),
|
|
93
|
+
generator: page => {
|
|
94
|
+
const pageArgs = _lodash2.default.cloneDeep(newArgs);
|
|
95
|
+
|
|
96
|
+
pageArgs[0].page = page + 1;
|
|
97
|
+
return target[name](...pageArgs).then(r => getEntity(r));
|
|
98
|
+
}
|
|
99
|
+
}).promise();
|
|
100
|
+
data.push(...(0, _utils.flatten)(pages));
|
|
101
|
+
|
|
102
|
+
if (data.length !== total) {
|
|
103
|
+
throw new Error('Fail to load data from tenant');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return data;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
32
111
|
function pagedManager(client, manager) {
|
|
33
112
|
return new Proxy(manager, {
|
|
34
113
|
get: function (target, name, receiver) {
|
|
35
114
|
if (name === 'getAll') {
|
|
36
115
|
return async function (...args) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
const perPage = newArgs[0].per_page || MAX_PAGE_SIZE;
|
|
45
|
-
newArgs[0].per_page = perPage;
|
|
46
|
-
delete newArgs[0].paginate;
|
|
47
|
-
const rsp = await client.pool.addSingleTask({
|
|
48
|
-
data: _lodash2.default.cloneDeep(newArgs),
|
|
49
|
-
generator: pageArgs => target[fnName](...pageArgs)
|
|
50
|
-
}).promise();
|
|
51
|
-
data.push(...getEntity(rsp));
|
|
52
|
-
const total = rsp.total || 0;
|
|
53
|
-
const pagesLeft = Math.ceil(total / perPage) - 1;
|
|
54
|
-
|
|
55
|
-
if (pagesLeft > 0) {
|
|
56
|
-
const pages = await client.pool.addEachTask({
|
|
57
|
-
data: Array.from(Array(pagesLeft).keys()),
|
|
58
|
-
generator: page => {
|
|
59
|
-
const pageArgs = _lodash2.default.cloneDeep(newArgs);
|
|
60
|
-
|
|
61
|
-
pageArgs[0].page = page + 1;
|
|
62
|
-
return target[fnName](...pageArgs).then(r => getEntity(r));
|
|
63
|
-
}
|
|
64
|
-
}).promise();
|
|
65
|
-
data.push(...(0, _utils.flatten)(pages));
|
|
66
|
-
|
|
67
|
-
if (data.length !== total) {
|
|
68
|
-
throw new Error('Fail to load data from tenant');
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return data;
|
|
73
|
-
}
|
|
116
|
+
switch (true) {
|
|
117
|
+
case args[0] && typeof args[0] === 'object' && args[0].checkpoint:
|
|
118
|
+
return checkpointPaginator(client, target, name)(...args);
|
|
119
|
+
|
|
120
|
+
case args[0] && typeof args[0] === 'object' && args[0].paginate:
|
|
121
|
+
return pagePaginator(client, target, name)(...args);
|
|
74
122
|
|
|
75
|
-
|
|
123
|
+
default:
|
|
124
|
+
return target[name](...args);
|
|
125
|
+
}
|
|
76
126
|
};
|
|
77
127
|
}
|
|
78
128
|
|
|
@@ -105,9 +105,9 @@ var _organizations = require("./organizations");
|
|
|
105
105
|
|
|
106
106
|
var organizations = _interopRequireWildcard(_organizations);
|
|
107
107
|
|
|
108
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
108
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
109
109
|
|
|
110
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
110
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
111
111
|
|
|
112
112
|
exports.rules = rules;
|
|
113
113
|
exports.rulesConfigs = rulesConfigs;
|
package/lib/tools/auth0/index.js
CHANGED
|
@@ -20,9 +20,9 @@ var _handlers = require("./handlers");
|
|
|
20
20
|
|
|
21
21
|
var handlers = _interopRequireWildcard(_handlers);
|
|
22
22
|
|
|
23
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
23
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
24
|
|
|
25
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
26
|
|
|
27
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
28
|
|
|
@@ -8,9 +8,9 @@ var _handlers = require("./handlers");
|
|
|
8
8
|
|
|
9
9
|
var handlers = _interopRequireWildcard(_handlers);
|
|
10
10
|
|
|
11
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
12
|
|
|
13
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
14
|
|
|
15
15
|
const typesSchema = Object.entries(handlers).reduce((map, [name, obj]) => {
|
|
16
16
|
map[name] = obj.schema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.5",
|
|
4
4
|
"description": "A command line tool for deploying updates to your Auth0 tenant",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"ajv": "^6.12.6",
|
|
32
|
-
"auth0": "^2.
|
|
32
|
+
"auth0": "^2.37.0",
|
|
33
33
|
"dot-prop": "^5.2.0",
|
|
34
34
|
"fs-extra": "^7.0.0",
|
|
35
35
|
"global-agent": "^2.1.12",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"eslint-import-resolver-babel-module": "^5.1.2",
|
|
62
62
|
"eslint-plugin-import": "^2.20.2",
|
|
63
63
|
"kacl": "^1.1.1",
|
|
64
|
-
"mocha": "^
|
|
64
|
+
"mocha": "^9.1.3",
|
|
65
65
|
"nyc": "^15.0.1",
|
|
66
66
|
"rimraf": "^3.0.2",
|
|
67
67
|
"rmdir-sync": "^1.0.1"
|