tpmkms_4wp 9.1.1-beta.6 → 9.1.1-beta.7

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.
@@ -204,7 +204,9 @@ knowledgeModule({
204
204
  name: './formulas.test.json',
205
205
  contents: tests,
206
206
  checks: {
207
- objects: ['formulas'],
207
+ objects: [
208
+ 'formulas',
209
+ ],
208
210
  context: defaultContextCheck(),
209
211
  }
210
212
  },
@@ -50,7 +50,11 @@ class API {
50
50
  const objectSingular = pluralize.singular(objectWord)
51
51
  const objectPlural = pluralize.plural(objectWord)
52
52
  // config.addOperator({ pattern: `(${modifierIds.map((modifierId) => `(${modifierId}/*)`).join(' ')} [${modifiersObjectId}] (${objectId}/0))`, allowDups: true })
53
- config.addOperator({ pattern: `(${modifierIds.map((modifierId) => `(${modifierId}/*)`).join(' ')} [${modifiersObjectId}] (${objectId}/*))`, allowDups: true })
53
+ if (false) {
54
+ config.addOperator({ pattern: `(${modifierIds.map((modifierId) => `(${modifierId}/*)`).join(' ')} [${modifiersObjectId}] (${objectId}/*))`, allowDups: true })
55
+ } else {
56
+ config.addOperator({ pattern: `(${modifierIds.map((modifierId) => `(@==${modifierId})`).join(' ')} [${modifiersObjectId}] (@==${objectId}))`, allowDups: true })
57
+ }
54
58
  // config.addOperator({ pattern: `(<${modifierId}|> ([${objectId}|]))`, allowDups: true })
55
59
  // config.addOperator({ pattern: `([${modifierObjectId}|])`, allowDups: true })
56
60
 
@@ -91,7 +95,7 @@ class API {
91
95
  })
92
96
  // modifierds.forEach((modifierId) => config.addWord(modifierId, { id: modifierId, initial: `{ value: '${modifierId}' }`}))
93
97
 
94
- modifierIds.forEach((modifierId) => config.addBridge({ id: modifierId, level: 0, bridge: `{ ...next(operator), value: '${modifierId}' }`, allowDups: true }))
98
+ modifierIds.forEach((modifierId) => config.addBridge({ id: modifierId, level: 0, bridge: `{ ...next(operator), value: or(operator.value, '${modifierId}') }`, allowDups: true }))
95
99
  config.addBridge({ id: objectId, level: 0, bridge: `{ ...next(operator), value: '${objectId}' }`, allowDups: true })
96
100
  // config.addBridge({ id: modifierObjectId, level: 0, bridge: `{ ...next(operator), value: '${modifierObjectId}' }`, allowDups: true })
97
101
  const modifierProperties = modifierIds.map((modifierId, index) => `'modifier_${modifierId}': before[${index}]`).join(', ')
@@ -102,7 +102,7 @@ class API {
102
102
  }
103
103
  // config.addOperator({ pattern: `(["${fixUps(concept)}"])`, allowDups: true })
104
104
  config.addOperator({ pattern: `(["${concept}"])`, allowDups: true })
105
- config.addBridge({ id: concept, level: 0, bridge: `{ ...next(operator), value: '${source_value || concept}' }` , allowDups: true })
105
+ config.addBridge({ id: concept, level: 0, bridge: `{ ...next(operator), value: or(operator.value, '${source_value || concept}') }` , allowDups: true })
106
106
  const addConcept = (word, number) => {
107
107
  config.addWord(word, { id: concept, initial: `{ value: "${source_value || concept}", number: "${number}" }` } )
108
108
  const baseTypes = [