-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Overlay didn't display "npmjs" pages that do not contain a repos…
…itory element (#149) fix issue 148. #148 **content.npmjs.js** - mount Overlay based on h3 element title "install" instead of repository element. **utils.js** - if the element is not in the page. reject timeout after 10 seconds. make bugs like this more easy to detect next time. **.gitignore** - not pull cache and autogenerated files --------- Co-authored-by: Baruch Odem (Rothkoff) <[email protected]>
- Loading branch information
Showing
6 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ typings/ | |
.node_repl_history | ||
*.tgz | ||
.yarn-integrity | ||
.yarn/* | ||
.env | ||
.env.test | ||
.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,5 +64,6 @@ | |
"lint-staged": { | ||
"**/*": "prettier --write --ignore-unknown", | ||
"{src,tests}/**/*.js": "eslint --fix" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
export const SECOND = 1000; | ||
export const MINUTE = 60 * SECOND; | ||
|
||
export const advisories = { | ||
snyk: 'Snyk Advisor', | ||
depsDev: 'OpenSSF Scorecard', | ||
socket: 'Socket', | ||
debricked: 'Debricked', | ||
}; | ||
export const advisoriesNames = Object.keys(advisories); | ||
|
||
export const advisoriesNames = Object.keys(advisories); | ||
export const indicatorTagName = 'overlay-indicator'; | ||
export const packageReportTagName = 'overlay-package-report'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters