Skip to content

Commit

Permalink
Merge pull request #16 from contentstack/staging
Browse files Browse the repository at this point in the history
DX | 21-08-2024 | Release
  • Loading branch information
cs-raj authored Aug 23, 2024
2 parents 31f4f73 + c018b1a commit e983d23
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 9 deletions.
129 changes: 125 additions & 4 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Contentstack Ecosystem <[email protected]>",
"name": "datasync-mongodb-sdk",
"version": "1.0.4",
"version": "1.0.5",
"description": "Mongodb query wrapper around contents synced via @contentstack/content-store-mongodb",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -29,6 +29,7 @@
"debug": "^4.3.4",
"jest": "^29.0.3",
"jsdoc": "^4.0.0",
"node-notifier": "^10.0.1",
"rimraf": "^2.6.3",
"ts-jest": "^29.0.2",
"tslint": "^5.18.0",
Expand Down
3 changes: 2 additions & 1 deletion src/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import {
merge,
mergeWith,
remove,
} from 'lodash'
import {
Expand Down Expand Up @@ -2125,7 +2126,7 @@ export class Stack {

schemas.forEach((schema) => {
// Entry references
entryReferences = merge(entryReferences, schema[this.types.references])
entryReferences = mergeWith(entryReferences, schema[this.types.references])
// tslint:disable-next-line: forin
for (const path in schema[this.types.assets]) {
paths.push(path)
Expand Down
6 changes: 3 additions & 3 deletions test/data/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const assets = [
title: 'A 1',
uid: 'a1',
url:
'https://images.contentstack.io/v3/assets/***REMOVED***/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
'https://images.contentstack.io/v3/assets/blt44d99c34b040fa61/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
},
{
_version: 1,
Expand All @@ -19,7 +19,7 @@ export const assets = [
title: 'A 2',
uid: 'a2',
url:
'https://images.contentstack.io/v3/assets/***REMOVED***/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
'https://images.contentstack.io/v3/assets/blt44d99c34b040fa61/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
},
{
_version: 2,
Expand All @@ -30,6 +30,6 @@ export const assets = [
title: 'A 3',
uid: 'a3',
url:
'https://images.contentstack.io/v3/assets/***REMOVED***/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
'https://images.contentstack.io/v3/assets/blt44d99c34b040fa61/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
},
]

0 comments on commit e983d23

Please sign in to comment.