Skip to content

Commit 64416b7

Browse files
committed
Use exceljs fork to fix streaming issues with large files
1 parent 641f7f2 commit 64416b7

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:16.20.1-alpine as base
33
WORKDIR /app
44
RUN apk --no-cache update && \
55
apk --no-cache upgrade && \
6-
apk add --no-cache --virtual .build-dependencies python3 make g++ && \
6+
apk add --no-cache --virtual .build-dependencies python3 make g++ git && \
77
mkdir -p node_modules && chown -R node:node .
88

99

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"private": false,
2020
"dependencies": {
2121
"@godaddy/terminus": "4.12.1",
22-
"@tidepool/data-tools": "2.4.1",
22+
"@tidepool/data-tools": "https://github.com/tidepool-org/node-data-tools.git#tk/use-exceljs-fork",
2323
"@tidepool/viz": "1.37.0",
2424
"axios": "1.4.0",
2525
"blob-stream": "0.1.3",

yarn.lock

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -416,16 +416,15 @@
416416
dependencies:
417417
tslib "^2.4.0"
418418

419-
"@tidepool/data-tools@2.4.1":
419+
"@tidepool/data-tools@https://github.com/tidepool-org/node-data-tools.git#tk/use-exceljs-fork":
420420
version "2.4.1"
421-
resolved "https://registry.yarnpkg.com/@tidepool/data-tools/-/data-tools-2.4.1.tgz#ce0d6e4f8bebf80e5e3193a882b152c9069e3050"
422-
integrity sha512-k5IxoeR3cLnmq6LoTGlG7Lhel6QQlxYWp0woqh9Dai8P9O7CKp6pTbArDvo2UHqNRoxl7Esvz020kw3i9rd9ow==
421+
resolved "https://github.com/tidepool-org/node-data-tools.git#de315584e7319696077f71fa1824701cb4be23ec"
423422
dependencies:
423+
"@zlooun/exceljs" "1.0.3"
424424
JSONStream "1.3.5"
425425
commander "4.1.1"
426426
csv-string "3.1.7"
427427
event-stream "3.3.4"
428-
exceljs "4.3.0"
429428
flat "5.0.0"
430429
lodash "4.17.15"
431430
mkdirp "1.0.3"
@@ -526,6 +525,21 @@
526525
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
527526
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
528527

528+
"@zlooun/exceljs@1.0.3":
529+
version "1.0.3"
530+
resolved "https://registry.yarnpkg.com/@zlooun/exceljs/-/exceljs-1.0.3.tgz#5ce9859304f6082f2482a8fa2dd03bb6b37d22f6"
531+
integrity sha512-0bOI9DY9D/ybm38X05t+MvQAw26QxWN4xTmlZ6ritl9mfG0jec2Xh71HsZFvzghaYwlpIRpZJ0hTYoElDvKAvQ==
532+
dependencies:
533+
archiver "^5.0.0"
534+
dayjs "^1.8.34"
535+
fast-csv "^4.3.1"
536+
jszip "^3.7.1"
537+
readable-stream "^3.6.0"
538+
saxes "^5.0.1"
539+
tmp "^0.2.0"
540+
unzipper "^0.10.11"
541+
uuid "^8.3.0"
542+
529543
JSONStream@1.3.5:
530544
version "1.3.5"
531545
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
@@ -2017,21 +2031,6 @@ event-stream@3.3.4:
20172031
stream-combiner "~0.0.4"
20182032
through "~2.3.1"
20192033

2020-
exceljs@4.3.0:
2021-
version "4.3.0"
2022-
resolved "https://registry.yarnpkg.com/exceljs/-/exceljs-4.3.0.tgz#939bc0d4c59c200acadb7051be34d25c109853c4"
2023-
integrity sha512-hTAeo5b5TPvf8Z02I2sKIT4kSfCnOO2bCxYX8ABqODCdAjppI3gI9VYiGCQQYVcBaBSKlFDMKlAQRqC+kV9O8w==
2024-
dependencies:
2025-
archiver "^5.0.0"
2026-
dayjs "^1.8.34"
2027-
fast-csv "^4.3.1"
2028-
jszip "^3.5.0"
2029-
readable-stream "^3.6.0"
2030-
saxes "^5.0.1"
2031-
tmp "^0.2.0"
2032-
unzipper "^0.10.11"
2033-
uuid "^8.3.0"
2034-
20352034
express@4.18.2:
20362035
version "4.18.2"
20372036
resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
@@ -2892,7 +2891,7 @@ jsonparse@^1.2.0:
28922891
object.assign "^4.1.4"
28932892
object.values "^1.1.6"
28942893

2895-
jszip@^3.5.0:
2894+
jszip@^3.7.1:
28962895
version "3.10.1"
28972896
resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.10.1.tgz#34aee70eb18ea1faec2f589208a157d1feb091c2"
28982897
integrity sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==

0 commit comments

Comments
 (0)