spice-js 2.6.80 → 2.6.82

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.
@@ -67,7 +67,7 @@ class SpiceModel {
67
67
 
68
68
  var Database = require("spice-" + dbtype);
69
69
 
70
- this[_mapping_dept] = ((_args2 = args) == null ? void 0 : (_args2$args = _args2.args) == null ? void 0 : _args2$args.mapping_dept) || 2;
70
+ this[_mapping_dept] = ((_args2 = args) == null ? void 0 : (_args2$args = _args2.args) == null ? void 0 : _args2$args.mapping_dept) || process.env.MAPPING_DEPT || 3;
71
71
  this[_mapping_dept_exempt] = ((_args3 = args) == null ? void 0 : (_args3$args = _args3.args) == null ? void 0 : _args3$args.mapping_dept_exempt) || [];
72
72
  this.type = "";
73
73
  this.collection = args.connection;
@@ -1857,8 +1857,7 @@ class SpiceModel {
1857
1857
  } // Must be a string to parse
1858
1858
 
1859
1859
 
1860
- if (typeof columns !== "string") return null;
1861
- console.log("columns", columns); // Extract field names from column specifications
1860
+ if (typeof columns !== "string") return null; // Extract field names from column specifications
1862
1861
  // Handles: "field", "`field`", "table.field", "`table`.`field`", "expr AS alias"
1863
1862
 
1864
1863
  var fields = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-js",
3
- "version": "2.6.80",
3
+ "version": "2.6.82",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -53,7 +53,8 @@ export default class SpiceModel {
53
53
  var dbtype =
54
54
  spice.config.database.connections[args.connection].type || "couchbase";
55
55
  let Database = require(`spice-${dbtype}`);
56
- this[_mapping_dept] = args?.args?.mapping_dept || 2;
56
+ this[_mapping_dept] =
57
+ args?.args?.mapping_dept || process.env.MAPPING_DEPT || 3;
57
58
  this[_mapping_dept_exempt] = args?.args?.mapping_dept_exempt || [];
58
59
  this.type = "";
59
60
  this.collection = args.connection;