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.10 to 3.8.11

2

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

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

@@ -153,4 +153,7 @@ import { TimelineConfig } from "../core/TimelineConfig"

rows = d;
}).catch(msg => {
throw new TLError(msg)
}).catch(error_json => {
if (error_json.proxy_err_code == 'response_not_csv') {
throw new TLError('Timeline could not read the data for your timeline. Make sure you have published AND shared your timeline. See <a href="https://timeline.knightlab.com">timeline.knightlab.com</a> for more information.')
}
throw new TLError(error_json.message)
})

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

@@ -57,2 +57,15 @@ /* Adapted from okfn/csv.js under MIT license

.then(function(response) {
if (response.status != 200) {
if (response.headers.get('content-type') == "application/json") {
response.text().then(text => {
reject(JSON.parse(text))
})
} else {
reject({
status_code: response.status,
message: `Error fetching CSV: [${response.status} ${response.statusText}]`
})
}
return;
}
if (response.text) {

@@ -65,7 +78,15 @@ return response.text();

.then(function(data) {
var out = parseObjects(data, dataset);
out.useMemoryStore = true;
resolve(out);
if (data) {
var out = parseObjects(data, dataset);
out.useMemoryStore = true;
resolve(out);
}
})
.catch(msg => reject(msg));
.catch(msg => {
reject({
status_code: 500,
message: `Error fetching CSV: ${msg}`
})
return;
});
}

@@ -72,0 +93,0 @@ })

@@ -24,3 +24,3 @@ [{

"question": "There aren't enough options. I want more control over the [font size/color/etc]. Can I change things using CSS?",
"answer": "Because there are so many details to the styling, this is not exactly simple, but, if you have some technical capacity, you can override TimelineJS's <abbr title='Cascading Style Sheets'>CSS</abbr> rules and have complete control over the look of the timeline. For details, see <a href='/docs/overriding-styles.html'>Using the TimelineJS CSS selectors</a>."
"answer": "Because there are so many details to the styling, this is not exactly simple, but, if you have some technical capacity, you can override TimelineJS's <abbr title='Cascading Style Sheets'>CSS</abbr> rules and have complete control over the look of the timeline. For details, see <a href='/docs/overriding-styles.html'>Overriding Timeline's Styles</a>."
},

@@ -27,0 +27,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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