not-node 6.0.3 → 6.0.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -106,7 +106,7 @@ module.exports = class ModelFabricate {
106
106
  }
107
107
 
108
108
  static createIndexesForText(schema, targetModule) {
109
- if (targetModule.enrich.textIndex) {
109
+ if (targetModule.enrich && targetModule.enrich.textIndex) {
110
110
  schema.index(targetModule.enrich.textIndex, {
111
111
  name: Object.keys(targetModule.enrich.textIndex).join("__"),
112
112
  });