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.
- package/package.json +1 -1
- package/src/config.js +3 -2
package/package.json
CHANGED
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
|
}
|