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

d3-dsv

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-dsv - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

build/d3-dsv.js

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

// https://d3js.org/d3-dsv/ Version 1.0.0. Copyright 2016 Mike Bostock.
// https://d3js.org/d3-dsv/ Version 1.0.1. Copyright 2016 Mike Bostock.
(function (global, factory) {

@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

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

// https://d3js.org/d3-dsv/ Version 1.0.0. Copyright 2016 Mike Bostock.
!function(r,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(r.d3=r.d3||{})}(this,function(r){"use strict";function n(r){return new Function("d","return {"+r.map(function(r,n){return JSON.stringify(r)+": d["+n+"]"}).join(",")+"}")}function t(r,t){var e=n(r);return function(n,o){return t(e(n),o,r)}}function e(r){var n=Object.create(null),t=[];return r.forEach(function(r){for(var e in r)e in n||t.push(n[e]=e)}),t}function o(r){function o(r,e){var o,a,i=u(r,function(r,u){return o?o(r,u-1):(a=r,void(o=e?t(r,e):n(r)))});return i.columns=a,i}function u(r,n){function t(){if(c>=f)return a;if(o)return o=!1,u;var n,t=c;if(34===r.charCodeAt(t)){for(var e=t;e++<f;)if(34===r.charCodeAt(e)){if(34!==r.charCodeAt(e+1))break;++e}return c=e+2,n=r.charCodeAt(e+1),13===n?(o=!0,10===r.charCodeAt(e+2)&&++c):10===n&&(o=!0),r.slice(t+1,e).replace(/""/g,'"')}for(;f>c;){var i=1;if(n=r.charCodeAt(c++),10===n)o=!0;else if(13===n)o=!0,10===r.charCodeAt(c)&&(++c,++i);else if(n!==p)continue;return r.slice(t,c-i)}return r.slice(t)}for(var e,o,u={},a={},i=[],f=r.length,c=0,s=0;(e=t())!==a;){for(var d=[];e!==u&&e!==a;)d.push(e),e=t();n&&null==(d=n(d,s++))||i.push(d)}return i}function a(n,t){return null==t&&(t=e(n)),[t.map(c).join(r)].concat(n.map(function(n){return t.map(function(r){return c(n[r])}).join(r)})).join("\n")}function i(r){return r.map(f).join("\n")}function f(n){return n.map(c).join(r)}function c(r){return null==r?"":s.test(r+="")?'"'+r.replace(/\"/g,'""')+'"':r}var s=new RegExp('["'+r+"\n]"),p=r.charCodeAt(0);return{parse:o,parseRows:u,format:a,formatRows:i}}var u=o(","),a=u.parse,i=u.parseRows,f=u.format,c=u.formatRows,s=o(" "),p=s.parse,d=s.parseRows,v=s.format,l=s.formatRows;r.dsvFormat=o,r.csvParse=a,r.csvParseRows=i,r.csvFormat=f,r.csvFormatRows=c,r.tsvParse=p,r.tsvParseRows=d,r.tsvFormat=v,r.tsvFormatRows=l,Object.defineProperty(r,"__esModule",{value:!0})});
// https://d3js.org/d3-dsv/ Version 1.0.1. Copyright 2016 Mike Bostock.
!function(r,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(r.d3=r.d3||{})}(this,function(r){"use strict";function n(r){return new Function("d","return {"+r.map(function(r,n){return JSON.stringify(r)+": d["+n+"]"}).join(",")+"}")}function t(r,t){var e=n(r);return function(n,o){return t(e(n),o,r)}}function e(r){var n=Object.create(null),t=[];return r.forEach(function(r){for(var e in r)e in n||t.push(n[e]=e)}),t}function o(r){function o(r,e){var o,a,i=u(r,function(r,u){return o?o(r,u-1):(a=r,void(o=e?t(r,e):n(r)))});return i.columns=a,i}function u(r,n){function t(){if(c>=f)return a;if(o)return o=!1,u;var n,t=c;if(34===r.charCodeAt(t)){for(var e=t;e++<f;)if(34===r.charCodeAt(e)){if(34!==r.charCodeAt(e+1))break;++e}return c=e+2,n=r.charCodeAt(e+1),13===n?(o=!0,10===r.charCodeAt(e+2)&&++c):10===n&&(o=!0),r.slice(t+1,e).replace(/""/g,'"')}for(;c<f;){var i=1;if(n=r.charCodeAt(c++),10===n)o=!0;else if(13===n)o=!0,10===r.charCodeAt(c)&&(++c,++i);else if(n!==p)continue;return r.slice(t,c-i)}return r.slice(t)}for(var e,o,u={},a={},i=[],f=r.length,c=0,s=0;(e=t())!==a;){for(var d=[];e!==u&&e!==a;)d.push(e),e=t();n&&null==(d=n(d,s++))||i.push(d)}return i}function a(n,t){return null==t&&(t=e(n)),[t.map(c).join(r)].concat(n.map(function(n){return t.map(function(r){return c(n[r])}).join(r)})).join("\n")}function i(r){return r.map(f).join("\n")}function f(n){return n.map(c).join(r)}function c(r){return null==r?"":s.test(r+="")?'"'+r.replace(/\"/g,'""')+'"':r}var s=new RegExp('["'+r+"\n]"),p=r.charCodeAt(0);return{parse:o,parseRows:u,format:a,formatRows:i}}var u=o(","),a=u.parse,i=u.parseRows,f=u.format,c=u.formatRows,s=o("\t"),p=s.parse,d=s.parseRows,v=s.format,l=s.formatRows;r.dsvFormat=o,r.csvParse=a,r.csvParseRows=i,r.csvFormat=f,r.csvFormatRows=c,r.tsvParse=p,r.tsvParseRows=d,r.tsvFormat=v,r.tsvFormatRows=l,Object.defineProperty(r,"__esModule",{value:!0})});
{
"name": "d3-dsv",
"version": "1.0.0",
"version": "1.0.1",
"description": "A parser and formatter for delimiter-separated values, such as CSV and TSV",

@@ -19,2 +19,3 @@ "keywords": [

"main": "build/d3-dsv.js",
"module": "index",
"jsnext:main": "index.js",

@@ -35,3 +36,3 @@ "bin": {

"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-dsv.js -c -m -o build/d3-dsv.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-dsv.js ../d3.github.com/d3-dsv.v1.js && cp build/d3-dsv.min.js ../d3.github.com/d3-dsv.v1.min.js && cd ../d3.github.com && git add d3-dsv.v1.js d3-dsv.v1.min.js && git commit -m \"d3-dsv ${VERSION}\" && git push && cd - && zip -j build/d3-dsv.zip -- LICENSE README.md build/d3-dsv.js build/d3-dsv.min.js"
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-dsv/build/d3-dsv.js d3-dsv.v1.js && cp ../d3-dsv/build/d3-dsv.min.js d3-dsv.v1.min.js && git add d3-dsv.v1.js d3-dsv.v1.min.js && git commit -m \"d3-dsv ${VERSION}\" && git push && cd - && zip -j build/d3-dsv.zip -- LICENSE README.md build/d3-dsv.js build/d3-dsv.min.js"
},

@@ -44,3 +45,3 @@ "dependencies": {

"package-preamble": "0.0",
"rollup": "0.31",
"rollup": "0.34",
"tape": "4",

@@ -47,0 +48,0 @@ "uglify-js": "2"

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