Closed dylanfprice closed 3 years ago
https://github.com/duke-crucible/surveyjs-fhir/commit/d7d75b24e242539a04ca69410e45614d8738a208
https://github.com/duke-crucible/surveyjs-fhir/commit/385b012f19701d348e00a36f2fead4d21dba87f9
https://github.com/duke-crucible/surveyjs-fhir/commit/fd22613e6bff795b408da34d79b6fe06e080b1fc
https://github.com/duke-crucible/surveyjs-fhir/commit/73eae533c5be39dbea1137aefcf0ddf1d7c07e7b
https://github.com/duke-crucible/surveyjs-fhir/commit/44bb35bb85732aa8ac594a15d5c2535195caacb1
https://github.com/duke-crucible/surveyjs-fhir/commit/386a1be44733e491552e63d9e22d39fb48057bd2
https://github.com/duke-crucible/surveyjs-fhir/commit/3bd63c069aa0ea808ad3c07b65ac7e83bf08e4a2
https://github.com/duke-crucible/surveyjs-fhir/commit/38ae82fa3aee7a739bade0d14d277d6bd5375f72
https://github.com/duke-crucible/surveyjs-fhir/commit/36862f8d2f15ce9a0a6ec7e60a71b5334eaa9511
All issues now addressed. Thank you for the helpful tips!
Here is a collection of small changes to bring it up to modern js syntax and conventions. I ordered them by what I feel is most important first.
===
instead of==
(https://stackoverflow.com/a/359509)let
orconst
instead ofvar
index.js
instead ofsurveyjs-fhir.js
item.answer
instead ofitem['answer']
(page, page_index) => {
instead offunction (page, page_index) {
for anonymous functionsimport
instead ofrequire()
export
statement instead ofmodule.exports =
{"type": "module"}
to package.json. May also need to pass--experimental-specifier-resolution=node
to node?