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

react-stick

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-stick - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

6

es/StickPortal.js

@@ -91,3 +91,3 @@ import _extends from "@babel/runtime/helpers/extends";

}), children, top != null && left != null && /*#__PURE__*/React.createElement(PortalContext.Provider, {
value: host.parentNode
value: host.parentNode || defaultRoot
}, /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("div", _extends({

@@ -103,3 +103,5 @@ ref: containerRef,

export var PortalContext = /*#__PURE__*/createContext(document.body);
invariant(document.body, 'Stick can only be used in a browser environment.');
var defaultRoot = document.body;
export var PortalContext = /*#__PURE__*/createContext(defaultRoot);
export default /*#__PURE__*/forwardRef(StickPortal);

@@ -106,0 +108,0 @@

@@ -107,3 +107,3 @@ "use strict";

}), children, top != null && left != null && /*#__PURE__*/_react.default.createElement(PortalContext.Provider, {
value: host.parentNode
value: host.parentNode || defaultRoot
}, /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({

@@ -119,3 +119,5 @@ ref: containerRef,

var PortalContext = /*#__PURE__*/(0, _react.createContext)(document.body);
(0, _invariant.default)(document.body, 'Stick can only be used in a browser environment.');
var defaultRoot = document.body;
var PortalContext = /*#__PURE__*/(0, _react.createContext)(defaultRoot);
exports.PortalContext = PortalContext;

@@ -122,0 +124,0 @@

{
"name": "react-stick",
"version": "4.1.0",
"version": "4.1.1",
"description": "React component to stick a portaled node to an anchor node",

@@ -38,9 +38,9 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/core": "7.11.6",
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
"@babel/plugin-transform-runtime": "7.11.5",
"@babel/preset-env": "7.11.5",
"@babel/preset-flow": "7.10.4",
"@babel/preset-react": "7.10.4",
"@testing-library/react": "11.0.4",
"@babel/core": "7.12.1",
"@babel/plugin-proposal-object-rest-spread": "7.12.1",
"@babel/plugin-transform-runtime": "7.12.1",
"@babel/preset-env": "7.12.1",
"@babel/preset-flow": "7.12.1",
"@babel/preset-react": "7.12.1",
"@testing-library/react": "11.1.0",
"babel-eslint": "10.1.0",

@@ -66,4 +66,4 @@ "babel-loader": "8.1.0",

"prettier": "2.1.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"regenerator-runtime": "0.13.7",

@@ -70,0 +70,0 @@ "semantic-release": "17.2.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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