spice-js 2.5.9 → 2.5.10

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
@@ -136,9 +136,8 @@ class Spice {
136
136
  }));
137
137
  app.use(convert(Validate()));
138
138
  spice.app = app;
139
- spice.config = yield require("./loaders/config")();
140
- /* io.attach(app);
141
- spice.io = io; */
139
+ spice.config = yield require("./loaders/config")(); //io.attach(app);
140
+ //spice.io = io; */
142
141
 
143
142
  /* io.on("message", (ctx, data) => {
144
143
  console.log("client sent data to message endpoint", data);
@@ -877,7 +877,6 @@ class SpiceModel {
877
877
  when: properties[i].map.when || "read",
878
878
  execute: function () {
879
879
  var _execute2 = _asyncToGenerator(function* (data) {
880
- console.log(_.isString(properties[i].map.reference), _.isString(properties[i].map.reference) ? spice.models[properties[i].map.reference] : properties[i].map.reference, spice.models, properties[i].map.reference);
881
880
  return yield _this10.mapToObjectArray(data, _.isString(properties[i].map.reference) ? spice.models[properties[i].map.reference] : properties[i].map.reference, i, properties[i].map.destination || i, properties[i]);
882
881
  });
883
882
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-js",
3
- "version": "2.5.9",
3
+ "version": "2.5.10",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -38,6 +38,7 @@
38
38
  "regenerator-runtime": "^0.13.7",
39
39
  "socket.io-client": "^4.0.1",
40
40
  "sonover-date": "^1.0.1",
41
+ "spice-couchbase": "^2.0.14",
41
42
  "uuid": "^3.3.3",
42
43
  "winston": "^3.2.1"
43
44
  },
package/src/index.js CHANGED
@@ -72,8 +72,8 @@ export default class Spice {
72
72
  spice.app = app;
73
73
  spice.config = await require("./loaders/config")();
74
74
 
75
- /* io.attach(app);
76
- spice.io = io; */
75
+ //io.attach(app);
76
+ //spice.io = io; */
77
77
  /* io.on("message", (ctx, data) => {
78
78
  console.log("client sent data to message endpoint", data);
79
79
  }); */
@@ -765,14 +765,6 @@ export default class SpiceModel {
765
765
  this.addModifier({
766
766
  when: properties[i].map.when || "read",
767
767
  execute: async (data) => {
768
- console.log(
769
- _.isString(properties[i].map.reference),
770
- _.isString(properties[i].map.reference)
771
- ? spice.models[properties[i].map.reference]
772
- : properties[i].map.reference,
773
- spice.models,
774
- properties[i].map.reference
775
- );
776
768
  return await this.mapToObjectArray(
777
769
  data,
778
770
  _.isString(properties[i].map.reference)