Socket
Socket
Sign inDemoInstall

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.4 to 1.0.5

2

build/d3-dsv.js

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

// https://d3js.org/d3-dsv/ Version 1.0.4. Copyright 2017 Mike Bostock.
// https://d3js.org/d3-dsv/ Version 1.0.5. Copyright 2017 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.4. Copyright 2017 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}var o=function(r){function o(r,e){var o,a,i=u(r,function(r,u){if(o)return o(r,u-1);a=r,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\r]"),p=r.charCodeAt(0);return{parse:o,parseRows:u,format:a,formatRows:i}},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})});
// https://d3js.org/d3-dsv/ Version 1.0.5. Copyright 2017 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}var o=function(r){function o(r,e){var o,a,i=u(r,function(r,u){if(o)return o(r,u-1);a=r,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(10===(n=r.charCodeAt(c++)))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\r]"),p=r.charCodeAt(0);return{parse:o,parseRows:u,format:a,formatRows:i}},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.4",
"version": "1.0.5",
"description": "A parser and formatter for delimiter-separated values, such as CSV and TSV",

@@ -49,8 +49,8 @@ "keywords": [

"csv-spectrum": "1",
"eslint": "2",
"eslint": "3",
"package-preamble": "0.0",
"rollup": "0.41",
"tape": "4",
"uglify-js": "2"
"uglify-js": "^2.8.11"
}
}

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