spice-js 2.6.31 → 2.6.33

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/build/index.js CHANGED
@@ -98,7 +98,9 @@ var cors = require("kcors");
98
98
 
99
99
  global.spice = {};
100
100
 
101
- require("dotenv").config();
101
+ require("dotenv").config({
102
+ path: path.resolve("./")
103
+ });
102
104
 
103
105
  var Validate = require("koa-validation");
104
106
 
@@ -154,9 +154,9 @@ class SpiceModel {
154
154
  props = _.merge(props, extender.creator(resource));
155
155
  }
156
156
  }
157
-
158
- return props;
159
157
  }
158
+
159
+ return props;
160
160
  } //console.log("Applying Overrides to :", this.collection,'||', args.collection)
161
161
 
162
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-js",
3
- "version": "2.6.31",
3
+ "version": "2.6.33",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -4,7 +4,7 @@ var path = require("path");
4
4
  const cors = require("kcors");
5
5
  global.spice = {};
6
6
 
7
- require("dotenv").config();
7
+ require("dotenv").config({ path: path.resolve("./") });
8
8
 
9
9
  var Validate = require("koa-validation");
10
10
  const koaBody = require("koa-body");