Comparing version 8.0.0-beta.84 to 8.0.0-beta.86
@@ -42,3 +42,6 @@ const { knowledgeModule, where } = require('./runtime').theprogrammablemind | ||
mentioned({ context:concept, value=null } = {}) { | ||
mentioned({ context:concept, value=null, frameOfReference } = {}) { | ||
if (!frameOfReference) { | ||
frameOfReference = this._objects | ||
} | ||
// TODO value should perhaps have been called id as in concept id and then value could be value | ||
@@ -65,4 +68,4 @@ if (value) { | ||
} | ||
this._objects.mentioned = this._objects.mentioned.filter( (context) => context.stm && context.stm.id != concept.stm.id ) | ||
this._objects.mentioned.unshift(concept) | ||
frameOfReference.mentioned = (frameOfReference.mentioned || []).filter( (context) => context.stm && context.stm.id != concept.stm.id ) | ||
frameOfReference.mentioned.unshift(concept) | ||
} | ||
@@ -250,4 +253,4 @@ | ||
config.addArgs(({kms}) => ({ | ||
mentioned: ({ context }) => { | ||
kms.stm.api.mentioned({ context }) | ||
mentioned: (args) => { | ||
kms.stm.api.mentioned(args) | ||
}, | ||
@@ -254,0 +257,0 @@ mentions: (args) => { |
@@ -310,6 +310,6 @@ { | ||
"argparse": "^2.0.1", | ||
"theprogrammablemind": "8.0.0-beta.84" | ||
"theprogrammablemind": "8.0.0-beta.86" | ||
}, | ||
"version": "8.0.0-beta.84", | ||
"version": "8.0.0-beta.86", | ||
"license": "UNLICENSED" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
36758642
809974
+ Addedtheprogrammablemind@8.0.0-beta.86(transitive)
- Removedtheprogrammablemind@8.0.0-beta.84(transitive)