spice-js 2.6.79 → 2.6.81
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.
|
@@ -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
package/src/models/SpiceModel.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
1467
|
-
|
|
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 =
|
|
1536
|
-
|
|
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();
|