auth0-deploy-cli 3.6.5 → 3.6.8
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/{e5257b1b6543a782db5dbf81de34a7b4.json → 3b5598b919f188c8205da9fdc62663a9.json} +0 -0
- package/.nyc_output/520cb11df05560c6cd204f494108f8e2.json +1 -0
- package/CHANGELOG.md +4 -0
- package/lib/context/directory/handlers/roles.js +2 -1
- package/lib/context/index.js +25 -0
- package/package.json +1 -2
- package/.nyc_output/82a0ef326338d0b99e9106762414c905.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
## [3.6.8] - 2022-03-15
|
|
9
|
+
### Removed
|
|
10
|
+
- `es6-template-strings` dependency that contained political messaging. See: [ESD-18640](https://auth0team.atlassian.net/browse/ESD-18640)
|
|
7
11
|
## [3.5.0] - 2019-08-14
|
|
8
12
|
### Added
|
|
9
13
|
- Ability to exclude connections and databases (AUTH0_EXCLUDED_CONNECTIONS & AUTH0_EXCLUDED_DATABASES)
|
|
@@ -42,7 +42,8 @@ function parse(context) {
|
|
|
42
42
|
|
|
43
43
|
async function dump(context) {
|
|
44
44
|
const { roles } = context.assets;
|
|
45
|
-
|
|
45
|
+
|
|
46
|
+
if (!roles || roles.constructor === Object) return;
|
|
46
47
|
|
|
47
48
|
const rolesFolder = _path2.default.join(context.filePath, _auth0SourceControlExtensionTools.constants.ROLES_DIRECTORY);
|
|
48
49
|
_fsExtra2.default.ensureDirSync(rolesFolder);
|
package/lib/context/index.js
CHANGED
|
@@ -20,8 +20,14 @@ var _directory2 = _interopRequireDefault(_directory);
|
|
|
20
20
|
|
|
21
21
|
var _utils = require('../utils');
|
|
22
22
|
|
|
23
|
+
var _logger = require('../logger');
|
|
24
|
+
|
|
25
|
+
var _logger2 = _interopRequireDefault(_logger);
|
|
26
|
+
|
|
23
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
28
|
|
|
29
|
+
const nonPrimitiveProps = ['AUTH0_KEYWORD_REPLACE_MAPPINGS', 'AUTH0_EXCLUDED_RULES', 'AUTH0_EXCLUDED_CLIENTS', 'AUTH0_EXCLUDED_DATABASES', 'AUTH0_EXCLUDED_CONNECTIONS', 'AUTH0_EXCLUDED_RESOURCE_SERVERS', 'EXCLUDED_PROPS', 'INCLUDED_PROPS'];
|
|
30
|
+
|
|
25
31
|
exports.default = async function (config) {
|
|
26
32
|
const errors = [];
|
|
27
33
|
|
|
@@ -56,6 +62,25 @@ exports.default = async function (config) {
|
|
|
56
62
|
|
|
57
63
|
const inputFile = config.AUTH0_INPUT_FILE;
|
|
58
64
|
|
|
65
|
+
const ensureObject = (key, value) => {
|
|
66
|
+
if (typeof value === 'string') {
|
|
67
|
+
try {
|
|
68
|
+
return JSON.parse(value);
|
|
69
|
+
} catch (e) {
|
|
70
|
+
_logger2.default.debug(`Cannot convert config.${key} to an object. Error: ${e.message}`);
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return value;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
nonPrimitiveProps.forEach(key => {
|
|
79
|
+
if (config[key]) {
|
|
80
|
+
config[key] = ensureObject(key, config[key]);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
59
84
|
if (typeof inputFile === 'object') {
|
|
60
85
|
return new _yaml2.default(config, mgmtClient);
|
|
61
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.8",
|
|
4
4
|
"description": "A command line tool for deploying updates to your Auth0 tenant",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"auth0-extension-tools": "^1.4.4",
|
|
32
32
|
"auth0-source-control-extension-tools": "~3.5.1",
|
|
33
33
|
"dot-prop": "^4.2.0",
|
|
34
|
-
"es6-template-strings": "^2.0.1",
|
|
35
34
|
"fs-extra": "^7.0.0",
|
|
36
35
|
"http-proxy-agent": "^2.0.0",
|
|
37
36
|
"https-proxy-agent": "^2.2.3",
|