Skip to content

Commit

Permalink
fix: csv stringify import breaks build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogan AY committed May 17, 2024
1 parent 0c7a318 commit 365f875
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"body-parser": "^1.20.1",
"compose-middleware": "5.0.1",
"cors": "2.8.5",
"csv-stringify": "6.5.0",
"csv-stringify": "5.6.5",
"express": "^4.18.2",
"express-jwt": "8.4.1",
"forest-ip-utils": "1.0.1",
Expand Down
3 changes: 1 addition & 2 deletions src/services/csv-exporter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const moment = require('moment');
// eslint-disable-next-line import/no-unresolved
const { stringify } = require('csv-stringify/sync');
const stringify = require('csv-stringify/lib/sync');
const { inject } = require('@forestadmin/context');
const ParamsFieldsDeserializer = require('../deserializers/params-fields');
const SmartFieldsValuesInjector = require('./smart-fields-values-injector');
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3746,10 +3746,10 @@ cssesc@^3.0.0:
resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==

csv-stringify@6.5.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/csv-stringify/-/csv-stringify-6.5.0.tgz#7b1491893c917e018a97de9bf9604e23b88647c2"
integrity sha512-edlXFVKcUx7r8Vx5zQucsuMg4wb/xT6qyz+Sr1vnLrdXqlLD1+UKyWNyZ9zn6mUW1ewmGxrpVwAcChGF0HQ/2Q==
csv-stringify@5.6.5:
version "5.6.5"
resolved "https://registry.yarnpkg.com/csv-stringify/-/csv-stringify-5.6.5.tgz#c6d74badda4b49a79bf4e72f91cce1e33b94de00"
integrity sha512-PjiQ659aQ+fUTQqSrd1XEDnOr52jh30RBurfzkscaE2tPaFsDH5wOAHJiw8XAHphRknCwMUE9KRayc4K/NbO8A==

dargs@^7.0.0:
version "7.0.0"
Expand Down

0 comments on commit 365f875

Please sign in to comment.