spice-js 2.6.79 → 2.6.80

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": "spice-js",
3
- "version": "2.6.79",
3
+ "version": "2.6.80",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -1424,7 +1424,8 @@ export default class SpiceModel {
1424
1424
  // Supports deep references like "group.permissions"
1425
1425
  isFieldExempt(source_property) {
1426
1426
  const currentPath = this[_current_path];
1427
- const fullPath = currentPath ? `${currentPath}.${source_property}` : source_property;
1427
+ const fullPath =
1428
+ currentPath ? `${currentPath}.${source_property}` : source_property;
1428
1429
 
1429
1430
  return this[_mapping_dept_exempt].some((exemptPattern) => {
1430
1431
  // Exact match: "group" or "group.permissions"
@@ -1463,8 +1464,9 @@ export default class SpiceModel {
1463
1464
  });
1464
1465
 
1465
1466
  // Build the path for child models
1466
- const childPath = this[_current_path]
1467
- ? `${this[_current_path]}.${source_property}`
1467
+ const childPath =
1468
+ this[_current_path] ?
1469
+ `${this[_current_path]}.${source_property}`
1468
1470
  : source_property;
1469
1471
 
1470
1472
  var returned_all = await Promise.allSettled(
@@ -1532,8 +1534,9 @@ export default class SpiceModel {
1532
1534
  });
1533
1535
 
1534
1536
  // Build the path for child models
1535
- const childPath = this[_current_path]
1536
- ? `${this[_current_path]}.${source_property}`
1537
+ const childPath =
1538
+ this[_current_path] ?
1539
+ `${this[_current_path]}.${source_property}`
1537
1540
  : source_property;
1538
1541
 
1539
1542
  let classes = _.compact(_.isArray(Class) ? Class : [Class]);
@@ -1672,7 +1675,6 @@ export default class SpiceModel {
1672
1675
 
1673
1676
  // Must be a string to parse
1674
1677
  if (typeof columns !== "string") return null;
1675
- console.log("columns", columns);
1676
1678
  // Extract field names from column specifications
1677
1679
  // Handles: "field", "`field`", "table.field", "`table`.`field`", "expr AS alias"
1678
1680
  const fields = new Set();