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

@knight-lab/timelinejs

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knight-lab/timelinejs - npm Package Compare versions

Comparing version 3.7.2 to 3.7.3

2

package.json
{
"name": "@knight-lab/timelinejs",
"version": "3.7.2",
"version": "3.7.3",
"license": "MPL-2.0",

@@ -5,0 +5,0 @@ "description": "TimelineJS v3: A Storytelling Timeline built in JavaScript, made by Northwestern University Knight Lab.",

@@ -127,4 +127,4 @@ import { sortByDate, SCALE_DATE_CLASSES } from "../date/DateUtil"

var era_identifier;
if (this.eras[i].text && this.eras[i].text.headline) {
era_identifier = this.eras[i].text.headline
if (this.eras[i].headline) {
era_identifier = this.eras[i].headline
} else {

@@ -131,0 +131,0 @@ era_identifier = "era " + (i + 1);

@@ -7,3 +7,3 @@ import { Media } from "../Media";

super(data, options, language);
this.blockquote = DOMPurify.sanitize(txt)
this.blockquote = DOMPurify.sanitize(this.data.url)
}

@@ -10,0 +10,0 @@ _loadMedia() {

@@ -7,3 +7,3 @@ import { Media } from "../Media";

super(data, options, language);
this.iframe = DOMPurify.sanitize(txt, {
this.iframe = DOMPurify.sanitize(this.data.url, {
ADD_TAGS: ['iframe'],

@@ -10,0 +10,0 @@ ADD_ATTR: ['frameborder'],

@@ -684,3 +684,3 @@ import { classMixin, mergeData, findNextGreater, findNextLesser, isEven, findArrayNumberByUniqueID, trace } from "../core/Util"

if (this.config.eras) {
if (this.config.eras && this.config.eras.length > 0) {
this.has_eras = true;

@@ -687,0 +687,0 @@ this._createEras(this.config.eras);

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