hapi-csv
Advanced tools
Comparing version 5.1.4 to 5.2.0
@@ -11,3 +11,3 @@ 'use strict'; | ||
routeMap: new Map(), | ||
riskyCharacters: ["=", "+", "-", "@"] | ||
riskyCharacters: ['=', '+', '-', '@'] | ||
}; | ||
@@ -405,7 +405,7 @@ | ||
internals.csvInjectionProtector = (string) => { | ||
if (!string) { | ||
return ""; | ||
}; | ||
if (!string) { | ||
return ''; | ||
} | ||
if (typeof string !== 'string' && !(string instanceof String)) { | ||
@@ -418,3 +418,3 @@ return string; | ||
if(!isInjected) { | ||
if (!isInjected) { | ||
return string; | ||
@@ -421,0 +421,0 @@ } |
{ | ||
"name": "hapi-csv", | ||
"version": "5.1.4", | ||
"version": "5.2.0", | ||
"description": "Hapi plugin for converting a Joi response schema and dataset to csv", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "lab -a @hapi/code -vL --lint-fix -t 98 -I cptable" | ||
"test": "lab -a @hapi/code -vL --lint-fix -t 96 -I cptable" | ||
}, | ||
@@ -26,12 +26,12 @@ "repository": { | ||
"dependencies": { | ||
"@hapi/hoek": "^9.2.0", | ||
"exceljs": "^4.2.1", | ||
"@hapi/hoek": "^9.2.1", | ||
"exceljs": "^4.3.0", | ||
"fast-csv": "^4.3.6", | ||
"xlsx": "^0.18.0" | ||
"xlsx": "^0.18.2" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "^8.0.3", | ||
"joi": "^17.4.1", | ||
"@hapi/lab": "^24.3.2", | ||
"@hapi/hapi": "^20.1.5" | ||
"@hapi/code": "^8.0.7", | ||
"@hapi/hapi": "^20.2.1", | ||
"@hapi/lab": "^24.5.1", | ||
"joi": "^17.6.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependencies": { |
52133
Updated@hapi/hoek@^9.2.1
Updatedexceljs@^4.3.0
Updatedxlsx@^0.18.2