From 1d143e1d98ce8c9ea83220ec041a78dcf42ae8f2 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 4 Mar 2020 09:54:37 -0700 Subject: [PATCH] Update marked & papaparse dependencies --- package.json | 4 ++-- src/js/dictionaryManagement.js | 2 +- yarn.lock | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 649d536..f894c32 100644 --- a/package.json +++ b/package.json @@ -31,9 +31,9 @@ "sharp": "^0.24.1" }, "dependencies": { - "marked": "^0.6.3", + "marked": "^0.8.0", "normalize.css": "^8.0.1", - "papaparse": "^4.6.3", + "papaparse": "^5.1.1", "upup": "^1.1.0" } } diff --git a/src/js/dictionaryManagement.js b/src/js/dictionaryManagement.js index b71f7e5..7ffd826 100644 --- a/src/js/dictionaryManagement.js +++ b/src/js/dictionaryManagement.js @@ -237,7 +237,7 @@ export function importWords() { console.error('Error Importing Word: ', err) }); } else { - const row = results.data[0]; + const row = results.data; const importedWord = addWord({ name: removeTags(row.word).trim(), pronunciation: removeTags(row.pronunciation).trim(), diff --git a/yarn.lock b/yarn.lock index 64408d6..aa3a761 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3481,10 +3481,10 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" -marked@^0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/marked/-/marked-0.6.3.tgz#79babad78af638ba4d522a9e715cdfdd2429e946" - integrity sha512-Fqa7eq+UaxfMriqzYLayfqAE40WN03jf+zHjT18/uXNuzjq3TY0XTbrAoPeqSJrAmPz11VuUA+kBPYOhHt9oOQ== +marked@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.8.0.tgz#ec5c0c9b93878dc52dd54be8d0e524097bd81a99" + integrity sha512-MyUe+T/Pw4TZufHkzAfDj6HarCBWia2y27/bhuYkTaiUnfDYFnCP3KUN+9oM7Wi6JA2rymtVYbQu3spE0GCmxQ== math-random@^1.0.1: version "1.0.4" @@ -4087,10 +4087,10 @@ pako@~1.0.5: resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.10.tgz#4328badb5086a426aa90f541977d4955da5c9732" integrity sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw== -papaparse@^4.6.3: - version "4.6.3" - resolved "https://registry.yarnpkg.com/papaparse/-/papaparse-4.6.3.tgz#742e5eaaa97fa6c7e1358d2934d8f18f44aee781" - integrity sha512-LRq7BrHC2kHPBYSD50aKuw/B/dGcg29omyJbKWY3KsYUZU69RKwaBHu13jGmCYBtOc4odsLCrFyk6imfyNubJQ== +papaparse@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/papaparse/-/papaparse-5.1.1.tgz#1da66a039f80e2db43a1226b0bf44106451e9a2d" + integrity sha512-KPkW4GNQxunmYTeJIjHFrvilcNuHBWrfgbyvmagEmfGOA4hnP1WIkPbv4yABhj1Nam3as4w+7MBiI27BntwqVg== parcel-bundler@^1.12.3: version "1.12.4"