auth0-deploy-cli 7.12.2 → 7.12.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.
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "npm"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "daily"
package/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.12.3] - 2022-05-24
11
+
12
+ ### Fixed
13
+
14
+ - Resource exclusion respected during import even if resource configuration exists [#545]
15
+ - Environment variables ingested by default [#553]
16
+
10
17
  ## [7.12.2] - 2022-05-17
11
18
 
12
19
  ### Fixed
@@ -748,7 +755,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
748
755
  [#532]: https://github.com/auth0/auth0-deploy-cli/issues/532
749
756
  [#541]: https://github.com/auth0/auth0-deploy-cli/issues/541
750
757
  [#542]: https://github.com/auth0/auth0-deploy-cli/issues/542
751
- [unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.12.2...HEAD
758
+ [#545]: https://github.com/auth0/auth0-deploy-cli/issues/545
759
+ [#553]: https://github.com/auth0/auth0-deploy-cli/issues/553
760
+ [unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.12.3...HEAD
761
+ [7.12.3]: https://github.com/auth0/auth0-deploy-cli/compare/v7.12.2...v7.12.3
752
762
  [7.12.2]: https://github.com/auth0/auth0-deploy-cli/compare/v7.12.1...v7.12.2
753
763
  [7.12.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.12.0...v7.12.1
754
764
  [7.12.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.11.1...v7.12.0
package/lib/args.js CHANGED
@@ -70,7 +70,7 @@ function getParams() {
70
70
  env: {
71
71
  describe: 'Override the mappings in config with environment variables.',
72
72
  boolean: true,
73
- default: false,
73
+ default: true,
74
74
  },
75
75
  export_ids: {
76
76
  alias: 'e',
@@ -73,7 +73,12 @@ class DirectoryContext {
73
73
  if ((0, utils_1.isDirectory)(this.filePath)) {
74
74
  /* If this is a directory, look for each file in the directory */
75
75
  logger_1.default.info(`Processing directory ${this.filePath}`);
76
- Object.values(handlers_1.default).forEach((handler) => {
76
+ Object.entries(handlers_1.default)
77
+ .filter(([handlerName]) => {
78
+ const excludedAssetTypes = this.config.AUTH0_EXCLUDED || [];
79
+ return !excludedAssetTypes.includes(handlerName);
80
+ })
81
+ .forEach(([_name, handler]) => {
77
82
  const parsed = handler.parse(this);
78
83
  Object.entries(parsed).forEach(([k, v]) => {
79
84
  this.assets[k] = v;
@@ -69,6 +69,13 @@ class YAMLContext {
69
69
  throw new Error(`Problem loading ${this.configFile}\n${err}`);
70
70
  }
71
71
  }
72
+ const excludedAssetsFiltered = Object.keys(this.assets).reduce((acc, key) => {
73
+ const excludedAssetTypes = this.config.AUTH0_EXCLUDED || [];
74
+ if (excludedAssetTypes.includes(key))
75
+ return acc;
76
+ return Object.assign(Object.assign({}, acc), { [key]: this.assets[key] });
77
+ }, {});
78
+ this.assets = excludedAssetsFiltered;
72
79
  // Run initial schema check to ensure valid YAML
73
80
  const auth0 = new tools_1.Auth0(this.mgmtClient, this.assets, (0, utils_1.toConfigFn)(this.config));
74
81
  yield auth0.validate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-deploy-cli",
3
- "version": "7.12.2",
3
+ "version": "7.12.3",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -36,11 +36,11 @@
36
36
  "ajv": "^6.12.6",
37
37
  "auth0": "^2.40.0",
38
38
  "dot-prop": "^5.2.0",
39
- "fs-extra": "^7.0.0",
39
+ "fs-extra": "^10.1.0",
40
40
  "global-agent": "^2.1.12",
41
41
  "js-yaml": "^4.1.0",
42
42
  "lodash": "^4.17.20",
43
- "mkdirp": "^0.5.6",
43
+ "mkdirp": "^1.0.4",
44
44
  "nconf": "^0.12.0",
45
45
  "promise-pool-executor": "^1.1.1",
46
46
  "sanitize-filename": "^1.6.1",