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

vega-datasets

Package Overview
Dependencies
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vega-datasets - npm Package Compare versions

Comparing version 2.0.0-beta.4 to 2.0.0-beta.5

data/movies.json

2

build/package.json
{
"name": "vega-datasets",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "Common repository for example datasets used by Vega related projects.",

@@ -5,0 +5,0 @@ "main": "build/vega-datasets",

@@ -7,3 +7,3 @@ (function (global, factory) {

var version = "2.0.0-beta.4";
var version = "2.0.0-beta.5";

@@ -38,2 +38,3 @@ var urls = {

'monarchs.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/monarchs.json`,
'movies.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/movies.json`,
'normal-2d.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/normal-2d.json`,

@@ -67,3 +68,2 @@ 'obesity.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/obesity.json`,

'lookup_people.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/lookup_people.csv`,
'movies.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/movies.csv`,
'population_engineers_hurricanes.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/population_engineers_hurricanes.csv`,

@@ -70,0 +70,0 @@ 'seattle-weather-hourly-normals.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/seattle-weather-hourly-normals.csv`,

@@ -1,1 +0,1 @@

!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t=t||self).vegaDatasets=s()}(this,(function(){"use strict";var t="2.0.0-beta.4",s={"annual-precip.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/annual-precip.json`,"anscombe.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/anscombe.json`,"barley.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/barley.json`,"budget.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/budget.json`,"budgets.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/budgets.json`,"burtin.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/burtin.json`,"cars.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/cars.json`,"countries.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/countries.json`,"crimea.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/crimea.json`,"driving.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/driving.json`,"earthquakes.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/earthquakes.json`,"flare-dependencies.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flare-dependencies.json`,"flare.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flare.json`,"flights-10k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-10k.json`,"flights-200k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-200k.json`,"flights-20k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-20k.json`,"flights-2k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-2k.json`,"flights-5k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-5k.json`,"football.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/football.json`,"gapminder.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/gapminder.json`,"income.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/income.json`,"jobs.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/jobs.json`,"londonBoroughs.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/londonBoroughs.json`,"londonCentroids.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/londonCentroids.json`,"londonTubeLines.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/londonTubeLines.json`,"miserables.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/miserables.json`,"monarchs.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/monarchs.json`,"normal-2d.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/normal-2d.json`,"obesity.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/obesity.json`,"ohlc.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/ohlc.json`,"palmerpenguins.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/palmerpenguins.json`,"points.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/points.json`,"political-contributions.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/political-contributions.json`,"population.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/population.json`,"udistrict.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/udistrict.json`,"unemployment-across-industries.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/unemployment-across-industries.json`,"uniform-2d.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/uniform-2d.json`,"us-10m.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/us-10m.json`,"us-state-capitals.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/us-state-capitals.json`,"volcano.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/volcano.json`,"weather.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/weather.json`,"wheat.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/wheat.json`,"world-110m.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/world-110m.json`,"airports.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/airports.csv`,"birdstrikes.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/birdstrikes.csv`,"co2-concentration.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/co2-concentration.csv`,"disasters.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/disasters.csv`,"flights-3m.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-3m.csv`,"flights-airport.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-airport.csv`,"gapminder-health-income.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/gapminder-health-income.csv`,"github.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/github.csv`,"iowa-electricity.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/iowa-electricity.csv`,"la-riots.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/la-riots.csv`,"lookup_groups.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/lookup_groups.csv`,"lookup_people.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/lookup_people.csv`,"movies.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/movies.csv`,"population_engineers_hurricanes.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/population_engineers_hurricanes.csv`,"seattle-weather-hourly-normals.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/seattle-weather-hourly-normals.csv`,"seattle-weather.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/seattle-weather.csv`,"sp500.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/sp500.csv`,"stocks.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/stocks.csv`,"us-employment.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/us-employment.csv`,"weather.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/weather.csv`,"windvectors.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/windvectors.csv`,"zipcodes.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/zipcodes.csv`,"unemployment.tsv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/unemployment.tsv`,"flights-200k.arrow":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-200k.arrow`},e={},n={};function a(t){return new Function("d","return {"+t.map((function(t,s){return JSON.stringify(t)+": d["+s+'] || ""'})).join(",")+"}")}function d(t){var s=Object.create(null),e=[];return t.forEach((function(t){for(var n in t)n in s||e.push(s[n]=n)})),e}function o(t,s){var e=t+"",n=e.length;return n<s?new Array(s-n+1).join(0)+e:e}function r(t){var s,e=t.getUTCHours(),n=t.getUTCMinutes(),a=t.getUTCSeconds(),d=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((s=t.getUTCFullYear())<0?"-"+o(-s,6):s>9999?"+"+o(s,6):o(s,4))+"-"+o(t.getUTCMonth()+1,2)+"-"+o(t.getUTCDate(),2)+(d?"T"+o(e,2)+":"+o(n,2)+":"+o(a,2)+"."+o(d,3)+"Z":a?"T"+o(e,2)+":"+o(n,2)+":"+o(a,2)+"Z":n||e?"T"+o(e,2)+":"+o(n,2)+"Z":"")}var i=function(t){var s=new RegExp('["'+t+"\n\r]"),o=t.charCodeAt(0);function i(t,s){var a,d=[],r=t.length,i=0,c=0,v=r<=0,p=!1;function l(){if(v)return n;if(p)return p=!1,e;var s,a,d=i;if(34===t.charCodeAt(d)){for(;i++<r&&34!==t.charCodeAt(i)||34===t.charCodeAt(++i););return(s=i)>=r?v=!0:10===(a=t.charCodeAt(i++))?p=!0:13===a&&(p=!0,10===t.charCodeAt(i)&&++i),t.slice(d+1,s-1).replace(/""/g,'"')}for(;i<r;){if(10===(a=t.charCodeAt(s=i++)))p=!0;else if(13===a)p=!0,10===t.charCodeAt(i)&&++i;else if(a!==o)continue;return t.slice(d,s)}return v=!0,t.slice(d,r)}for(10===t.charCodeAt(r-1)&&--r,13===t.charCodeAt(r-1)&&--r;(a=l())!==n;){for(var j=[];a!==e&&a!==n;)j.push(a),a=l();s&&null==(j=s(j,c++))||d.push(j)}return d}function c(s,e){return s.map((function(s){return e.map((function(t){return p(s[t])})).join(t)}))}function v(s){return s.map(p).join(t)}function p(t){return null==t?"":t instanceof Date?r(t):s.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,s){var e,n,d=i(t,(function(t,d){if(e)return e(t,d-1);n=t,e=s?function(t,s){var e=a(t);return function(n,a){return s(e(n),a,t)}}(t,s):a(t)}));return d.columns=n||[],d},parseRows:i,format:function(s,e){return null==e&&(e=d(s)),[e.map(p).join(t)].concat(c(s,e)).join("\n")},formatBody:function(t,s){return null==s&&(s=d(t)),c(t,s).join("\n")},formatRows:function(t){return t.map(v).join("\n")},formatRow:v,formatValue:p}}(",").parse;function c(t){for(var s in t){var e,n,a=t[s].trim();if(a)if("true"===a)a=!0;else if("false"===a)a=!1;else if("NaN"===a)a=NaN;else if(isNaN(e=+a)){if(!(n=a.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;v&&n[4]&&!n[7]&&(a=a.replace(/-/g,"/").replace(/T/," ")),a=new Date(a)}else a=e;else a=null;t[s]=a}return t}var v=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),p=function(t,s,e,n){return new(e||(e=Promise))((function(a,d){function o(t){try{i(n.next(t))}catch(t){d(t)}}function r(t){try{i(n.throw(t))}catch(t){d(t)}}function i(t){var s;t.done?a(t.value):(s=t.value,s instanceof e?s:new e((function(t){t(s)}))).then(o,r)}i((n=n.apply(t,s||[])).next())}))};const l={};for(const t of Object.keys(s)){const e=s[t],n=function(){return p(this,void 0,void 0,(function*(){const s=yield fetch(e);return t.endsWith(".json")?yield s.json():t.endsWith(".csv")?i(yield s.text(),c):yield s.text()}))};n.url=e,l[t]=n}return l}));
!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t=t||self).vegaDatasets=s()}(this,(function(){"use strict";var t="2.0.0-beta.5",s={"annual-precip.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/annual-precip.json`,"anscombe.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/anscombe.json`,"barley.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/barley.json`,"budget.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/budget.json`,"budgets.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/budgets.json`,"burtin.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/burtin.json`,"cars.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/cars.json`,"countries.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/countries.json`,"crimea.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/crimea.json`,"driving.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/driving.json`,"earthquakes.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/earthquakes.json`,"flare-dependencies.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flare-dependencies.json`,"flare.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flare.json`,"flights-10k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-10k.json`,"flights-200k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-200k.json`,"flights-20k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-20k.json`,"flights-2k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-2k.json`,"flights-5k.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-5k.json`,"football.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/football.json`,"gapminder.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/gapminder.json`,"income.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/income.json`,"jobs.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/jobs.json`,"londonBoroughs.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/londonBoroughs.json`,"londonCentroids.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/londonCentroids.json`,"londonTubeLines.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/londonTubeLines.json`,"miserables.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/miserables.json`,"monarchs.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/monarchs.json`,"movies.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/movies.json`,"normal-2d.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/normal-2d.json`,"obesity.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/obesity.json`,"ohlc.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/ohlc.json`,"palmerpenguins.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/palmerpenguins.json`,"points.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/points.json`,"political-contributions.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/political-contributions.json`,"population.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/population.json`,"udistrict.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/udistrict.json`,"unemployment-across-industries.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/unemployment-across-industries.json`,"uniform-2d.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/uniform-2d.json`,"us-10m.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/us-10m.json`,"us-state-capitals.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/us-state-capitals.json`,"volcano.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/volcano.json`,"weather.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/weather.json`,"wheat.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/wheat.json`,"world-110m.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/world-110m.json`,"airports.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/airports.csv`,"birdstrikes.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/birdstrikes.csv`,"co2-concentration.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/co2-concentration.csv`,"disasters.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/disasters.csv`,"flights-3m.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-3m.csv`,"flights-airport.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-airport.csv`,"gapminder-health-income.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/gapminder-health-income.csv`,"github.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/github.csv`,"iowa-electricity.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/iowa-electricity.csv`,"la-riots.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/la-riots.csv`,"lookup_groups.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/lookup_groups.csv`,"lookup_people.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/lookup_people.csv`,"population_engineers_hurricanes.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/population_engineers_hurricanes.csv`,"seattle-weather-hourly-normals.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/seattle-weather-hourly-normals.csv`,"seattle-weather.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/seattle-weather.csv`,"sp500.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/sp500.csv`,"stocks.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/stocks.csv`,"us-employment.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/us-employment.csv`,"weather.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/weather.csv`,"windvectors.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/windvectors.csv`,"zipcodes.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/zipcodes.csv`,"unemployment.tsv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/unemployment.tsv`,"flights-200k.arrow":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/flights-200k.arrow`},e={},n={};function a(t){return new Function("d","return {"+t.map((function(t,s){return JSON.stringify(t)+": d["+s+'] || ""'})).join(",")+"}")}function d(t){var s=Object.create(null),e=[];return t.forEach((function(t){for(var n in t)n in s||e.push(s[n]=n)})),e}function o(t,s){var e=t+"",n=e.length;return n<s?new Array(s-n+1).join(0)+e:e}function r(t){var s,e=t.getUTCHours(),n=t.getUTCMinutes(),a=t.getUTCSeconds(),d=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((s=t.getUTCFullYear())<0?"-"+o(-s,6):s>9999?"+"+o(s,6):o(s,4))+"-"+o(t.getUTCMonth()+1,2)+"-"+o(t.getUTCDate(),2)+(d?"T"+o(e,2)+":"+o(n,2)+":"+o(a,2)+"."+o(d,3)+"Z":a?"T"+o(e,2)+":"+o(n,2)+":"+o(a,2)+"Z":n||e?"T"+o(e,2)+":"+o(n,2)+"Z":"")}var i=function(t){var s=new RegExp('["'+t+"\n\r]"),o=t.charCodeAt(0);function i(t,s){var a,d=[],r=t.length,i=0,c=0,p=r<=0,v=!1;function l(){if(p)return n;if(v)return v=!1,e;var s,a,d=i;if(34===t.charCodeAt(d)){for(;i++<r&&34!==t.charCodeAt(i)||34===t.charCodeAt(++i););return(s=i)>=r?p=!0:10===(a=t.charCodeAt(i++))?v=!0:13===a&&(v=!0,10===t.charCodeAt(i)&&++i),t.slice(d+1,s-1).replace(/""/g,'"')}for(;i<r;){if(10===(a=t.charCodeAt(s=i++)))v=!0;else if(13===a)v=!0,10===t.charCodeAt(i)&&++i;else if(a!==o)continue;return t.slice(d,s)}return p=!0,t.slice(d,r)}for(10===t.charCodeAt(r-1)&&--r,13===t.charCodeAt(r-1)&&--r;(a=l())!==n;){for(var j=[];a!==e&&a!==n;)j.push(a),a=l();s&&null==(j=s(j,c++))||d.push(j)}return d}function c(s,e){return s.map((function(s){return e.map((function(t){return v(s[t])})).join(t)}))}function p(s){return s.map(v).join(t)}function v(t){return null==t?"":t instanceof Date?r(t):s.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,s){var e,n,d=i(t,(function(t,d){if(e)return e(t,d-1);n=t,e=s?function(t,s){var e=a(t);return function(n,a){return s(e(n),a,t)}}(t,s):a(t)}));return d.columns=n||[],d},parseRows:i,format:function(s,e){return null==e&&(e=d(s)),[e.map(v).join(t)].concat(c(s,e)).join("\n")},formatBody:function(t,s){return null==s&&(s=d(t)),c(t,s).join("\n")},formatRows:function(t){return t.map(p).join("\n")},formatRow:p,formatValue:v}}(",").parse;function c(t){for(var s in t){var e,n,a=t[s].trim();if(a)if("true"===a)a=!0;else if("false"===a)a=!1;else if("NaN"===a)a=NaN;else if(isNaN(e=+a)){if(!(n=a.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;p&&n[4]&&!n[7]&&(a=a.replace(/-/g,"/").replace(/T/," ")),a=new Date(a)}else a=e;else a=null;t[s]=a}return t}var p=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),v=function(t,s,e,n){return new(e||(e=Promise))((function(a,d){function o(t){try{i(n.next(t))}catch(t){d(t)}}function r(t){try{i(n.throw(t))}catch(t){d(t)}}function i(t){var s;t.done?a(t.value):(s=t.value,s instanceof e?s:new e((function(t){t(s)}))).then(o,r)}i((n=n.apply(t,s||[])).next())}))};const l={};for(const t of Object.keys(s)){const e=s[t],n=function(){return v(this,void 0,void 0,(function*(){const s=yield fetch(e);return t.endsWith(".json")?yield s.json():t.endsWith(".csv")?i(yield s.text(),c):yield s.text()}))};n.url=e,l[t]=n}return l}));

@@ -11,3 +11,3 @@ ### Version 2.0

- Convert `birdstrikes.json` to `birdstrikes.csv` and use ISO 8601 dates.
- Convert `movies.json` to `movies.csv` and use ISO 8601 dates.
- Convert `movies.json` to use column names with spaces use ISO 8601 dates.
- Remove `climate.json`.

@@ -14,0 +14,0 @@ - Replace `seattle-temps.csv` with more general `seattle-weather-hourly-normals.csv`.

{
"name": "vega-datasets",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "Common repository for example datasets used by Vega related projects.",

@@ -5,0 +5,0 @@ "main": "build/vega-datasets",

@@ -15,4 +15,2 @@ # Vega Datasets

The [Vega datasets preview notebook](https://observablehq.com/@randomfractals/vega-datasets) offers a quick way to browse the content of the available datasets.
## Versioning

@@ -19,0 +17,0 @@

@@ -108,3 +108,3 @@ # Sources

## `movies.csv`
## `movies.json`

@@ -111,0 +111,0 @@ The dataset has well known and intentionally included errors. This dataset is used for instructional purposes, including the need to reckon with dirty data.

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