theprogrammablemind_4wp 7.3.9-beta.10 → 7.3.9-beta.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +3 -2
package/package.json CHANGED
@@ -61,6 +61,6 @@
61
61
  "json-stable-stringify": "^1.0.1",
62
62
  "node-fetch": "^2.6.1"
63
63
  },
64
- "version": "7.3.9-beta.10",
64
+ "version": "7.3.9-beta.12",
65
65
  "license": "ISC"
66
66
  }
package/src/config.js CHANGED
@@ -1238,7 +1238,7 @@ class Config {
1238
1238
  runtime.fs.writeFileSync(fn, JSON.stringify(this.config, 0, 2))
1239
1239
  }
1240
1240
 
1241
- copy (options = {}) {
1241
+ copy (options = { callInitializers: true }) {
1242
1242
  this.valid()
1243
1243
  const cp = new Config()
1244
1244
  cp.logs = []
@@ -1770,7 +1770,8 @@ class Config {
1770
1770
  // initialize the configs in context
1771
1771
 
1772
1772
  if (callInitializers) {
1773
- this.configs.forEach(({ namespace, uuid, config, isSelf }) => {
1773
+ [...this.configs].reverse().forEach(({ namespace, uuid, config, isSelf }) => {
1774
+ console.log(config.name)
1774
1775
  if (isSelf) {
1775
1776
  config = this
1776
1777
  }