theprogrammablemind_4wp
Advanced tools
Comparing version 7.3.11 to 7.3.12
@@ -64,4 +64,4 @@ { | ||
}, | ||
"version": "7.3.11", | ||
"version": "7.3.12", | ||
"license": "ISC" | ||
} |
@@ -64,8 +64,8 @@ // lookup = (name) => returns <config> | ||
const addWord = (baseConfig, config) => ({ word, id, initial }) => { | ||
if (!baseConfig.config.words) { | ||
baseConfig.config.words = {} | ||
const addWord = (config, uuid) => ({ word, id, initial }) => { | ||
if (!config.words) { | ||
config.words = {} | ||
} | ||
const words = baseConfig.config.words | ||
const def = { id, initial, uuid: config.uuid } | ||
const words = config.words | ||
const def = { id, initial, uuid } | ||
if (words[word]) { | ||
@@ -1399,3 +1399,4 @@ if (!words[word].some((e) => helpers.safeEquals(e, def))) { | ||
if (config instanceof Config) { | ||
const aw = addWord(this, config) | ||
// const aw = addWord(this.config, config.uuid) | ||
const aw = (word, def) => this.addWord(word, def) | ||
this.get('objects').namespaced[config._uuid] = objects | ||
@@ -1408,3 +1409,4 @@ if (config._api) { | ||
} else { | ||
const aw = addWord(this, this) | ||
// const aw = addWord(this.config, this.uuid) | ||
const aw = (word, def) => this.addWord(word, def) | ||
this.get('objects').namespaced[this._uuid] = objects | ||
@@ -1423,3 +1425,4 @@ if (config._api) { | ||
if (force || !this.wasInitialized) { | ||
const aw = addWord(this, this) | ||
// const aw = addWord(this.config, this.uuid) | ||
const aw = (word, def) => this.addWord(word, def) | ||
const km = (name) => this.getConfig(name) | ||
@@ -1631,3 +1634,4 @@ // this.initializerFn({ addWord: aw, km, config: this, baseConfig: this, currentConfig: this, objects: this.get('objects'), uuid: this._uuid, namespace: '', api: this.api }) | ||
this.setupNamespace(km) | ||
const aw = addWord(km.config, km.config) | ||
// const aw = addWord(km.config.config ? km.config.config : km.config, km.config.uuid) | ||
const aw = (word, def) => this.addWord(word, def) | ||
let config = km.config | ||
@@ -1799,6 +1803,8 @@ | ||
if (config instanceof Config) { | ||
const aw = addWord(this, config) | ||
// const aw = addWord(this.config, config.uuid) | ||
const aw = (word, def) => this.addWord(word, def) | ||
config.initializerFn({ isModule: this.isModule, addWord: aw, baseConfig: this, km, currentConfig: config, config, objects: nsobjects, namespace, uuid, api: config.api }) | ||
} else { | ||
const aw = addWord(this, this) | ||
// const aw = addWord(this.config, this.uuid) | ||
const aw = (word, def) => this.addWord(word, def) | ||
this.initializerFn({ isModule: this.isModule, addWord: aw, baseConfig: this, km, currentConfig: this, config: this, objects: nsobjects, namespace, uuid, api: this.api }) | ||
@@ -1805,0 +1811,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157305
4640