diff --git a/src/builder/parsers/csv/index.js b/src/builder/parsers/csv/index.js index c378661..5cd0976 100644 --- a/src/builder/parsers/csv/index.js +++ b/src/builder/parsers/csv/index.js @@ -6,7 +6,7 @@ export default class Csv { } async toJSON (file) { - const body = await csv({ output: 'json', ...this.options }).fromString(file) + const body = await csv({ ...this.options, output: 'json' }).fromString(file) return { body diff --git a/src/builder/parsers/json/index.js b/src/builder/parsers/json/index.js index f5abab6..3bf96b3 100644 --- a/src/builder/parsers/json/index.js +++ b/src/builder/parsers/json/index.js @@ -6,6 +6,6 @@ export default class Json { } toJSON(file) { - return destr(file, this.options) + return destr(file, { ...this.options, strict: true }) } }