Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.