auth0-deploy-cli 7.2.1 → 7.3.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.
@@ -1 +1 @@
1
- {"parent":null,"pid":218,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1629732347816,"ppid":207,"coverageFilename":"/home/circleci/repo/.nyc_output/67412bf7-a953-439f-b12a-52cd20c50740.json","externalId":"","uuid":"67412bf7-a953-439f-b12a-52cd20c50740","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
+ {"parent":null,"pid":218,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1643234031516,"ppid":207,"coverageFilename":"/home/circleci/repo/.nyc_output/284c60ec-1813-41e7-aaba-fb71f2d61f85.json","externalId":"","uuid":"284c60ec-1813-41e7-aaba-fb71f2d61f85","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":{"67412bf7-a953-439f-b12a-52cd20c50740":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/constants.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/deploy.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/client.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/utils.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/logger.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/schema.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/ValidationError.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/logger.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/utils.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/defaults.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/readonly.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/args.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/commands/index.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/commands/import.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/configFactory.js":["67412bf7-a953-439f-b12a-52cd20c50740"],"/home/circleci/repo/src/commands/export.js":["67412bf7-a953-439f-b12a-52cd20c50740"]},"externalIds":{}}
1
+ {"processes":{"284c60ec-1813-41e7-aaba-fb71f2d61f85":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/constants.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/deploy.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/client.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/utils.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/logger.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/schema.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/ValidationError.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/logger.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/utils.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/defaults.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/readonly.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/args.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/commands/index.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/commands/import.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/configFactory.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"],"/home/circleci/repo/src/commands/export.js":["284c60ec-1813-41e7-aaba-fb71f2d61f85"]},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.3.3] - 2022-01-26
11
+ ### Fixed
12
+ - Fix pagination [#400]
13
+
14
+ ### Security
15
+ - Security fixes from dependencies
16
+
17
+ ## [7.3.2] - 2021-12-14
18
+ ### Security
19
+ - Fixes dependency security issues
20
+
21
+ ## [7.3.1] - 2021-09-21
22
+ ### Fixed
23
+ - Error when authenticating with AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET with Node.js prior to v14
24
+
25
+ ## [7.3.0] - 2021-09-20
26
+ ### Added
27
+ - Allow set of AUTH0_AUDIENCE for custom domain [#379] (credit @AliBazzi)
28
+
29
+ ### Fixed
30
+ - Load file configured in customScripts for DB Connections [#367] (credit @skukx)
31
+
32
+ ### Security
33
+ - Security fixes from dependencies
34
+
10
35
  ## [7.2.1] - 2021-08-23
11
36
  ### Fixed
12
37
  - [IDS-3074] Updated structure when dumping orgs (#369)
@@ -372,8 +397,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
372
397
  [#356]: https://github.com/auth0/auth0-deploy-cli/issues/356
373
398
  [#361]: https://github.com/auth0/auth0-deploy-cli/issues/361
374
399
  [#364]: https://github.com/auth0/auth0-deploy-cli/issues/364
375
-
376
- [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.2.1...HEAD
400
+ [#367]: https://github.com/auth0/auth0-deploy-cli/issues/367
401
+ [#379]: https://github.com/auth0/auth0-deploy-cli/issues/379
402
+ [#400]: https://github.com/auth0/auth0-deploy-cli/issues/400
403
+
404
+ [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.3...HEAD
405
+ [7.3.3]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.2...v7.3.3
406
+ [7.3.2]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.1...v7.3.2
407
+ [7.3.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.0...v7.3.1
408
+ [7.3.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.2.1...v7.3.0
377
409
  [7.2.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.2.0...v7.2.1
378
410
  [7.2.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.1.1...v7.2.0
379
411
  [7.1.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.1.0...v7.1.1
@@ -48,17 +48,17 @@ function getDatabase(folder, mappings) {
48
48
  })
49
49
  }
50
50
  };
51
- (0, _utils.getFiles)(folder, ['.js']).forEach(file => {
52
- const {
53
- name
54
- } = _path2.default.parse(file);
55
-
56
- if (!_tools.constants.DATABASE_SCRIPTS.includes(name)) {
57
- _logger2.default.warn('Skipping invalid database script file: ' + file);
58
- } else {
59
- database.options.customScripts[name] = (0, _tools.loadFile)(file, mappings);
60
- }
61
- });
51
+
52
+ if (database.options.customScripts) {
53
+ Object.entries(database.options.customScripts).forEach(([name, script]) => {
54
+ if (!_tools.constants.DATABASE_SCRIPTS.includes(name)) {
55
+ _logger2.default.warn('Skipping invalid database configuration: ' + name);
56
+ } else {
57
+ database.options.customScripts[name] = (0, _tools.loadFile)(_path2.default.join(folder, script), mappings);
58
+ }
59
+ });
60
+ }
61
+
62
62
  return database;
63
63
  }
64
64
 
@@ -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 cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
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) {
@@ -26,7 +26,7 @@ exports.default = async function (config) {
26
26
  clientSecret: config.AUTH0_CLIENT_SECRET
27
27
  });
28
28
  const clientCredentials = await authClient.clientCredentialsGrant({
29
- audience: `https://${config.AUTH0_DOMAIN}/api/v2/`
29
+ audience: config.AUTH0_AUDIENCE ? config.AUTH0_AUDIENCE : `https://${config.AUTH0_DOMAIN}/api/v2/`
30
30
  });
31
31
  accessToken = clientCredentials.access_token;
32
32
  }
@@ -29,50 +29,101 @@ 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: target[name]
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: target[name]
54
+ }).promise();
55
+ const entities = getEntity(rsp);
56
+
57
+ if (entities.length === 0) {
58
+ done = true;
59
+ } else {
60
+ data.push(...entities);
61
+ newArgs.from = rsp.next;
62
+ }
63
+ }
64
+
65
+ if (data.length !== total) {
66
+ throw new Error('Fail to load data from tenant');
67
+ }
68
+
69
+ return data;
70
+ };
71
+ }
72
+
73
+ function pagePaginator(client, target, name) {
74
+ return async function (...args) {
75
+ const data = [];
76
+ const newArgs = [...args];
77
+ newArgs[0] = { ...newArgs[0],
78
+ page: 0
79
+ };
80
+ const perPage = newArgs[0].per_page || MAX_PAGE_SIZE;
81
+ newArgs[0].per_page = perPage;
82
+ delete newArgs[0].paginate;
83
+ const rsp = await client.pool.addSingleTask({
84
+ data: _lodash2.default.cloneDeep(newArgs),
85
+ generator: pageArgs => target[name](...pageArgs)
86
+ }).promise();
87
+ data.push(...getEntity(rsp));
88
+ const total = rsp.total || 0;
89
+ const pagesLeft = Math.ceil(total / perPage) - 1;
90
+
91
+ if (pagesLeft > 0) {
92
+ const pages = await client.pool.addEachTask({
93
+ data: Array.from(Array(pagesLeft).keys()),
94
+ generator: page => {
95
+ const pageArgs = _lodash2.default.cloneDeep(newArgs);
96
+
97
+ pageArgs[0].page = page + 1;
98
+ return target[name](...pageArgs).then(r => getEntity(r));
99
+ }
100
+ }).promise();
101
+ data.push(...(0, _utils.flatten)(pages));
102
+
103
+ if (data.length !== total) {
104
+ throw new Error('Fail to load data from tenant');
105
+ }
106
+ }
107
+
108
+ return data;
109
+ };
110
+ }
111
+
32
112
  function pagedManager(client, manager) {
33
113
  return new Proxy(manager, {
34
114
  get: function (target, name, receiver) {
35
115
  if (name === 'getAll') {
36
116
  return async function (...args) {
37
- if (args[0] && typeof args[0] === 'object' && args[0].paginate) {
38
- const fnName = name;
39
- const data = [];
40
- const newArgs = [...args];
41
- newArgs[0] = { ...newArgs[0],
42
- page: 0
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
- }
117
+ switch (true) {
118
+ case args[0] && typeof args[0] === 'object' && args[0].checkpoint:
119
+ return checkpointPaginator(client, target, name)(...args);
120
+
121
+ case args[0] && typeof args[0] === 'object' && args[0].paginate:
122
+ return pagePaginator(client, target, name)(...args);
74
123
 
75
- return target[name](...args);
124
+ default:
125
+ return target[name](...args);
126
+ }
76
127
  };
77
128
  }
78
129
 
@@ -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 cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
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;
@@ -179,7 +179,7 @@ let OrganizationsHandler = (_dec = (0, _default.order)('70'), (_class = class Or
179
179
 
180
180
  try {
181
181
  const organizations = await this.client.organizations.getAll({
182
- paginate: true,
182
+ checkpoint: true,
183
183
  include_totals: true
184
184
  });
185
185
 
@@ -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 cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
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 cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
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.2.1",
3
+ "version": "7.3.3",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -29,14 +29,14 @@
29
29
  "homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
30
30
  "dependencies": {
31
31
  "ajv": "^6.12.6",
32
- "auth0": "^2.35.1",
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",
36
36
  "js-yaml": "^4.1.0",
37
37
  "lodash": "^4.17.20",
38
38
  "mkdirp": "^0.5.1",
39
- "nconf": "^0.8.4",
39
+ "nconf": "^0.11.0",
40
40
  "promise-pool-executor": "^1.1.1",
41
41
  "sanitize-filename": "^1.6.1",
42
42
  "winston": "^2.3.0",
@@ -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": "^7.2.0",
64
+ "mocha": "^9.1.3",
65
65
  "nyc": "^15.0.1",
66
66
  "rimraf": "^3.0.2",
67
67
  "rmdir-sync": "^1.0.1"