theprogrammablemind_4wp 7.3.6 → 7.3.7

Sign up to get free protection for your applications and to get access to all the features.
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.6",
64
+ "version": "7.3.7",
65
65
  "license": "ISC"
66
66
  }
package/src/config.js CHANGED
@@ -1576,7 +1576,8 @@ class Config {
1576
1576
  })
1577
1577
  }
1578
1578
 
1579
- rebuild ({ isModule: mainIsModule = false } = {}) {
1579
+ // rebuild ({ isModule: mainIsModule = false } = {}) {
1580
+ rebuild ({ isModule: mainIsModule } = {}) {
1580
1581
  const debug = this.config.debug;
1581
1582
  this.config = _.cloneDeep(this.initConfig)
1582
1583
  if (debug) {
@@ -1584,7 +1585,7 @@ class Config {
1584
1585
  }
1585
1586
  // already set
1586
1587
  // this.isModule = this.isModule || mainIsModule
1587
- mainIsModule = this.isModule
1588
+ mainIsModule = (mainIsModule === undefined) ? this.isModule : mainIsModule
1588
1589
  this.config.objects.namespaced = {}
1589
1590
  this.resetWasInitialized()
1590
1591