Skip to content

Commit

Permalink
Merge pull request #32 from contentstack/fix/dx-1048-merge-with-schem…
Browse files Browse the repository at this point in the history
…a-creation

dx |1048 | merge-with-schema-creation
  • Loading branch information
harshithad0703 authored Aug 12, 2024
2 parents d7c6ab7 + 0357903 commit 576c1b2
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 4 deletions.
141 changes: 139 additions & 2 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,6 +1,6 @@
{
"name": "datasync-filesystem-sdk",
"version": "1.0.11",
"version": "1.0.12",
"description": "JavaScript filesystem SDK to query data synced via @contentstack/datasync-content-store-filesystem",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -36,6 +36,7 @@
"@types/node": "^18.14.0",
"jest": "^29.4.3",
"jsdoc": "^4.0.2",
"node-notifier": "^10.0.1",
"rimraf": "^4.1.2",
"ts-jest": "^29.0.5",
"typescript": "^4.9.5"
Expand Down
3 changes: 2 additions & 1 deletion src/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import mask from 'json-mask'
import {
merge,
mergeWith,
reverse,
sortBy,
} from 'lodash'
Expand Down Expand Up @@ -1435,7 +1436,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

0 comments on commit 576c1b2

Please sign in to comment.