Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 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.3",
"version": "1.0.4",
"description": "JavaScript filesystem SDK to query data synced via @contentstack/datasync-content-store-filesystem",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down