Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
An HTML5 spec-compliant <dialog> polyfill built with Angular 1.x.
Copyright © 2016 Ayogo Health Inc.
dialog
elements via Angular directiveshow()
, showModal()
, close()
, returnValue
)dialog
support in ChromeTo get started, install the package from npm: npm install ay-dialog
Add a script tag to your page to reference the dialog.js file:
<script src="node_modules/ay-dialog/dialog.js"></script>
Reference the module in your Angular app's dependencies:
angular.module(myApp, ['ayDialog'])
Reference the module in your Angular app's dependencies:
var ayDialog = require('ay-dialog').default;
angular.module(myApp, [ayDialog])
Reference the module in your Angular app's dependencies:
import ayDialog from 'ay-dialog';
angular.module(myApp, [ayDialog])
A TypeScript module definition is included, which also provides typings for the HTMLDialogElement interface.
It's not possible to implement the backdrop as a pseudo-element (as it is in native implementations), so the backdrop is added as a sibling element with a .backdrop
class.
Note that you need two separate selectors to support both .backdrop
and ::backdrop
, otherwise browsers that don't recognize the pseudo-element will skip the CSS block entirely!
dialog + .backdrop {
background: rgba(1, 0, 0, 0.1);
}
dialog::backdrop {
background: rgba(1, 0, 0, 0.1);
}
Released under the terms of the MIT License.
FAQs
An HTML5 spec-compliant <dialog> polyfill.
The npm package ay-dialog receives a total of 1 weekly downloads. As such, ay-dialog popularity was classified as not popular.
We found that ay-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.