From fa25afeaa0270cb842ea3e7d08ead03380260f10 Mon Sep 17 00:00:00 2001 From: "vikram.kalta@contentstack.com" Date: Wed, 9 Nov 2022 20:08:08 +0000 Subject: [PATCH 1/2] fix: handled projections issue --- src/stack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stack.ts b/src/stack.ts index f766f199..4ecf40bb 100755 --- a/src/stack.ts +++ b/src/stack.ts @@ -983,7 +983,7 @@ export class Stack { public except(fields) { if (fields && typeof fields === 'object' && fields instanceof Array && fields.length) { this.q.except = [] - const keys = Object.keys(this.contentStore.projections) + const keys = Object.keys(this.contentStore.projections).filter(key => this.contentStore.projections[key] === 0) this.q.except = keys.concat(fields) return this @@ -1189,7 +1189,7 @@ export class Stack { } if (!this.q.hasOwnProperty('except') && !this.q.hasOwnProperty('only')) { - const keys = Object.keys(this.contentStore.projections) + const keys = Object.keys(this.contentStore.projections).filter(key => this.contentStore.projections[key] === 0) this.q.except = keys } From 45a47c2f7297d18886bd1c5311ff509d3302fc4f Mon Sep 17 00:00:00 2001 From: "vikram.kalta@contentstack.com" Date: Thu, 1 Dec 2022 10:28:27 +0000 Subject: [PATCH 2/2] fix: version update --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29f0bb1c..348b9964 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasync-filesystem-sdk", - "version": "1.0.3", + "version": "1.0.4", "description": "JavaScript filesystem SDK to query data synced via @contentstack/datasync-content-store-filesystem", "main": "dist/index.js", "scripts": {