Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dialog-promise

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dialog-promise - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

10

lib/dialog-promise.js

@@ -237,2 +237,6 @@ "use strict";

body.removeChild(dialogWindow);
if(opts.replacingElement && opts.replacingElement instanceof HTMLElement){
var element = opts.replacingElement;
element.style.display='block';
}
if(answer && answer instanceof Error){

@@ -277,2 +281,7 @@ reject(answer);

ubicateDialog=function ubicateDialog(){
if(opts.replacingElement && opts.replacingElement instanceof HTMLElement){
var element = opts.replacingElement;
element.style.display='none';
opts.underElement = element.parentElement;
}
if(opts.underElement){

@@ -308,2 +317,3 @@ dialogWindow.setAttribute('docked','under');

}
};

@@ -310,0 +320,0 @@ if(dialogWindow.offsetWidth){

2

package.json
{
"name": "dialog-promise",
"description": "Dialog that returns promises",
"version": "0.9.5",
"version": "0.9.6",
"author": "Codenautas <codenautas@googlegroups.com>",

@@ -6,0 +6,0 @@ "repository": "codenautas/dialog-promise",

@@ -68,2 +68,3 @@ # dialog-promise

`underElement` |`null` |the dialog apears below this element. If no element is passed the dialog apears in the center of the window
`replacingElement`|`null` |hides the specified element and places the window under his father. If father not exists, window hangs from body
`withCloseButton` |`true` |display the close button

@@ -70,0 +71,0 @@ `mainAttrs` |`{}` |attributes (properties) for main dialog window

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc