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

react-new-window

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-new-window - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "react-new-window",
"description": "Pop a new window in React, using window.open API",
"version": "0.2.1",
"version": "0.2.2",
"keywords": [

@@ -6,0 +6,0 @@ "react",

@@ -48,3 +48,3 @@ [![React New Window - Pop new windows in React, using window.open API.](.github/banner.svg)](#features)

| `onBlock` | `Function` | `undefined` | A function to be triggered when the new window could not be opened. |
| `onOpen` | `Function` | `undefined` | A function to be triggered when window open by library. |
| `onOpen` | `Function(w: Window)` | `undefined` | A function to be triggered when window open by library. |
| `center` | `String` | `parent` | Indicate how to center the new window. Valid values are: `parent` or `screen`. `parent` will center the new window according to its _parent_ window. `screen` will center the new window according to the _screen_. |

@@ -51,0 +51,0 @@ | `copyStyles` | `Boolean` | `true` | If specified, copy styles from parent window's document. |

@@ -26,2 +26,7 @@ import React from 'react'

/**
* Children to render in the new window.
*/
children?: React.ReactNode
/**
* The URL to open, if specified any children will be overriden.

@@ -28,0 +33,0 @@ */

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