Socket
Socket
Sign inDemoInstall

csv-stringify

Package Overview
Dependencies
0
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.4.3 to 5.5.0

5

CHANGELOG.md
# Changelog
## Version 5.5.0
Feature:
* cast: support for BigInt
## Version 5.4.3

@@ -5,0 +10,0 @@

12

lib/es5/index.js

@@ -249,5 +249,13 @@ "use strict";

} else {} // todo
// Normalize option cast.boolean
// Normalize option cast.bigint
if (options.cast.bigint === undefined || options.cast.bigint === null) {
// Cast boolean to string by default
options.cast.bigint = function (value) {
return '' + value;
};
} // Normalize option cast.boolean
if (options.cast["boolean"] === undefined || options.cast["boolean"] === null) {

@@ -631,2 +639,4 @@ // Cast boolean to string by default

return [undefined, this.options.cast.string(value, context)];
} else if (type === 'bigint') {
return [undefined, this.options.cast.bigint(value, context)];
} else if (type === 'number') {

@@ -633,0 +643,0 @@ return [undefined, this.options.cast.number(value, context)];

@@ -163,2 +163,7 @@

}
// Normalize option cast.bigint
if(options.cast.bigint === undefined || options.cast.bigint === null){
// Cast boolean to string by default
options.cast.bigint = value => '' + value
}
// Normalize option cast.boolean

@@ -402,2 +407,4 @@ if(options.cast.boolean === undefined || options.cast.boolean === null){

return [undefined, this.options.cast.string(value, context)]
}else if(type === 'bigint'){
return [undefined, this.options.cast.bigint(value, context)]
}else if(type === 'number'){

@@ -404,0 +411,0 @@ return [undefined, this.options.cast.number(value, context)]

2

package.json
{
"version": "5.4.3",
"version": "5.5.0",
"name": "csv-stringify",

@@ -4,0 +4,0 @@ "description": "CSV stringifier implementing the Node.js `stream.Transform` API",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc