Skip to content

Commit

Permalink
wip: enketo upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
meltheadorable committed Jul 5, 2024
1 parent 442a6a5 commit 196fcc6
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 544 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.13.0
20.15.0
2 changes: 1 addition & 1 deletion app/controllers/responses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def odk_awaiting_media?
# Renders an Enketo form instead of a NEMO form.
def enketo
# Fail fast if we're on the wrong node version (this happens most often in development).
raise "Error: Unexpected Node version #{`node -v`}" unless `node -v`.match?("v16")
# raise "Error: Unexpected Node version #{`node -v`}" unless `node -v`.match?("v16")

# Enketo can't render anything if we haven't rendered it to XML (e.g. unpublished draft).
if @response.form.odk_xml.blank?
Expand Down
4 changes: 3 additions & 1 deletion lib/enketo-transformer-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"start": "node index.js"
},
"resolutions": {
"nan": "2.18.0"
},
"dependencies": {
"enketo-transformer": "2.3.0"
"enketo-transformer": "4.1.0",
"libxslt": "^0.10.2"
}
}
Loading

0 comments on commit 196fcc6

Please sign in to comment.