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

csvtojson

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csvtojson - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

13

libs/core/init_onrecord.js

@@ -18,5 +18,2 @@ /**

var ele = rowArr[i];
if (self.param.trim){
ele=ele.toString().trim();
}
if (self._isToogleQuote(ele)) {

@@ -27,2 +24,5 @@ if (inquote) {

quoteBuff += ele.substr(0, ele.length - 1);
if (self.param.trim){
quoteBuff=quoteBuff.toString().trim();
}
row.push(quoteBuff);

@@ -36,3 +36,3 @@ quoteBuff = "";

if (inquote) {
quoteBuff += ele;
quoteBuff += delimiter + ele;
} else {

@@ -42,2 +42,5 @@ if (ele.indexOf(quote) === 0 && ele[ele.length - 1] == quote) {

}
if (self.param.trim){
ele=ele.toString().trim();
}
row.push(ele);

@@ -61,2 +64,2 @@ }

});
}
}

@@ -15,3 +15,3 @@ {

}],
"version": "0.3.10",
"version": "0.3.11",
"keywords": [

@@ -18,0 +18,0 @@ "csv",

@@ -142,2 +142,3 @@ var CSVAdv = require("../libs/core/csvConverter.js");

assert(jsonObj[0].TIMESTAMP=='13954264""22',JSON.stringify(jsonObj[0].TIMESTAMP));
assert(jsonObj[1].TIMESTAMP=='abc, def, ccc',JSON.stringify(jsonObj[1].TIMESTAMP));
done();

@@ -144,0 +145,0 @@ });

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