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 1.30.4 to 1.31.0

build/package.json

187

build/vega-datasets.js

@@ -7,72 +7,121 @@ (function (global, factory) {

var name = "vega-datasets";
var version = "1.31.0";
var description = "Common repository for example datasets used by Vega related projects.";
var main = "build/vega-datasets";
var module = "build/src/data";
var unpkg = "build/vega-datasets.min.js";
var jsdelivr = "build/vega-datasets.min.js";
var typings = "build/src/data.d.ts";
var repository = {
type: "git",
url: "http://github.com/vega/vega-datasets.git"
};
var author = {
name: "UW Interactive Data Lab",
url: "http://idl.cs.washington.edu"
};
var devDependencies = {
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^8.0.0",
"@types/d3-dsv": "^1.0.36",
"d3-dsv": "^1.2.0",
datalib: "^1.9.2",
rollup: "^2.11.2",
terser: "^4.7.0",
typescript: "^3.9.3"
};
var scripts = {
index: "./scripts/make-url-index.sh > src/urls.ts",
prebuild: "npm run index && tsc",
build: "rollup -c",
postbuild: "terser build/vega-datasets.js -cm > build/vega-datasets.min.js",
flights: "node scripts/flights.js",
github: "python scripts/github.py"
};
var version$1 = {
name: name,
version: version,
description: description,
main: main,
module: module,
unpkg: unpkg,
jsdelivr: jsdelivr,
typings: typings,
repository: repository,
author: author,
devDependencies: devDependencies,
scripts: scripts
};
var urls = {
'annual-precip.json': 'https://vega.github.io/vega-datasets/data/annual-precip.json',
'anscombe.json': 'https://vega.github.io/vega-datasets/data/anscombe.json',
'barley.json': 'https://vega.github.io/vega-datasets/data/barley.json',
'birdstrikes.json': 'https://vega.github.io/vega-datasets/data/birdstrikes.json',
'budget.json': 'https://vega.github.io/vega-datasets/data/budget.json',
'budgets.json': 'https://vega.github.io/vega-datasets/data/budgets.json',
'burtin.json': 'https://vega.github.io/vega-datasets/data/burtin.json',
'cars.json': 'https://vega.github.io/vega-datasets/data/cars.json',
'climate.json': 'https://vega.github.io/vega-datasets/data/climate.json',
'countries.json': 'https://vega.github.io/vega-datasets/data/countries.json',
'crimea.json': 'https://vega.github.io/vega-datasets/data/crimea.json',
'driving.json': 'https://vega.github.io/vega-datasets/data/driving.json',
'earthquakes.json': 'https://vega.github.io/vega-datasets/data/earthquakes.json',
'flare-dependencies.json': 'https://vega.github.io/vega-datasets/data/flare-dependencies.json',
'flare.json': 'https://vega.github.io/vega-datasets/data/flare.json',
'flights-10k.json': 'https://vega.github.io/vega-datasets/data/flights-10k.json',
'flights-200k.json': 'https://vega.github.io/vega-datasets/data/flights-200k.json',
'flights-20k.json': 'https://vega.github.io/vega-datasets/data/flights-20k.json',
'flights-2k.json': 'https://vega.github.io/vega-datasets/data/flights-2k.json',
'flights-5k.json': 'https://vega.github.io/vega-datasets/data/flights-5k.json',
'gapminder.json': 'https://vega.github.io/vega-datasets/data/gapminder.json',
'graticule.json': 'https://vega.github.io/vega-datasets/data/graticule.json',
'income.json': 'https://vega.github.io/vega-datasets/data/income.json',
'iris.json': 'https://vega.github.io/vega-datasets/data/iris.json',
'jobs.json': 'https://vega.github.io/vega-datasets/data/jobs.json',
'londonBoroughs.json': 'https://vega.github.io/vega-datasets/data/londonBoroughs.json',
'londonCentroids.json': 'https://vega.github.io/vega-datasets/data/londonCentroids.json',
'londonTubeLines.json': 'https://vega.github.io/vega-datasets/data/londonTubeLines.json',
'miserables.json': 'https://vega.github.io/vega-datasets/data/miserables.json',
'monarchs.json': 'https://vega.github.io/vega-datasets/data/monarchs.json',
'movies.json': 'https://vega.github.io/vega-datasets/data/movies.json',
'normal-2d.json': 'https://vega.github.io/vega-datasets/data/normal-2d.json',
'obesity.json': 'https://vega.github.io/vega-datasets/data/obesity.json',
'ohlc.json': 'https://vega.github.io/vega-datasets/data/ohlc.json',
'points.json': 'https://vega.github.io/vega-datasets/data/points.json',
'population.json': 'https://vega.github.io/vega-datasets/data/population.json',
'udistrict.json': 'https://vega.github.io/vega-datasets/data/udistrict.json',
'unemployment-across-industries.json': 'https://vega.github.io/vega-datasets/data/unemployment-across-industries.json',
'uniform-2d.json': 'https://vega.github.io/vega-datasets/data/uniform-2d.json',
'us-10m.json': 'https://vega.github.io/vega-datasets/data/us-10m.json',
'us-state-capitals.json': 'https://vega.github.io/vega-datasets/data/us-state-capitals.json',
'volcano.json': 'https://vega.github.io/vega-datasets/data/volcano.json',
'weather.json': 'https://vega.github.io/vega-datasets/data/weather.json',
'weball26.json': 'https://vega.github.io/vega-datasets/data/weball26.json',
'wheat.json': 'https://vega.github.io/vega-datasets/data/wheat.json',
'world-110m.json': 'https://vega.github.io/vega-datasets/data/world-110m.json',
'airports.csv': 'https://vega.github.io/vega-datasets/data/airports.csv',
'co2-concentration.csv': 'https://vega.github.io/vega-datasets/data/co2-concentration.csv',
'disasters.csv': 'https://vega.github.io/vega-datasets/data/disasters.csv',
'flights-3m.csv': 'https://vega.github.io/vega-datasets/data/flights-3m.csv',
'flights-airport.csv': 'https://vega.github.io/vega-datasets/data/flights-airport.csv',
'gapminder-health-income.csv': 'https://vega.github.io/vega-datasets/data/gapminder-health-income.csv',
'github.csv': 'https://vega.github.io/vega-datasets/data/github.csv',
'iowa-electricity.csv': 'https://vega.github.io/vega-datasets/data/iowa-electricity.csv',
'la-riots.csv': 'https://vega.github.io/vega-datasets/data/la-riots.csv',
'lookup_groups.csv': 'https://vega.github.io/vega-datasets/data/lookup_groups.csv',
'lookup_people.csv': 'https://vega.github.io/vega-datasets/data/lookup_people.csv',
'population_engineers_hurricanes.csv': 'https://vega.github.io/vega-datasets/data/population_engineers_hurricanes.csv',
'seattle-temps.csv': 'https://vega.github.io/vega-datasets/data/seattle-temps.csv',
'seattle-weather.csv': 'https://vega.github.io/vega-datasets/data/seattle-weather.csv',
'sf-temps.csv': 'https://vega.github.io/vega-datasets/data/sf-temps.csv',
'sp500.csv': 'https://vega.github.io/vega-datasets/data/sp500.csv',
'stocks.csv': 'https://vega.github.io/vega-datasets/data/stocks.csv',
'us-employment.csv': 'https://vega.github.io/vega-datasets/data/us-employment.csv',
'weather.csv': 'https://vega.github.io/vega-datasets/data/weather.csv',
'windvectors.csv': 'https://vega.github.io/vega-datasets/data/windvectors.csv',
'zipcodes.csv': 'https://vega.github.io/vega-datasets/data/zipcodes.csv',
'unemployment.tsv': 'https://vega.github.io/vega-datasets/data/unemployment.tsv',
'flights-200k.arrow': 'https://vega.github.io/vega-datasets/data/flights-200k.arrow',
'annual-precip.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/annual-precip.json`,
'anscombe.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/anscombe.json`,
'barley.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/barley.json`,
'birdstrikes.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/birdstrikes.json`,
'budget.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/budget.json`,
'budgets.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/budgets.json`,
'burtin.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/burtin.json`,
'cars.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/cars.json`,
'climate.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/climate.json`,
'countries.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/countries.json`,
'crimea.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/crimea.json`,
'driving.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/driving.json`,
'earthquakes.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/earthquakes.json`,
'flare-dependencies.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flare-dependencies.json`,
'flare.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flare.json`,
'flights-10k.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-10k.json`,
'flights-200k.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-200k.json`,
'flights-20k.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-20k.json`,
'flights-2k.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-2k.json`,
'flights-5k.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-5k.json`,
'gapminder.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/gapminder.json`,
'graticule.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/graticule.json`,
'income.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/income.json`,
'iris.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/iris.json`,
'jobs.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/jobs.json`,
'londonBoroughs.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/londonBoroughs.json`,
'londonCentroids.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/londonCentroids.json`,
'londonTubeLines.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/londonTubeLines.json`,
'miserables.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/miserables.json`,
'monarchs.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/monarchs.json`,
'movies.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/movies.json`,
'normal-2d.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/normal-2d.json`,
'obesity.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/obesity.json`,
'ohlc.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/ohlc.json`,
'points.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/points.json`,
'population.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/population.json`,
'udistrict.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/udistrict.json`,
'unemployment-across-industries.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/unemployment-across-industries.json`,
'uniform-2d.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/uniform-2d.json`,
'us-10m.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/us-10m.json`,
'us-state-capitals.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/us-state-capitals.json`,
'volcano.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/volcano.json`,
'weather.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/weather.json`,
'weball26.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/weball26.json`,
'wheat.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/wheat.json`,
'world-110m.json': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/world-110m.json`,
'airports.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/airports.csv`,
'co2-concentration.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/co2-concentration.csv`,
'disasters.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/disasters.csv`,
'flights-3m.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-3m.csv`,
'flights-airport.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-airport.csv`,
'gapminder-health-income.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/gapminder-health-income.csv`,
'github.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/github.csv`,
'iowa-electricity.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/iowa-electricity.csv`,
'la-riots.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/la-riots.csv`,
'lookup_groups.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/lookup_groups.csv`,
'lookup_people.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/lookup_people.csv`,
'population_engineers_hurricanes.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/population_engineers_hurricanes.csv`,
'seattle-temps.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/seattle-temps.csv`,
'seattle-weather.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/seattle-weather.csv`,
'sf-temps.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/sf-temps.csv`,
'sp500.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/sp500.csv`,
'stocks.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/stocks.csv`,
'us-employment.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/us-employment.csv`,
'weather.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/weather.csv`,
'windvectors.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/windvectors.csv`,
'zipcodes.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/zipcodes.csv`,
'unemployment.tsv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/unemployment.tsv`,
'flights-200k.arrow': `https://cdn.jsdelivr.net/npm/vega-datasets@${version$1}/data/flights-200k.arrow`,
};

@@ -79,0 +128,0 @@

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

!function(t,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):(t=t||self).vegaDatasets=a()}(this,(function(){"use strict";var t={"annual-precip.json":"https://vega.github.io/vega-datasets/data/annual-precip.json","anscombe.json":"https://vega.github.io/vega-datasets/data/anscombe.json","barley.json":"https://vega.github.io/vega-datasets/data/barley.json","birdstrikes.json":"https://vega.github.io/vega-datasets/data/birdstrikes.json","budget.json":"https://vega.github.io/vega-datasets/data/budget.json","budgets.json":"https://vega.github.io/vega-datasets/data/budgets.json","burtin.json":"https://vega.github.io/vega-datasets/data/burtin.json","cars.json":"https://vega.github.io/vega-datasets/data/cars.json","climate.json":"https://vega.github.io/vega-datasets/data/climate.json","countries.json":"https://vega.github.io/vega-datasets/data/countries.json","crimea.json":"https://vega.github.io/vega-datasets/data/crimea.json","driving.json":"https://vega.github.io/vega-datasets/data/driving.json","earthquakes.json":"https://vega.github.io/vega-datasets/data/earthquakes.json","flare-dependencies.json":"https://vega.github.io/vega-datasets/data/flare-dependencies.json","flare.json":"https://vega.github.io/vega-datasets/data/flare.json","flights-10k.json":"https://vega.github.io/vega-datasets/data/flights-10k.json","flights-200k.json":"https://vega.github.io/vega-datasets/data/flights-200k.json","flights-20k.json":"https://vega.github.io/vega-datasets/data/flights-20k.json","flights-2k.json":"https://vega.github.io/vega-datasets/data/flights-2k.json","flights-5k.json":"https://vega.github.io/vega-datasets/data/flights-5k.json","gapminder.json":"https://vega.github.io/vega-datasets/data/gapminder.json","graticule.json":"https://vega.github.io/vega-datasets/data/graticule.json","income.json":"https://vega.github.io/vega-datasets/data/income.json","iris.json":"https://vega.github.io/vega-datasets/data/iris.json","jobs.json":"https://vega.github.io/vega-datasets/data/jobs.json","londonBoroughs.json":"https://vega.github.io/vega-datasets/data/londonBoroughs.json","londonCentroids.json":"https://vega.github.io/vega-datasets/data/londonCentroids.json","londonTubeLines.json":"https://vega.github.io/vega-datasets/data/londonTubeLines.json","miserables.json":"https://vega.github.io/vega-datasets/data/miserables.json","monarchs.json":"https://vega.github.io/vega-datasets/data/monarchs.json","movies.json":"https://vega.github.io/vega-datasets/data/movies.json","normal-2d.json":"https://vega.github.io/vega-datasets/data/normal-2d.json","obesity.json":"https://vega.github.io/vega-datasets/data/obesity.json","ohlc.json":"https://vega.github.io/vega-datasets/data/ohlc.json","points.json":"https://vega.github.io/vega-datasets/data/points.json","population.json":"https://vega.github.io/vega-datasets/data/population.json","udistrict.json":"https://vega.github.io/vega-datasets/data/udistrict.json","unemployment-across-industries.json":"https://vega.github.io/vega-datasets/data/unemployment-across-industries.json","uniform-2d.json":"https://vega.github.io/vega-datasets/data/uniform-2d.json","us-10m.json":"https://vega.github.io/vega-datasets/data/us-10m.json","us-state-capitals.json":"https://vega.github.io/vega-datasets/data/us-state-capitals.json","volcano.json":"https://vega.github.io/vega-datasets/data/volcano.json","weather.json":"https://vega.github.io/vega-datasets/data/weather.json","weball26.json":"https://vega.github.io/vega-datasets/data/weball26.json","wheat.json":"https://vega.github.io/vega-datasets/data/wheat.json","world-110m.json":"https://vega.github.io/vega-datasets/data/world-110m.json","airports.csv":"https://vega.github.io/vega-datasets/data/airports.csv","co2-concentration.csv":"https://vega.github.io/vega-datasets/data/co2-concentration.csv","disasters.csv":"https://vega.github.io/vega-datasets/data/disasters.csv","flights-3m.csv":"https://vega.github.io/vega-datasets/data/flights-3m.csv","flights-airport.csv":"https://vega.github.io/vega-datasets/data/flights-airport.csv","gapminder-health-income.csv":"https://vega.github.io/vega-datasets/data/gapminder-health-income.csv","github.csv":"https://vega.github.io/vega-datasets/data/github.csv","iowa-electricity.csv":"https://vega.github.io/vega-datasets/data/iowa-electricity.csv","la-riots.csv":"https://vega.github.io/vega-datasets/data/la-riots.csv","lookup_groups.csv":"https://vega.github.io/vega-datasets/data/lookup_groups.csv","lookup_people.csv":"https://vega.github.io/vega-datasets/data/lookup_people.csv","population_engineers_hurricanes.csv":"https://vega.github.io/vega-datasets/data/population_engineers_hurricanes.csv","seattle-temps.csv":"https://vega.github.io/vega-datasets/data/seattle-temps.csv","seattle-weather.csv":"https://vega.github.io/vega-datasets/data/seattle-weather.csv","sf-temps.csv":"https://vega.github.io/vega-datasets/data/sf-temps.csv","sp500.csv":"https://vega.github.io/vega-datasets/data/sp500.csv","stocks.csv":"https://vega.github.io/vega-datasets/data/stocks.csv","us-employment.csv":"https://vega.github.io/vega-datasets/data/us-employment.csv","weather.csv":"https://vega.github.io/vega-datasets/data/weather.csv","windvectors.csv":"https://vega.github.io/vega-datasets/data/windvectors.csv","zipcodes.csv":"https://vega.github.io/vega-datasets/data/zipcodes.csv","unemployment.tsv":"https://vega.github.io/vega-datasets/data/unemployment.tsv","flights-200k.arrow":"https://vega.github.io/vega-datasets/data/flights-200k.arrow"},a={},s={};function e(t){return new Function("d","return {"+t.map((function(t,a){return JSON.stringify(t)+": d["+a+'] || ""'})).join(",")+"}")}function o(t){var a=Object.create(null),s=[];return t.forEach((function(t){for(var e in t)e in a||s.push(a[e]=e)})),s}function n(t,a){var s=t+"",e=s.length;return e<a?new Array(a-e+1).join(0)+s:s}function i(t){var a,s=t.getUTCHours(),e=t.getUTCMinutes(),o=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((a=t.getUTCFullYear())<0?"-"+n(-a,6):a>9999?"+"+n(a,6):n(a,4))+"-"+n(t.getUTCMonth()+1,2)+"-"+n(t.getUTCDate(),2)+(i?"T"+n(s,2)+":"+n(e,2)+":"+n(o,2)+"."+n(i,3)+"Z":o?"T"+n(s,2)+":"+n(e,2)+":"+n(o,2)+"Z":e||s?"T"+n(s,2)+":"+n(e,2)+"Z":"")}var g=function(t){var n=new RegExp('["'+t+"\n\r]"),g=t.charCodeAt(0);function d(t,e){var o,n=[],i=t.length,d=0,r=0,v=i<=0,u=!1;function h(){if(v)return s;if(u)return u=!1,a;var e,o,n=d;if(34===t.charCodeAt(n)){for(;d++<i&&34!==t.charCodeAt(d)||34===t.charCodeAt(++d););return(e=d)>=i?v=!0:10===(o=t.charCodeAt(d++))?u=!0:13===o&&(u=!0,10===t.charCodeAt(d)&&++d),t.slice(n+1,e-1).replace(/""/g,'"')}for(;d<i;){if(10===(o=t.charCodeAt(e=d++)))u=!0;else if(13===o)u=!0,10===t.charCodeAt(d)&&++d;else if(o!==g)continue;return t.slice(n,e)}return v=!0,t.slice(n,i)}for(10===t.charCodeAt(i-1)&&--i,13===t.charCodeAt(i-1)&&--i;(o=h())!==s;){for(var c=[];o!==a&&o!==s;)c.push(o),o=h();e&&null==(c=e(c,r++))||n.push(c)}return n}function r(a,s){return a.map((function(a){return s.map((function(t){return u(a[t])})).join(t)}))}function v(a){return a.map(u).join(t)}function u(t){return null==t?"":t instanceof Date?i(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,a){var s,o,n=d(t,(function(t,n){if(s)return s(t,n-1);o=t,s=a?function(t,a){var s=e(t);return function(e,o){return a(s(e),o,t)}}(t,a):e(t)}));return n.columns=o||[],n},parseRows:d,format:function(a,s){return null==s&&(s=o(a)),[s.map(u).join(t)].concat(r(a,s)).join("\n")},formatBody:function(t,a){return null==a&&(a=o(t)),r(t,a).join("\n")},formatRows:function(t){return t.map(v).join("\n")},formatRow:v,formatValue:u}}(",").parse;function d(t){for(var a in t){var s,e,o=t[a].trim();if(o)if("true"===o)o=!0;else if("false"===o)o=!1;else if("NaN"===o)o=NaN;else if(isNaN(s=+o)){if(!(e=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;r&&e[4]&&!e[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=s;else o=null;t[a]=o}return t}var r=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),v=function(t,a,s,e){return new(s||(s=Promise))((function(o,n){function i(t){try{d(e.next(t))}catch(t){n(t)}}function g(t){try{d(e.throw(t))}catch(t){n(t)}}function d(t){var a;t.done?o(t.value):(a=t.value,a instanceof s?a:new s((function(t){t(a)}))).then(i,g)}d((e=e.apply(t,a||[])).next())}))};const u={};for(const a of Object.keys(t)){const s=t[a],e=function(){return v(this,void 0,void 0,(function*(){const t=yield fetch(s);return a.endsWith(".json")?yield t.json():a.endsWith(".csv")?g(yield t.text(),d):yield t.text()}))};e.url=s,u[a]=e}return u}));
!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={name:"vega-datasets",version:"1.31.0",description:"Common repository for example datasets used by Vega related projects.",main:"build/vega-datasets",module:"build/src/data",unpkg:"build/vega-datasets.min.js",jsdelivr:"build/vega-datasets.min.js",typings:"build/src/data.d.ts",repository:{type:"git",url:"http://github.com/vega/vega-datasets.git"},author:{name:"UW Interactive Data Lab",url:"http://idl.cs.washington.edu"},devDependencies:{"@rollup/plugin-json":"^4.0.3","@rollup/plugin-node-resolve":"^8.0.0","@types/d3-dsv":"^1.0.36","d3-dsv":"^1.2.0",datalib:"^1.9.2",rollup:"^2.11.2",terser:"^4.7.0",typescript:"^3.9.3"},scripts:{index:"./scripts/make-url-index.sh > src/urls.ts",prebuild:"npm run index && tsc",build:"rollup -c",postbuild:"terser build/vega-datasets.js -cm > build/vega-datasets.min.js",flights:"node scripts/flights.js",github:"python scripts/github.py"}},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`,"birdstrikes.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/birdstrikes.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`,"climate.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/climate.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`,"gapminder.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/gapminder.json`,"graticule.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/graticule.json`,"income.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/income.json`,"iris.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/iris.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`,"points.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/points.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`,"weball26.json":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/weball26.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`,"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-temps.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/seattle-temps.csv`,"seattle-weather.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/seattle-weather.csv`,"sf-temps.csv":`https://cdn.jsdelivr.net/npm/vega-datasets@${t}/data/sf-temps.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 r(t,s){var e=t+"",n=e.length;return n<s?new Array(s-n+1).join(0)+e:e}function o(t){var s,e=t.getUTCHours(),n=t.getUTCMinutes(),a=t.getUTCSeconds(),d=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((s=t.getUTCFullYear())<0?"-"+r(-s,6):s>9999?"+"+r(s,6):r(s,4))+"-"+r(t.getUTCMonth()+1,2)+"-"+r(t.getUTCDate(),2)+(d?"T"+r(e,2)+":"+r(n,2)+":"+r(a,2)+"."+r(d,3)+"Z":a?"T"+r(e,2)+":"+r(n,2)+":"+r(a,2)+"Z":n||e?"T"+r(e,2)+":"+r(n,2)+"Z":"")}var i=function(t){var s=new RegExp('["'+t+"\n\r]"),r=t.charCodeAt(0);function i(t,s){var a,d=[],o=t.length,i=0,c=0,p=o<=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++<o&&34!==t.charCodeAt(i)||34===t.charCodeAt(++i););return(s=i)>=o?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<o;){if(10===(a=t.charCodeAt(s=i++)))v=!0;else if(13===a)v=!0,10===t.charCodeAt(i)&&++i;else if(a!==r)continue;return t.slice(d,s)}return p=!0,t.slice(d,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(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?o(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 r(t){try{i(n.next(t))}catch(t){d(t)}}function o(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(r,o)}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}));
{
"name": "vega-datasets",
"version": "1.30.4",
"version": "1.31.0",
"description": "Common repository for example datasets used by Vega related projects.",
"main": "build/vega-datasets",
"module": "build/data",
"module": "build/src/data",
"unpkg": "build/vega-datasets.min.js",
"jsdelivr": "build/vega-datasets.min.js",
"typings": "build/data.d.ts",
"typings": "build/src/data.d.ts",
"repository": {

@@ -19,2 +19,3 @@ "type": "git",

"devDependencies": {
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^8.0.0",

@@ -21,0 +22,0 @@ "@types/d3-dsv": "^1.0.36",

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