diff --git a/packages/lookit-api/src/utils.ts b/packages/lookit-api/src/utils.ts index 6c93f71e..69151d2d 100644 --- a/packages/lookit-api/src/utils.ts +++ b/packages/lookit-api/src/utils.ts @@ -1,4 +1,4 @@ -const CONFIG = {url_base : "/api/v2/"}; +const CONFIG = { url_base: "/api/v2/" }; export async function get(url: string) { /** diff --git a/packages/surveys/src/survey.json b/packages/surveys/src/survey.json index 24d071ed..f9d41ac2 100644 --- a/packages/surveys/src/survey.json +++ b/packages/surveys/src/survey.json @@ -11,7 +11,7 @@ "type": "text" }, { - "description": "Only authorized researchers will have access to information in the library. Researchers who are granted access must agree to maintain confidentiality and not use information for commercial purposes. Data sharing will lead to faster progress in research on human development and behavior. If you have any questions about the data-sharing library, please visit https://nyu.databrary.org/ or email ethics@databrary.org.", + "description": "Only authorized researchers will have access to information in the library. Researchers who are granted access must agree to maintain confidentiality and not use information for commercial purposes. Data sharing will lead to faster progress in research on human development and behavior. If you have any questions about the data-sharing library, please visit [Databrary](https://nyu.databrary.org/) or email ethics@databrary.org.", "isRequired": true, "name": "databraryShare", "title": "Would you like to share your video and other data from this session with authorized users of the secure data library Databrary?", diff --git a/packages/surveys/src/utils.ts b/packages/surveys/src/utils.ts index 2c179127..d5c99355 100644 --- a/packages/surveys/src/utils.ts +++ b/packages/surveys/src/utils.ts @@ -3,16 +3,16 @@ import { marked } from "marked"; import { Model } from "survey-jquery"; const CONFIG = { - MARKED: { async: false }, - DOMPURIFY: { USE_PROFILES: { html: true } }, + marked: { async: false }, + dompurify: { USE_PROFILES: { html: true } }, }; export function survey_function(survey: Model) { survey.onTextMarkdown.add((_sender, options) => { // We can set the type as "string" because async is false. options.html = DOMPurify.sanitize( - marked.parseInline(options.text, CONFIG.MARKED) as string, - CONFIG.DOMPURIFY, + marked.parseInline(options.text, CONFIG.marked) as string, + CONFIG.dompurify, ); }); return survey;