Fixed travis second error

This commit is contained in:
Vimal-Raghubir 2018-03-25 20:17:05 -04:00
parent 5bab9b88e8
commit e8a2040dd6
3 changed files with 8 additions and 2 deletions

5
package-lock.json generated
View file

@ -2419,6 +2419,11 @@
"cssom": "0.3.2" "cssom": "0.3.2"
} }
}, },
"csv-string": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/csv-string/-/csv-string-3.1.2.tgz",
"integrity": "sha512-JzjYuRSU/5y6H9BqwaJTNsF8dYlFql14n1GIOgu2QHFCoU20U2DaeMShyIZuvU7WS0n7u+AMhgUOuqRZ9eFhog=="
},
"ctph.js": { "ctph.js": {
"version": "0.0.5", "version": "0.0.5",
"resolved": "https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.5.tgz", "resolved": "https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.5.tgz",

View file

@ -76,6 +76,7 @@
"bootstrap-switch": "^3.3.4", "bootstrap-switch": "^3.3.4",
"crypto-api": "^0.8.0", "crypto-api": "^0.8.0",
"crypto-js": "^3.1.9-1", "crypto-js": "^3.1.9-1",
"csv-string": "^3.1.2",
"ctph.js": "0.0.5", "ctph.js": "0.0.5",
"diff": "^3.4.0", "diff": "^3.4.0",
"escodegen": "^1.9.1", "escodegen": "^1.9.1",

View file

@ -22,7 +22,7 @@ const CSVParser = {
if (detectedDelimeter !== args[0]) { if (detectedDelimeter !== args[0]) {
args[0] = detectedDelimeter; args[0] = detectedDelimeter;
} }
array = CSV.parse(input, args[0], args[1]); array = CSV.parse(input, args[0], args[1]);
} else { } else {
array = "The passed in data is not a csv string. Please pass in a csv string."; array = "The passed in data is not a csv string. Please pass in a csv string.";
} }
@ -42,7 +42,7 @@ const CSVParser = {
string = "The passed in data is not a string that can be converted to a CSV."; string = "The passed in data is not a string that can be converted to a CSV.";
} }
return string; return string;
} }
}; };
export default CSVParser; export default CSVParser;