auth0-deploy-cli 7.3.2 → 7.3.6
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/8cf4dd0c-1f3a-4ac1-899c-8e453a64221e.json +1 -0
- package/.nyc_output/processinfo/{891c5231-0bb9-4324-a2fd-a8a67b3acbd8.json → 8cf4dd0c-1f3a-4ac1-899c-8e453a64221e.json} +1 -1
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +29 -2
- package/lib/tools/auth0/client.js +88 -38
- package/lib/tools/auth0/handlers/organizations.js +1 -1
- package/package.json +2 -2
- package/.nyc_output/891c5231-0bb9-4324-a2fd-a8a67b3acbd8.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"parent":null,"pid":216,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":
|
|
1
|
+
{"parent":null,"pid":216,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1643833408956,"ppid":205,"coverageFilename":"/home/circleci/repo/.nyc_output/8cf4dd0c-1f3a-4ac1-899c-8e453a64221e.json","externalId":"","uuid":"8cf4dd0c-1f3a-4ac1-899c-8e453a64221e","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":{"8cf4dd0c-1f3a-4ac1-899c-8e453a64221e":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/constants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/deploy.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/client.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/utils.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/logger.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/schema.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/ValidationError.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/logger.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/utils.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/defaults.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/readonly.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/args.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/commands/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/commands/import.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/configFactory.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/commands/export.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"]},"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.6] - 2022-02-02
|
|
11
|
+
### Fixed
|
|
12
|
+
- Fix errors caused by incompatibilities introduced by new versions of Auth0 SDK [#406]
|
|
13
|
+
|
|
14
|
+
## [7.3.5] - 2022-01-27
|
|
15
|
+
### Fixed
|
|
16
|
+
- Fix an error with the function context [#403]
|
|
17
|
+
|
|
18
|
+
## [7.3.4] - 2022-01-26
|
|
19
|
+
### Fixed
|
|
20
|
+
- Fix pagination [#401]
|
|
21
|
+
|
|
22
|
+
## [7.3.3] - 2022-01-26
|
|
23
|
+
### Fixed
|
|
24
|
+
- Fix pagination [#400]
|
|
25
|
+
|
|
26
|
+
### Security
|
|
27
|
+
- Security fixes from dependencies
|
|
28
|
+
|
|
10
29
|
## [7.3.2] - 2021-12-14
|
|
11
30
|
### Security
|
|
12
31
|
- Fixes dependency security issues
|
|
@@ -392,8 +411,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
392
411
|
[#364]: https://github.com/auth0/auth0-deploy-cli/issues/364
|
|
393
412
|
[#367]: https://github.com/auth0/auth0-deploy-cli/issues/367
|
|
394
413
|
[#379]: https://github.com/auth0/auth0-deploy-cli/issues/379
|
|
395
|
-
|
|
396
|
-
[
|
|
414
|
+
[#400]: https://github.com/auth0/auth0-deploy-cli/issues/400
|
|
415
|
+
[#401]: https://github.com/auth0/auth0-deploy-cli/issues/401
|
|
416
|
+
[#403]: https://github.com/auth0/auth0-deploy-cli/issues/403
|
|
417
|
+
[#406]: https://github.com/auth0/auth0-deploy-cli/issues/406
|
|
418
|
+
|
|
419
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.6...HEAD
|
|
420
|
+
[7.3.6]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.5...v7.3.6
|
|
421
|
+
[7.3.5]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.4...v7.3.5
|
|
422
|
+
[7.3.4]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.3...v7.3.4
|
|
423
|
+
[7.3.3]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.2...v7.3.3
|
|
397
424
|
[7.3.2]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.1...v7.3.2
|
|
398
425
|
[7.3.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.0...v7.3.1
|
|
399
426
|
[7.3.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.2.1...v7.3.0
|
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.6",
|
|
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": "
|
|
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",
|