fix(medusa): downgrade papaparse version (#4174)

* fix: downgrade `papaparse` version

* chore: changesets

---------

Co-authored-by: fPolic <frane@medusajs.com>
This commit is contained in:
Frane Polić
2023-05-25 20:26:58 +02:00
committed by GitHub
parent 345beb7010
commit 92f01cefbc
4 changed files with 24 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): fix CSV parsing issues by downgrading the version of the parsing library

View File

@@ -23,6 +23,7 @@
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^8.5.9",
"@types/multer": "^1.4.7",
"@types/papaparse": "^5.3.7",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"medusa-interfaces": "^1.3.7",
@@ -77,7 +78,7 @@
"morgan": "^1.9.1",
"multer": "^1.4.5-lts.1",
"node-schedule": "^2.1.1",
"papaparse": "^5.3.2",
"papaparse": "5.3.2",
"passport": "^0.6.0",
"passport-http-bearer": "^1.0.1",
"passport-jwt": "^4.0.1",

View File

@@ -136,11 +136,11 @@ class ProductImportStrategy extends AbstractBatchJobStrategy {
row: TParsedProductImportRowData,
errorDescription?: string
): never {
const message = `Error while processing row with:
product id: ${row["product.id"]},
product handle: ${row["product.handle"]},
variant id: ${row["variant.id"]}
variant sku: ${row["variant.sku"]}
const message = `Error while processing row with
[(product id: ${row["product.id"]}),
(product handle: ${row["product.handle"]}),
(variant id: ${row["variant.id"]}),
(variant sku: ${row["variant.sku"]})]:
${errorDescription}`
throw new MedusaError(MedusaError.Types.INVALID_DATA, message)

View File

@@ -6202,6 +6202,7 @@ __metadata:
"@types/jsonwebtoken": ^8.5.9
"@types/lodash": ^4.14.191
"@types/multer": ^1.4.7
"@types/papaparse": ^5.3.7
awilix: ^8.0.0
body-parser: ^1.19.0
boxen: ^5.0.1
@@ -6234,7 +6235,7 @@ __metadata:
morgan: ^1.9.1
multer: ^1.4.5-lts.1
node-schedule: ^2.1.1
papaparse: ^5.3.2
papaparse: 5.3.2
passport: ^0.6.0
passport-http-bearer: ^1.0.1
passport-jwt: ^4.0.1
@@ -11954,6 +11955,15 @@ __metadata:
languageName: node
linkType: hard
"@types/papaparse@npm:^5.3.7":
version: 5.3.7
resolution: "@types/papaparse@npm:5.3.7"
dependencies:
"@types/node": "*"
checksum: fd234e7872aa7ed86c539583e7b4bac387f3efe55c5f403c590712e7125dfe73f7f0a84e646d5d222bf7e36b4c6213a85a0ae4406db9006a5b9a1b6bc03b6e50
languageName: node
linkType: hard
"@types/parse-json@npm:^4.0.0":
version: 4.0.0
resolution: "@types/parse-json@npm:4.0.0"
@@ -32514,7 +32524,7 @@ __metadata:
languageName: node
linkType: hard
"papaparse@npm:^5.3.2":
"papaparse@npm:5.3.2, papaparse@npm:^5.3.2":
version: 5.3.2
resolution: "papaparse@npm:5.3.2"
checksum: fdc50cae03fdf94fa2b78da86fe18fa53ca36753ccd6619ca7f738df097cdd2cbf572a9c048a72c05118db7cf0ccb25d574f39a720c5e1a8d8c6903b0fd30765