Skip to content

Commit

Permalink
build(deps): bump apache-arrow
Browse files Browse the repository at this point in the history
Suspect the fix.sh changes are required due to
facebook/create-react-app#10356
  • Loading branch information
michalc committed Jan 6, 2022
1 parent c3b6566 commit 0c987ea
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 210 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ yarn run start
```bash
cd streamlit_gov_uk_components/frontend_checkbox
yarn install
./fix.sh
yarn run build
```

Expand Down
22 changes: 22 additions & 0 deletions streamlit_gov_uk_components/frontend_checkbox/fix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Not completely sure, but I think the below are needed because of
# https://github.com/facebook/create-react-app/issues/10356

sed -i '' -e 's|import { Table, Vector } from "apache-arrow";|import { Vector } from "apache-arrow/vector";import { Table } from "apache-arrow/table";|g' ./node_modules/streamlit-component-lib/dist/ArrowTable.d.ts

mv ./node_modules/apache-arrow/ipc/reader.mjs ./node_modules/apache-arrow/ipc/reader.js
mv ./node_modules/apache-arrow/util/buffer.mjs ./node_modules/apache-arrow/util/buffer.js
mv ./node_modules/apache-arrow/io/adapters.mjs ./node_modules/apache-arrow/io/adapters.js
mv ./node_modules/apache-arrow/builder.mjs ./node_modules/apache-arrow/builder.js
mv ./node_modules/apache-arrow/ipc/writer.mjs ./node_modules/apache-arrow/ipc/writer.js
mv ./node_modules/apache-arrow/table.mjs ./node_modules/apache-arrow/table.js
mv ./node_modules/apache-arrow/io/stream.mjs ./node_modules/apache-arrow/io/stream.js
mv ./node_modules/apache-arrow/vector/index.mjs ./node_modules/apache-arrow/vector/index.js
mv ./node_modules/apache-arrow/io/whatwg/iterable.mjs ./node_modules/apache-arrow/io/whatwg/iterable.js
mv ./node_modules/apache-arrow/io/whatwg/reader.mjs ./node_modules/apache-arrow/io/whatwg/reader.js
mv ./node_modules/apache-arrow/io/whatwg/writer.mjs ./node_modules/apache-arrow/io/whatwg/writer.js
mv ./node_modules/apache-arrow/ipc/message.mjs ./node_modules/apache-arrow/ipc/message.js
mv ./node_modules/apache-arrow/io/interfaces.mjs ./node_modules/apache-arrow/io/interfaces.js
mv ./node_modules/apache-arrow/io/file.mjs ./node_modules/apache-arrow/io/file.js
mv ./node_modules/apache-arrow/io/whatwg/builder.mjs ./node_modules/apache-arrow/io/whatwg/builder.js
3 changes: 3 additions & 0 deletions streamlit_gov_uk_components/frontend_checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"streamlit-component-lib": "*",
"typescript": "*"
},
"resolutions": {
"**/apache-arrow": "6.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down
182 changes: 77 additions & 105 deletions streamlit_gov_uk_components/frontend_checkbox/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==

"@types/flatbuffers@^1.9.1":
"@types/flatbuffers@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@types/flatbuffers/-/flatbuffers-1.10.0.tgz#aa74e30ffdc86445f2f060e1808fc9d56b5603ba"
integrity sha512-7btbphLrKvo5yl/5CC2OCxUSMx1wV1wvGT1qDXkSt7yi00/YW7E8k6qzXqJHsp+WU0eoG7r6MTQQXI9lIvd0qA==
Expand Down Expand Up @@ -1728,10 +1728,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.8.tgz#50d680c8a8a78fe30abe6906453b21ad8ab0ad7b"
integrity sha512-YofkM6fGv4gDJq78g4j0mMuGMkZVxZDgtU0JRdx6FgiJDG+0fY0GKVolOV8WqVmEhLCXkQRjwDdKyPxJp/uucg==

"@types/node@^12.0.4":
version "12.20.41"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.41.tgz#81d7734c5257da9f04354bd9084a6ebbdd5198a5"
integrity sha512-f6xOqucbDirG7LOzedpvzjP3UTmHttRou3Mosx3vL9wr9AIQGhcPgVnqa8ihpZYnxyM1rxeNCvTyukPKZtq10Q==
"@types/node@^16.4.0":
version "16.11.19"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.19.tgz#1afa165146997b8286b6eabcb1c2d50729055169"
integrity sha512-BPAcfDPoHlRQNKktbsbnpACGdypPFBuX4xQlsWDE7B8XXcfII+SpOLay3/qZmCLb39kV5S1RTYwXdkx2lwLYng==

"@types/normalize-package-data@^2.4.0":
version "2.4.1"
Expand Down Expand Up @@ -1808,11 +1808,6 @@
dependencies:
"@types/jest" "*"

"@types/text-encoding-utf-8@^1.0.1":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@types/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz#896e94ce99b653e886a9b925e9dc12c92af7b1ae"
integrity sha512-AQ6zewa0ucLJvtUi5HsErbOFKAcQfRLt9zFLlUOvcXBy2G36a+ZDpCHSGdzJVUD8aNURtIjh9aSjCStNMRCcRQ==

"@types/uglify-js@*":
version "3.13.1"
resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.13.1.tgz#5e889e9e81e94245c75b6450600e1c5ea2878aea"
Expand Down Expand Up @@ -2296,21 +2291,19 @@ anymatch@^3.0.0, anymatch@^3.0.3, anymatch@~3.1.2:
normalize-path "^3.0.0"
picomatch "^2.0.4"

apache-arrow@^0.17.0:
version "0.17.0"
resolved "https://registry.yarnpkg.com/apache-arrow/-/apache-arrow-0.17.0.tgz#8f976fc6ffc18e34b15a0b327061534f6c2a2494"
integrity sha512-cbgSx/tzGgnC1qeUySXnAsSsoxhDykNINqr1D3U5pRwf0/Q0ztVccV3/VRW6gUR+lcOFawk6FtyYwmU+KjglbQ==
dependencies:
"@types/flatbuffers" "^1.9.1"
"@types/node" "^12.0.4"
"@types/text-encoding-utf-8" "^1.0.1"
command-line-args "5.0.2"
command-line-usage "5.0.5"
flatbuffers "1.11.0"
apache-arrow@6.0.1, apache-arrow@^0.17.0:
version "6.0.1"
resolved "https://registry.yarnpkg.com/apache-arrow/-/apache-arrow-6.0.1.tgz#bc5ec6748bf23c09fd74a332e7218915a2c42339"
integrity sha512-imVT/9c54Xa9BebBD4+KiaKQnWJZozX5FWijVFH3VpJREaU8dRbpGV+6le+0IRwSgLBCD0gihq+VbHG1w98pEg==
dependencies:
"@types/flatbuffers" "^1.10.0"
"@types/node" "^16.4.0"
command-line-args "5.1.3"
command-line-usage "6.1.1"
flatbuffers "1.12.0"
json-bignum "^0.0.3"
pad-left "^2.1.0"
text-encoding-utf-8 "^1.0.2"
tslib "^1.9.3"
tslib "^2.3.0"

aproba@^1.1.1:
version "1.2.0"
Expand All @@ -2324,14 +2317,6 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"

argv-tools@^0.1.1:
version "0.1.2"
resolved "https://registry.yarnpkg.com/argv-tools/-/argv-tools-0.1.2.tgz#fc4918a70775b8cc5f8296fa0cfea137bd8a8229"
integrity sha512-wxqoymY0BEu9NblZVQiOTOAiJUjPhaa/kbNMjC2h6bnrmUSgnxKgWJo3lzXvi3bHJRwXyqK/dHzMlZVRT89Cxg==
dependencies:
array-back "^2.0.0"
find-replace "^2.0.1"

aria-query@^4.2.2:
version "4.2.2"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b"
Expand Down Expand Up @@ -2365,12 +2350,15 @@ arr-union@^3.1.0:
resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=

array-back@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/array-back/-/array-back-2.0.0.tgz#6877471d51ecc9c9bfa6136fb6c7d5fe69748022"
integrity sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==
dependencies:
typical "^2.6.1"
array-back@^3.0.1, array-back@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/array-back/-/array-back-3.1.0.tgz#b8859d7a508871c9a7b2cf42f99428f65e96bfb0"
integrity sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==

array-back@^4.0.1:
version "4.0.2"
resolved "https://registry.yarnpkg.com/array-back/-/array-back-4.0.2.tgz#8004e999a6274586beeb27342168652fdb89fa1e"
integrity sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==

array-flatten@1.1.1:
version "1.1.1"
Expand Down Expand Up @@ -3355,26 +3343,25 @@ combined-stream@^1.0.8:
dependencies:
delayed-stream "~1.0.0"

command-line-args@5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.0.2.tgz#c4e56b016636af1323cf485aa25c3cb203dfbbe4"
integrity sha512-/qPcbL8zpqg53x4rAaqMFlRV4opN3pbla7I7k9x8kyOBMQoGT6WltjN6sXZuxOXw6DgdK7Ad+ijYS5gjcr7vlA==
command-line-args@5.1.3:
version "5.1.3"
resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.1.3.tgz#1e57d2816f28804073bb5e75cd24e02e2aa321e7"
integrity sha512-a5tF6mjqRSOBswBwdMkKY47JQ464Dkg9Pcwbxwo9wxRhKWZjtBktmBASllk3AMJ7qBuWgsAGtVa7b2/+EsymOQ==
dependencies:
argv-tools "^0.1.1"
array-back "^2.0.0"
find-replace "^2.0.1"
array-back "^3.1.0"
find-replace "^3.0.0"
lodash.camelcase "^4.3.0"
typical "^2.6.1"
typical "^4.0.0"

command-line-usage@5.0.5:
version "5.0.5"
resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-5.0.5.tgz#5f25933ffe6dedd983c635d38a21d7e623fda357"
integrity sha512-d8NrGylA5oCXSbGoKz05FkehDAzSmIm4K03S5VDh4d5lZAtTWfc3D1RuETtuQCn8129nYfJfDdF7P/lwcz1BlA==
command-line-usage@6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-6.1.1.tgz#c908e28686108917758a49f45efb4f02f76bc03f"
integrity sha512-F59pEuAR9o1SF/bD0dQBDluhpT4jJQNWUHEuVBqpDmCUo6gPjCi+m9fCWnWZVR/oG6cMTUms4h+3NPl74wGXvA==
dependencies:
array-back "^2.0.0"
chalk "^2.4.1"
table-layout "^0.4.3"
typical "^2.6.1"
array-back "^4.0.1"
chalk "^2.4.2"
table-layout "^1.0.1"
typical "^5.2.0"

commander@^2.20.0:
version "2.20.3"
Expand Down Expand Up @@ -5008,13 +4995,12 @@ find-cache-dir@^3.3.1:
make-dir "^3.0.2"
pkg-dir "^4.1.0"

find-replace@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-2.0.1.tgz#6d9683a7ca20f8f9aabeabad07e4e2580f528550"
integrity sha512-LzDo3Fpa30FLIBsh6DCDnMN1KW2g4QKkqKmejlImgWY67dDFPX/x9Kh/op/GK522DchQXEvDi/wD48HKW49XOQ==
find-replace@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-3.0.0.tgz#3e7e23d3b05167a76f770c9fbd5258b0def68c38"
integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==
dependencies:
array-back "^2.0.0"
test-value "^3.0.0"
array-back "^3.0.1"

find-up@4.1.0, find-up@^4.0.0, find-up@^4.1.0:
version "4.1.0"
Expand Down Expand Up @@ -5046,10 +5032,10 @@ flat-cache@^3.0.4:
flatted "^3.1.0"
rimraf "^3.0.2"

flatbuffers@1.11.0:
version "1.11.0"
resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-1.11.0.tgz#90a47e584dd7851ad7a913f5a0ee99c1d76ce59f"
integrity sha512-0PqFKtXI4MjxomI7jO4g5XfLPm/15g2R+5WGCHBGYGh0ihQiypnHlJ6bMmkkrAe0GzZ4d7PDAfCONKIPUxNF+A==
flatbuffers@1.12.0:
version "1.12.0"
resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-1.12.0.tgz#72e87d1726cb1b216e839ef02658aa87dcef68aa"
integrity sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ==

flatted@^3.1.0:
version "3.2.4"
Expand Down Expand Up @@ -7009,11 +6995,6 @@ lodash.merge@^4.6.2:
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==

lodash.padend@^4.6.1:
version "4.6.1"
resolved "https://registry.yarnpkg.com/lodash.padend/-/lodash.padend-4.6.1.tgz#53ccba047d06e158d311f45da625f4e49e6f166e"
integrity sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=

lodash.template@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab"
Expand Down Expand Up @@ -9272,10 +9253,10 @@ redent@^3.0.0:
indent-string "^4.0.0"
strip-indent "^3.0.0"

reduce-flatten@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-1.0.1.tgz#258c78efd153ddf93cb561237f61184f3696e327"
integrity sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=
reduce-flatten@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-2.0.0.tgz#734fd84e65f375d7ca4465c69798c25c9d10ae27"
integrity sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==

regenerate-unicode-properties@^9.0.0:
version "9.0.0"
Expand Down Expand Up @@ -10423,16 +10404,15 @@ symbol-tree@^3.2.4:
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==

table-layout@^0.4.3:
version "0.4.5"
resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-0.4.5.tgz#d906de6a25fa09c0c90d1d08ecd833ecedcb7378"
integrity sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==
table-layout@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-1.0.2.tgz#c4038a1853b0136d63365a734b6931cf4fad4a04"
integrity sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==
dependencies:
array-back "^2.0.0"
array-back "^4.0.1"
deep-extend "~0.6.0"
lodash.padend "^4.6.1"
typical "^2.6.1"
wordwrapjs "^3.0.0"
typical "^5.2.0"
wordwrapjs "^4.0.0"

table@^6.0.9:
version "6.8.0"
Expand Down Expand Up @@ -10541,19 +10521,6 @@ test-exclude@^6.0.0:
glob "^7.1.4"
minimatch "^3.0.4"

test-value@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/test-value/-/test-value-3.0.0.tgz#9168c062fab11a86b8d444dd968bb4b73851ce92"
integrity sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==
dependencies:
array-back "^2.0.0"
typical "^2.6.1"

text-encoding-utf-8@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz#585b62197b0ae437e3c7b5d0af27ac1021e10d13"
integrity sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==

text-table@0.2.0, text-table@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
Expand Down Expand Up @@ -10677,12 +10644,12 @@ tsconfig-paths@^3.12.0:
minimist "^1.2.0"
strip-bom "^3.0.0"

tslib@^1.8.1, tslib@^1.9.3:
tslib@^1.8.1:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

tslib@^2.0.3:
tslib@^2.0.3, tslib@^2.3.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
Expand Down Expand Up @@ -10778,10 +10745,15 @@ typescript@*:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==

typical@^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/typical/-/typical-2.6.1.tgz#5c080e5d661cbbe38259d2e70a3c7253e873881d"
integrity sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=
typical@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4"
integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==

typical@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/typical/-/typical-5.2.0.tgz#4daaac4f2b5315460804f0acf6cb69c52bb93066"
integrity sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==

unbox-primitive@^1.0.1:
version "1.0.1"
Expand Down Expand Up @@ -11262,13 +11234,13 @@ word-wrap@^1.2.3, word-wrap@~1.2.3:
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==

wordwrapjs@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-3.0.0.tgz#c94c372894cadc6feb1a66bff64e1d9af92c5d1e"
integrity sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==
wordwrapjs@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-4.0.1.tgz#d9790bccfb110a0fc7836b5ebce0937b37a8b98f"
integrity sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA==
dependencies:
reduce-flatten "^1.0.1"
typical "^2.6.1"
reduce-flatten "^2.0.0"
typical "^5.2.0"

workbox-background-sync@^5.1.4:
version "5.1.4"
Expand Down
22 changes: 22 additions & 0 deletions streamlit_gov_uk_components/frontend_checkbox_small/fix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Not completely sure, but I think the below are needed because of
# https://github.com/facebook/create-react-app/issues/10356

sed -i '' -e 's|import { Table, Vector } from "apache-arrow";|import { Vector } from "apache-arrow/vector";import { Table } from "apache-arrow/table";|g' ./node_modules/streamlit-component-lib/dist/ArrowTable.d.ts

mv ./node_modules/apache-arrow/ipc/reader.mjs ./node_modules/apache-arrow/ipc/reader.js
mv ./node_modules/apache-arrow/util/buffer.mjs ./node_modules/apache-arrow/util/buffer.js
mv ./node_modules/apache-arrow/io/adapters.mjs ./node_modules/apache-arrow/io/adapters.js
mv ./node_modules/apache-arrow/builder.mjs ./node_modules/apache-arrow/builder.js
mv ./node_modules/apache-arrow/ipc/writer.mjs ./node_modules/apache-arrow/ipc/writer.js
mv ./node_modules/apache-arrow/table.mjs ./node_modules/apache-arrow/table.js
mv ./node_modules/apache-arrow/io/stream.mjs ./node_modules/apache-arrow/io/stream.js
mv ./node_modules/apache-arrow/vector/index.mjs ./node_modules/apache-arrow/vector/index.js
mv ./node_modules/apache-arrow/io/whatwg/iterable.mjs ./node_modules/apache-arrow/io/whatwg/iterable.js
mv ./node_modules/apache-arrow/io/whatwg/reader.mjs ./node_modules/apache-arrow/io/whatwg/reader.js
mv ./node_modules/apache-arrow/io/whatwg/writer.mjs ./node_modules/apache-arrow/io/whatwg/writer.js
mv ./node_modules/apache-arrow/ipc/message.mjs ./node_modules/apache-arrow/ipc/message.js
mv ./node_modules/apache-arrow/io/interfaces.mjs ./node_modules/apache-arrow/io/interfaces.js
mv ./node_modules/apache-arrow/io/file.mjs ./node_modules/apache-arrow/io/file.js
mv ./node_modules/apache-arrow/io/whatwg/builder.mjs ./node_modules/apache-arrow/io/whatwg/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"streamlit-component-lib": "*",
"typescript": "*"
},
"resolutions": {
"**/apache-arrow": "6.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down
Loading

0 comments on commit 0c987ea

Please sign in to comment.