Skip to content

Commit

Permalink
Resolve Vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyZhang777 committed Jan 25, 2024
1 parent 669785c commit d7ba888
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions test-site/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions test-site/src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -72,13 +72,13 @@ export async function filterSearch(): Promise<void> {
}

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);
Expand Down

0 comments on commit d7ba888

Please sign in to comment.