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.8.2 to 3.8.3

2

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

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

@@ -1,5 +0,2 @@

# this one has one extra "blank" column so looks like it's not a timeline sheet.
/embed/index.html?source=1NUSGL-oA5Sty8QG2qghEDQgdiJcmmgg8dJl6diaIyQE&font=Default&lang=en&initial_zoom=2&height=650
# Missing start_date [tl-huhu]

@@ -9,14 +6,3 @@ /embed/index.html?source=1xsJfZjzPyVXDA2WK10Qb1uXd6z1kA-CxEstZ6V1er8Q&font=Default&lang=en&start_at_end=true&initial_zoom=10&height=650

# this one has blank end dates parsed to Jan 1, 0
# - also blank timeaxis?
# and generally end dates are getting parsed when they oughtn't or weren't?
/embed/index.html?source=15yIwaWXmT9WgmnTstt0GpPXTWlHPrcU4BDn0ofg-Kl8&font=Default&lang=en&initial_zoom=2&height=650
https://docs.google.com/spreadsheets/u/1/d/15yIwaWXmT9WgmnTstt0GpPXTWlHPrcU4BDn0ofg-Kl8/pubhtml
# another with blank end dates - also blank timeaxis?
/embed/index.html?source=1TP6cZa46RMcBITN1FXMjAYFjSeGowNk9QprE7G26vuE&font=Default&lang=pl&initial_zoom=2&height=500
# NO PROBLEMS no weird end date thing
/embed/index.html?source=1kGapJMnqTzJwSn0hVn-HSdDtQFn8uUDNvMdBQa3e62g&font=Default&lang=en&hash_bookmark=true&initial_zoom=0&height=650&initial_zoom=3&start_at_slide=
https://docs.google.com/spreadsheets/u/1/d/1kGapJMnqTzJwSn0hVn-HSdDtQFn8uUDNvMdBQa3e62g/pubhtml
# Missing start_date
/embed/index.html?source=1QGm07Y5ikSA3_YTyq_LKvaURG8y1ewY3ReZ7nfz5HOc&font=Default&lang=en&initial_zoom=2&height=650
import { TimelineConfig } from "../core/TimelineConfig"
import { trim, isEmptyObject, mergeData, trace } from "../core/Util";
import { isEmptyObject, mergeData, trace } from "../core/Util";
import { parseDate } from "../date/TLDate"

@@ -4,0 +4,0 @@ import TLError from "../core/TLError"

@@ -153,7 +153,8 @@ /* Adapted from okfn/csv.js under MIT license

// Convert unquoted numbers to their appropriate types
if (rxIsInt.test(field)) {
field = parseInt(field, 10);
} else if (rxIsFloat.test(field)) {
field = parseFloat(field, 10);
}
// but Timeline never expects real numbers, so we'll leave that out here.
// if (rxIsInt.test(field)) {
// field = parseInt(field, 10);
// } else if (rxIsFloat.test(field)) {
// field = parseFloat(field, 10);
// }
}

@@ -160,0 +161,0 @@ return field;

@@ -154,3 +154,6 @@ import { sortByDate, SCALE_DATE_CLASSES } from "../date/DateUtil"

if (typeof(data.start_date) == 'undefined') {
throw new TLError("missing_start_date_err", event_id);
trace("Missing start date, skipping event")
console.log(data)
return null
// throw new TLError("missing_start_date_err", event_id);
}

@@ -157,0 +160,0 @@

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