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
4 changes: 2 additions & 2 deletions dist/stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ class Stack {
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 @@ -1051,7 +1051,7 @@ class Stack {
this.q.desc = this.contentStore.defaultSortingField;
}
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;
}
this.q.referenceDepth = (typeof this.q.referenceDepth === 'number') ? this.q.referenceDepth : this.contentStore
Expand Down
2 changes: 1 addition & 1 deletion dist/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const mkdirp_1 = require("mkdirp");
const path_1 = require("path");
const fs_1 = require("./fs");
const index_1 = require("./index");
const localePaths = {};
const localePaths = Object.create(null);
const difference = (obj, baseObj) => {
const changes = (data, base) => {
return (0, lodash_1.transform)(data, (result, value, key) => {
Expand Down
Loading