Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ninetailed/experience.js-utils-contentful

Package Overview
Dependencies
Maintainers
1
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ninetailed/experience.js-utils-contentful - npm Package Compare versions

Comparing version 2.0.0-beta.30 to 2.0.0-beta.31

src/lib/isEntry.d.ts

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc