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

react-float-anchor

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-float-anchor - npm Package Compare versions

Comparing version 1.4.3 to 1.5.0

11

js/index.js

@@ -65,2 +65,4 @@ 'use strict';

/* eslint-disable react/no-find-dom-node */
var requestAnimationFrame = global.requestAnimationFrame || function (cb) {

@@ -221,3 +223,3 @@ return setTimeout(cb, 0);

key: 'parentNodes',
value: _regenerator2.default.mark(function parentNodes(node) {
value: /*#__PURE__*/_regenerator2.default.mark(function parentNodes(node) {
return _regenerator2.default.wrap(function parentNodes$(_context) {

@@ -248,5 +250,6 @@ while (1) {

FloatAnchor.propTypes = {
anchor: _propTypes2.default.element.isRequired,
float: _propTypes2.default.element,
options: _propTypes2.default.object,
anchor: _propTypes2.default.element.isRequired,
float: _propTypes2.default.element
zIndex: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string])
};

@@ -261,2 +264,2 @@ FloatAnchor.childContextTypes = {

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJyZXF1ZXN0QW5pbWF0aW9uRnJhbWUiLCJnbG9iYWwiLCJzZXRUaW1lb3V0IiwiY2IiLCJGbG9hdEFuY2hvciIsIl9pc1JlbmRlcmluZ0Zsb2F0IiwiX3Nob3VsZFJlcG9zaXRpb25PbkZsb2F0UmVuZGVyIiwiX3BvcnRhbFJlbW92YWwiLCJfdW5tb3VudCIsIl9yZXBvc2l0aW9uRXZlbnRzIiwicG9ydGFsIiwiZmxvYXRhbmNob3IiLCJyZXBvc2l0aW9uRXZlbnRzIiwiY29udGV4dCIsIl91cGRhdGVGbG9hdCIsInByb3BzIiwicGFyZW50Q3R4IiwiX3Bhc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R5bGUucG9zaXRpb24gPSAnZml4ZWQnO1xuICAgICAgICBjb25zdCB0YXJnZXQgPSBkb2N1bWVudC5ib2R5IHx8IGRvY3VtZW50LmRvY3VtZW50RWxlbWVudDtcbiAgICAgICAgaWYgKCF0YXJnZXQpIHRocm93IG5ldyBFcnJvcignQ291bGQgbm90IGZpbmQgZWxlbWVudCB0byBhdHRhY2ggcG9ydGFsIHRvJyk7XG4gICAgICAgIHRhcmdldC5hcHBlbmRDaGlsZChwb3J0YWxFbCk7XG4gICAgICAgIChwb3J0YWxFbDogYW55KS5yZmFBbmNob3IgPSBlbDtcbiAgICAgICAgdGhpcy5fcG9ydGFsUmVtb3ZhbC50YWtlKDEpLm9uVmFsdWUoKCkgPT4ge1xuICAgICAgICAgIChwb3J0YWxFbDogYW55KS5yZmFBbmNob3IgPSB1bmRlZmluZWQ7XG4gICAgICAgICAgdGhpcy5wb3J0YWwgPSBudWxsO1xuICAgICAgICAgIFJlYWN0RE9NLnVubW91bnRDb21wb25lbnRBdE5vZGUocG9ydGFsRWwpO1xuICAgICAgICAgIGlmIChwb3J0YWxFbC5wYXJlbnRFbGVtZW50KSBwb3J0YWxFbC5wYXJlbnRFbGVtZW50LnJlbW92ZUNoaWxkKHBvcnRhbEVsKTtcbiAgICAgICAgICB0aGlzLl9wb3J0YWxFbCA9IG51bGw7XG4gICAgICAgIH0pO1xuICAgICAgICBLZWZpci5tZXJnZShbXG4gICAgICAgICAgS2VmaXIuZnJvbUV2ZW50cyh3aW5kb3csICdyZXNpemUnKSxcbiAgICAgICAgICBmcm9tRXZlbnRzV2l0aE9wdGlvbnMod2luZG93LCAnc2Nyb2xsJywge2NhcHR1cmU6IHRydWUsIHBhc3NpdmU6IHRydWV9KVxuICAgICAgICAgICAgLmZpbHRlcihldmVudCA9PiBldmVudC50YXJnZXQuY29udGFpbnMoZWwpKVxuICAgICAgICBdKVxuICAgICAgICAgIC50YWtlVW50aWxCeSh0aGlzLl9wb3J0YWxSZW1vdmFsKVxuIC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yID0gdHJ1ZTtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgY29uc3QgcG9ydGFsRWwgPSB0aGlzLl9wb3J0YWxFbDtcbiAgICBpZiAocG9ydGFsRWwpIHtcbiAgICAgIGNvbnN0IGVsID0gZmluZERPTU5vZGUodGhpcyk7XG4gICAgICBpZiAoIShlbCBpbnN0YW5jZW9mIEhUTUxFbGVtZW50KSkgdGhyb3cgbmV3IEVycm9yKCdSZWFjdEZsb2F0QW5jaG9yIG1pc3NpbmcgZWxlbWVudCcpO1xuICAgICAgY29udGFpbkJ5U2NyZWVuKHBvcnRhbEVsLCBlbCwgdGhpcy5wcm9wcy5vcHRpb25zIHx8IHt9KTtcbiAgICAgIHRoaXMuX3JlcG9zaXRpb25FdmVudHMuZW1pdChudWxsKTtcbiAgICB9XG4gIH1cblxuICByZW5kZXIoKSB7XG4gICAgY29uc3Qge2FuY2hvcn0gPSB0aGlzLnByb3BzO1xuICAgIHJldHVybiBhbmNob3I7XG4gIH1cbn1cbiJdfQ==
{
"name": "react-float-anchor",
"version": "1.4.3",
"version": "1.5.0",
"description": "React component for positioning an element aligned to another",

@@ -50,3 +50,3 @@ "main": "js/index.js",

"eslint-plugin-react": "^7.1.0",
"flow-bin": "^0.49.1",
"flow-bin": "^0.53.1",
"flow-copy-source": "^1.0.1",

@@ -58,3 +58,3 @@ "jest": "^20.0.4",

"rimraf": "^2.6.1",
"sinon": "^2.3.7",
"sinon": "^3.2.1",
"sinon-test": "^2.0.0",

@@ -61,0 +61,0 @@ "watchify": "^3.9.0"

Sorry, the diff of this file is not supported yet

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