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

@@ -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)