New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dialog-promise

Package Overview
Dependencies
Maintainers
2
Versions
47
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

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