diff --git a/package-lock.json b/package-lock.json index f7b379f4..79bf9df7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21307,22 +21307,22 @@ "dev": true }, "webpack": { - "version": "5.73.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.73.0.tgz", - "integrity": "sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==", + "version": "5.90.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.0.tgz", + "integrity": "sha512-bdmyXRCXeeNIePv6R6tGPyy20aUobw4Zy8r0LUS2EWO+U+Ke/gYDgsCh7bl5rB6jPpr4r0SZa6dPxBxLooDT3w==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.3", - "@types/estree": "^0.0.51", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.4.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.21.10", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.9.3", - "es-module-lexer": "^0.9.0", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", @@ -21331,10 +21331,10 @@ "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", + "schema-utils": "^3.2.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.3.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.0", "webpack-sources": "^3.2.3" } }, diff --git a/package.json b/package.json index 97c2305e..7f02b7ed 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "jest-environment-jsdom": "^28.1.0", "ts-loader": "^8.4.0", "typescript": "^4.0.3", - "webpack": "^5.73.0", + "webpack": "^5.76.0", "webpack-cli": "^4.4.0" }, "dependencies": { diff --git a/test-site/src/js/index.js b/test-site/src/js/index.js index 19a7ed73..b8817fcd 100644 --- a/test-site/src/js/index.js +++ b/test-site/src/js/index.js @@ -6,7 +6,7 @@ import questionRequest from './requests/questionRequest'; import { univeralAutocompleteRequest, verticalAutocompleteRequest, filterSearchRequest } from './requests/autocompleteRequests'; const coreConfig = { - apiKey: 'df4b24f4075800e5e9705090c54c6c13', + apiKey: process.env.API_KEY, experienceKey: 'rosetest', locale: 'en', experienceVersion: 'PRODUCTION', @@ -62,13 +62,13 @@ export async function filterSearch() { } function loadingSpinner() { - element.innerHTML = 'Loading...'; + element.textContent = 'Loading...'; } function updateUI(data, startTime, msg) { const latency = new Date().getTime() - startTime + 'ms'; const dataString = JSON.stringify(data, undefined, 2); - element.innerHTML = latency + '\n' + dataString; + element.textContent = latency + '\n' + dataString; console.log(msg); console.log(data); diff --git a/test-site/src/ts/index.ts b/test-site/src/ts/index.ts index b844a45f..04dd619d 100644 --- a/test-site/src/ts/index.ts +++ b/test-site/src/ts/index.ts @@ -6,7 +6,7 @@ import { univeralAutocompleteRequest, verticalAutocompleteRequest, filterSearchR import initDirectAnswers from './initDirectAnswers'; const coreConfig: SearchConfig = { - apiKey: '2d8c550071a64ea23e263118a2b0680b', + apiKey: process.env.API_KEY, experienceKey: 'slanswers', locale: 'en', experienceVersion: 'PRODUCTION', @@ -72,13 +72,13 @@ export async function filterSearch(): Promise { } function loadingSpinner() { - element.innerHTML = 'Loading...'; + element.textContent = 'Loading...'; } function updateUI(data: unknown, startTime: number, msg: string) { const latency = new Date().getTime() - startTime + 'ms'; const dataString = JSON.stringify(data, undefined, 2); - element.innerHTML = latency + '\n' + dataString; + element.textContent = latency + '\n' + dataString; console.log(msg); console.log(data);