auth0-deploy-cli 7.17.0 → 7.17.1
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/7746620e-e4aa-4851-a0e0-8720b493c434.json +1 -0
- package/.nyc_output/processinfo/{73505b6e-6da0-4037-bbc8-712305a3c506.json → 7746620e-e4aa-4851-a0e0-8720b493c434.json} +1 -1
- package/.nyc_output/processinfo/8e8d4fa2-9be8-4228-b4c1-c9b7e72c99ea.json +1 -0
- package/.nyc_output/processinfo/cf32e35e-b65d-442d-bf1a-0484952dc58e.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +11 -1
- package/coverage/lcov-report/index.html +15 -15
- package/coverage/lcov-report/src/args.ts.html +1 -1
- package/coverage/lcov-report/src/commands/export.ts.html +1 -1
- package/coverage/lcov-report/src/commands/import.ts.html +1 -1
- package/coverage/lcov-report/src/commands/index.html +1 -1
- package/coverage/lcov-report/src/configFactory.ts.html +1 -1
- package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +8 -2
- package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/index.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/index.html +10 -10
- package/coverage/lcov-report/src/context/directory/index.ts.html +10 -7
- package/coverage/lcov-report/src/context/index.html +1 -1
- package/coverage/lcov-report/src/context/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/index.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/index.html +1 -1
- package/coverage/lcov-report/src/context/yaml/index.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/keywordPreservation.ts.html +1 -1
- package/coverage/lcov-report/src/logger.ts.html +2 -2
- package/coverage/lcov-report/src/readonly.ts.html +1 -1
- package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/client.ts.html +29 -29
- package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +20 -20
- package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +60 -60
- package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/index.html +5 -5
- package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/index.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
- package/coverage/lcov-report/src/tools/calculateChanges.ts.html +27 -27
- package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
- package/coverage/lcov-report/src/tools/deploy.ts.html +16 -4
- package/coverage/lcov-report/src/tools/index.html +4 -4
- package/coverage/lcov-report/src/tools/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/utils.ts.html +17 -17
- package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
- package/coverage/lcov-report/src/types.ts.html +1 -1
- package/coverage/lcov-report/src/utils.ts.html +1 -1
- package/coverage/lcov.info +382 -377
- package/docs/keyword-replacement.md +1 -1
- package/lib/context/directory/handlers/clientGrants.js +2 -0
- package/lib/context/directory/handlers/clientGrants.js.map +1 -1
- package/lib/context/directory/index.js +2 -1
- package/lib/context/directory/index.js.map +1 -1
- package/lib/tools/auth0/handlers/clients.js +1 -1
- package/lib/tools/auth0/handlers/clients.js.map +1 -1
- package/lib/tools/deploy.js +1 -1
- package/lib/tools/deploy.js.map +1 -1
- package/package.json +1 -1
- package/.nyc_output/73505b6e-6da0-4037-bbc8-712305a3c506.json +0 -1
- package/.nyc_output/processinfo/228b255c-8229-401b-8754-061636784d5c.json +0 -1
- package/.nyc_output/processinfo/263ade2e-33b2-4e70-aec3-ff4e99fd5b5c.json +0 -1
- /package/.nyc_output/{228b255c-8229-401b-8754-061636784d5c.json → 8e8d4fa2-9be8-4228-b4c1-c9b7e72c99ea.json} +0 -0
- /package/.nyc_output/{263ade2e-33b2-4e70-aec3-ff4e99fd5b5c.json → cf32e35e-b65d-442d-bf1a-0484952dc58e.json} +0 -0
|
@@ -64,7 +64,7 @@ Generally, the Deploy CLI works best when operating in a uni-directional workflo
|
|
|
64
64
|
|
|
65
65
|
The keyword preservation functionality will attempt to preserve as many keywords while also maintaining the accuracy of your resource configuration files. And it the majority of cases, it will work without any intervention by the user. However, some key limitations exist:
|
|
66
66
|
|
|
67
|
-
- In the case of a keyword-replaced configuration field with differing values between local and remote, the local configuration value will _always_ be favored. This will
|
|
67
|
+
- In the case of a keyword-replaced configuration field with differing values between local and remote, the local configuration value will _always_ be favored. This will cause **any out-of-band changes on remote to be wiped away** if a keyword replace marker exists anywhere in that field's value in the resource definition file; there is no "intelligent" reconciliation.
|
|
68
68
|
- Arrays without a specific identifiers are not eligible for preservation. Ex: `[ "http://site.com/logout", "localhost:3000/logout", "##LOGOUT_URL##" ]`. This is because the ordering of these values are non-deterministic. Alternatively, to preserve these values, it is recommended to leverage the `@@ARRAY_REPLACE@@` keyword replace syntax with the entire value.
|
|
69
69
|
|
|
70
70
|
To learn more about the history and technical challenges of of keyword preservation, refer to [RFC: Keyword Preservation During Export](https://github.com/auth0/auth0-deploy-cli/issues/688).
|
|
@@ -42,9 +42,11 @@ function dump(context) {
|
|
|
42
42
|
return;
|
|
43
43
|
const allResourceServers = yield context.mgmtClient.resourceServers.getAll({
|
|
44
44
|
paginate: true,
|
|
45
|
+
include_totals: true,
|
|
45
46
|
});
|
|
46
47
|
const allClients = yield context.mgmtClient.clients.getAll({
|
|
47
48
|
paginate: true,
|
|
49
|
+
include_totals: true,
|
|
48
50
|
});
|
|
49
51
|
// Convert client_id to the client name for readability
|
|
50
52
|
clientGrants.forEach((grant) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientGrants.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/clientGrants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,0CAA2C;AAE3C,0CAOwB;AAQxB,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAS,CAAC,wBAAwB,CAAC,CAAC;IACrF,IAAI,CAAC,IAAA,uBAAe,EAAC,YAAY,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAE1E,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,YAAY,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAErD,MAAM,YAAY,GAAG,UAAU;SAC5B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,IAAA,gBAAQ,EAAC,CAAC,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;KAC7D,CAAC,CACH;SACA,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC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BAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;oBAClD,OAAO,MAAM,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;gBAC9C,CAAC,CAAC,CAAC;gBAEH,IAAI,gBAAgB,KAAK,SAAS;oBAAE,OAAO,KAAK,CAAC,SAAS,CAAC;gBAE3D,OAAO,gBAAgB,CAAC,IAAI,CAAC;YAC/B,CAAC,CAAC,EAAE,CAAC;YAEL,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE;gBACpB,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE;oBAC/D,OAAO,cAAc,CAAC,UAAU,KAAK,KAAK,CAAC,QAAQ,CAAC;gBACtD,CAAC,CAAC,CAAC;gBAEH,IAAI,aAAa,KAAK,SAAS;oBAAE,OAAO,KAAK,CAAC,QAAQ,CAAC;gBAEvD,OAAO,aAAa,CAAC,IAAI,CAAC;YAC5B,CAAC,CAAC,EAAE,CAAC;YAEL,MAAM,IAAI,GAAG,IAAA,gBAAQ,EAAC,GAAG,UAAU,IAAI,OAAO,EAAE,CAAC,CAAC;YAClD,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,IAAI,OAAO,CAAC,CAAC;YAE1D,IAAA,gBAAQ,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,mBAAmB,GAAyC;IAChE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const tools_1 = require("../../tools");
|
|
40
|
+
const client_1 = __importDefault(require("../../tools/auth0/client"));
|
|
40
41
|
const readonly_1 = __importDefault(require("../../readonly"));
|
|
41
42
|
const logger_1 = __importDefault(require("../../logger"));
|
|
42
43
|
const handlers_1 = __importDefault(require("./handlers"));
|
|
@@ -48,7 +49,7 @@ class DirectoryContext {
|
|
|
48
49
|
this.filePath = config.AUTH0_INPUT_FILE;
|
|
49
50
|
this.config = config;
|
|
50
51
|
this.mappings = config.AUTH0_KEYWORD_REPLACE_MAPPINGS || {};
|
|
51
|
-
this.mgmtClient = mgmtClient;
|
|
52
|
+
this.mgmtClient = (0, client_1.default)(mgmtClient);
|
|
52
53
|
this.disableKeywordReplacement = false;
|
|
53
54
|
//@ts-ignore for now
|
|
54
55
|
this.assets = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/directory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,uCAAgE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/directory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,uCAAgE;AAChE,sEAAmD;AAEnD,8DAAyC;AACzC,0DAA+B;AAC/B,0DAAwD;AACxD,uCAAgF;AAEhF,0BAAqD;AACrD,mEAA6D;AAI7D,MAAqB,gBAAgB;IASnC,YAAY,MAAc,EAAE,UAA0B;QACpD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,8BAA8B,IAAI,EAAE,CAAC;QAC5D,IAAI,CAAC,UAAU,GAAG,IAAA,gBAAW,EAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;QAEvC,oBAAoB;QACpB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;Q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AAM,CAAC,mBAAmB,CAAC,CAAC;iBACxE,GAAG,CAAC,CAAO,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;gBAC7B,IAAI;oBACF,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBAC1B;gBAAC,OAAO,GAAG,EAAE;oBACZ,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACrB,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;iBAC9C;YACH,CAAC,CAAA,CAAC,CACL,CAAC;QACJ,CAAC;KAAA;CACF;AAxHD,mCAwHC"}
|
|
@@ -51,7 +51,7 @@ class ClientHandler extends default_1.default {
|
|
|
51
51
|
const { del, update, create, conflicts } = yield this.calcChanges(assets);
|
|
52
52
|
// Always filter out the client we are using to access Auth0 Management API
|
|
53
53
|
// As it could cause problems if it gets deleted or updated etc
|
|
54
|
-
const currentClient = this.config('AUTH0_CLIENT_ID');
|
|
54
|
+
const currentClient = this.config('AUTH0_CLIENT_ID') || '';
|
|
55
55
|
const filterClients = (list) => {
|
|
56
56
|
if (excludedClients.length) {
|
|
57
57
|
return list.filter((item) => item.client_id !== currentClient && !excludedClients.includes(item.name));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wDAA0C;AAE7B,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;SAC1D;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;CACF,CAAC;AASF,MAAqB,aAAc,SAAQ,iBAAiB;IAG1D,YAAY,MAAy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I,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CACnF,CAAC;iBACH;gBAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,aAAa,CAAC,CAAC;YACjE,CAAC,CAAC;YAEF,MAAM,OAAO,GAAG;gBACd,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC;gBACvB,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;gBAC7B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;gBAC7B,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC;aACpC,CAAC;YAEF,MAAM,OAAM,cAAc,YAAC,MAAM,oBAC5B,OAAO,EACV,CAAC;QACL,CAAC;KAAA;IAEK,OAAO;;YACX,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;YACxC,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;gBAC/C,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE,IAAI;gBACpB,SAAS,EAAE,KAAK;aACjB,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;KAAA;CACF;AAtED,gCAsEC"}
|
package/lib/tools/deploy.js
CHANGED
|
@@ -18,7 +18,7 @@ function deploy(assets, client, config) {
|
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
// Setup log level
|
|
20
20
|
logger_1.default.level = process.env.AUTH0_DEBUG === 'true' ? 'debug' : 'info';
|
|
21
|
-
logger_1.default.info(
|
|
21
|
+
logger_1.default.info(`Getting access token for ${config('AUTH0_CLIENT_ID') !== undefined ? `${config('AUTH0_CLIENT_ID')}/` : ''}${config('AUTH0_DOMAIN')}`);
|
|
22
22
|
const auth0 = new auth0_1.default(client, assets, config);
|
|
23
23
|
// Validate Assets
|
|
24
24
|
yield auth0.validate();
|
package/lib/tools/deploy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/tools/deploy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,uDAA4B;AAI5B,SAA8B,MAAM,CAClC,MAAc,EACd,MAAsB,EACtB,MAAsB;;QAEtB,kBAAkB;QAClB,gBAAG,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;QAElE,gBAAG,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/tools/deploy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,uDAA4B;AAI5B,SAA8B,MAAM,CAClC,MAAc,EACd,MAAsB,EACtB,MAAsB;;QAEtB,kBAAkB;QAClB,gBAAG,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;QAElE,gBAAG,CAAC,IAAI,CACN,4BACE,MAAM,CAAC,iBAAiB,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAC9E,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE,CAC5B,CAAC;QAEF,MAAM,KAAK,GAAG,IAAI,eAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAEhD,kBAAkB;QAClB,MAAM,KAAK,CAAC,QAAQ,EAAE,CAAC;QAEvB,kBAAkB;QAClB,MAAM,KAAK,CAAC,cAAc,EAAE,CAAC;QAE7B,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE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