Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,159 changes: 236 additions & 3,923 deletions accessibility-checker-extension/package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions accessibility-checker-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
"@carbon/react": "^1.72.0",
"@carbon/themes": "^11.17.0",
"dotenv-webpack": "^7.0.3",
"exceljs": "^4.3.0",
"exceljs": "^4.4.0",
"markdown-to-jsx": "^7.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-redux": "^7.2.6",
"react-tooltip": "^4.2.21",
"redux": "^4.1.2",
"string-hash": "^1.1.3",
"tabbable": "^5.2.0",
"webext-redux": "^2.1.9"
},
Expand Down Expand Up @@ -61,13 +59,15 @@
"typescript": "^4.5.4",
"url-loader": "^4.1.1",
"use-resize-observer": "^8.0.0",
"web-ext": "^9.4.0",
"webpack": "^5.94.0",
"webpack-cli": "^4.9.1",
"webpack-ext-reloader": "^1.1.9"
},
"repository": {
"type": "git",
"url": "https://github.com/IBMa/equal-access.git"
"url": "https://github.com/IBMa/equal-access.git"
},
"overrides": {
"uuid": "^14"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@
import { IReport, IIssue, ISettings, StoredScanData } from "../../../../interfaces/interfaces";


const stringHash = require("string-hash");
// From https://github.com/darkskyapp/string-hash/blob/master/index.js
function stringHash(str: string) {
var hash = 5381,
i = str.length;

while (i) {
hash = (hash * 33) ^ str.charCodeAt(--i);
}

/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
* integers. Since we want the results to be always positive, convert the
* signed int to an unsigned by doing an unsigned bitshift. */
return hash >>> 0;
}

interface XLSXProps {
settings: ISettings,
Expand Down
Loading
Loading