Skip to content

Commit

Permalink
define associated object (#144)
Browse files Browse the repository at this point in the history
* define associated object

* 2.11.5
  • Loading branch information
kbarbounakis committed Apr 25, 2024
1 parent 1ec2617 commit 9f3bad0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions data-object-junction.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function insertAnyObject(obj, callback) {
if (isObjectDeep(item) === false) {
child = {};
// and set object key e.g. { "id": 1102 }
Object.assign(child, self.mapping.childField, {
Object.defineProperty(child, self.mapping.childField, {
configurable: true,
enumerable: true,
value: item
Expand Down Expand Up @@ -573,7 +573,7 @@ function removeAnyObject(obj, callback) {
if (isObjectDeep(item) === false) {
child = {};
// and set object key e.g. { "id": 1102 }
Object.assign(child, self.mapping.childField, {
Object.defineProperty(child, self.mapping.childField, {
configurable: true,
enumerable: true,
value: item
Expand Down
4 changes: 2 additions & 2 deletions has-parent-junction.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function insertAnyObject(obj, callback) {
if (isObjectDeep(item) === false) {
parent = {};
// and set object key e.g. { "id": 1102 }
Object.assign(parent, self.mapping.parentField, {
Object.defineProperty(parent, self.mapping.parentField, {
configurable: true,
enumerable: true,
value: item
Expand Down Expand Up @@ -391,7 +391,7 @@ function removeAnyObject(obj, callback) {
if (isObjectDeep(item) === false) {
parent = {};
// and set object key e.g. { "id": 1102 }
Object.assign(parent, self.mapping.parentField, {
Object.defineProperty(parent, self.mapping.parentField, {
configurable: true,
enumerable: true,
value: item
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@themost/data",
"version": "2.11.4",
"version": "2.11.5",
"description": "MOST Web Framework Codename Blueshift - Data module",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9f3bad0

Please sign in to comment.