meadow-endpoints 4.0.4 → 4.0.5

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": "meadow-endpoints",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Automatic API endpoints for Meadow data.",
5
5
  "main": "source/Meadow-Endpoints.js",
6
6
  "scripts": {
@@ -66,10 +66,11 @@
66
66
  "why-is-node-running": "^2.2.2"
67
67
  },
68
68
  "dependencies": {
69
+ "JSONStream": "^1.3.5",
69
70
  "async": "3.2.4",
70
71
  "fable": "^3.0.37",
71
- "JSONStream": "^1.3.5",
72
72
  "meadow": "^2.0.4",
73
- "orator": "^3.0.11"
73
+ "orator": "^3.0.11",
74
+ "underscore": "^1.13.6"
74
75
  }
75
76
  }
@@ -1,3 +1,7 @@
1
+ //TODO: This is only being referenced to allow compatibility with service_pieces
2
+ //TODO: There is risk of other incompatibilities until service_pieces is updated
3
+ const libUnderscore = require('underscore');
4
+
1
5
  class MeadowEndpointsControllerBehaviorInjectionBase
2
6
  {
3
7
  constructor(pController)
@@ -5,7 +9,8 @@ class MeadowEndpointsControllerBehaviorInjectionBase
5
9
  this._Controller = pController;
6
10
 
7
11
  // The template compilation function
8
- this.template = this._Controller.DAL.fable.Utility.template;
12
+ //this.template = this._Controller.DAL.fable.Utility.template;
13
+ this.template = libUnderscore.template;
9
14
 
10
15
  // An object to hold modifications to specific behaviors.
11
16
  this._BehaviorFunctions = {};