@ninetailed/experience.js-utils-contentful
Advanced tools
Comparing version 2.0.0-beta.30 to 2.0.0-beta.31
{ | ||
"name": "@ninetailed/experience.js-utils-contentful", | ||
"version": "2.0.0-beta.30", | ||
"version": "2.0.0-beta.31", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -5,2 +5,3 @@ "use strict"; | ||
const AudienceMapper_1 = require("./AudienceMapper"); | ||
const isEntry_1 = require("./isEntry"); | ||
const defaultMapVariant = (variant, { hidden }) => (Object.assign(Object.assign({}, variant), { id: variant.sys.id, hidden: hidden })); | ||
@@ -49,3 +50,5 @@ class ExperienceMapper { | ||
static mapBaselineWithExperiences(entry) { | ||
return entry.fields.nt_experiences.map((experience) => this.mapExperience(experience)); | ||
return entry.fields.nt_experiences | ||
.filter(isEntry_1.isEntry) | ||
.map((experience) => this.mapExperience(experience)); | ||
} | ||
@@ -52,0 +55,0 @@ } |
export { AudienceMapper } from './AudienceMapper'; | ||
export { ExperienceMapper } from './ExperienceMapper'; | ||
export { isEntry } from './isEntry'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ExperienceMapper = exports.AudienceMapper = void 0; | ||
exports.isEntry = exports.ExperienceMapper = exports.AudienceMapper = void 0; | ||
var AudienceMapper_1 = require("./AudienceMapper"); | ||
@@ -8,2 +8,4 @@ Object.defineProperty(exports, "AudienceMapper", { enumerable: true, get: function () { return AudienceMapper_1.AudienceMapper; } }); | ||
Object.defineProperty(exports, "ExperienceMapper", { enumerable: true, get: function () { return ExperienceMapper_1.ExperienceMapper; } }); | ||
var isEntry_1 = require("./isEntry"); | ||
Object.defineProperty(exports, "isEntry", { enumerable: true, get: function () { return isEntry_1.isEntry; } }); | ||
//# sourceMappingURL=index.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13176
29
180