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

@vx/responsive

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/responsive - npm Package Compare versions

Comparing version 0.0.153 to 0.0.158

12

build/components/ParentSize.js

@@ -23,2 +23,6 @@ 'use strict';

var _debounce = require('lodash/debounce');
var _debounce2 = _interopRequireDefault(_debounce);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -41,3 +45,3 @@

_this.state = { width: 0, height: 0, top: 0, left: 0 };
_this.resize = _this.resize.bind(_this);
_this.resize = (0, _debounce2.default)(_this.resize.bind(_this), props.debounceTime);
_this.setTarget = _this.setTarget.bind(_this);

@@ -142,2 +146,5 @@ return _this;

ParentSize.defaultProps = {
debounceTime: 300
};
exports.default = ParentSize;

@@ -148,3 +155,4 @@

className: _propTypes2.default.string,
children: _propTypes2.default.func.isRequired
children: _propTypes2.default.func.isRequired,
debounceTime: _propTypes2.default.number
};

2

package.json
{
"name": "@vx/responsive",
"version": "0.0.153",
"version": "0.0.158",
"description": "vx responsive svg",

@@ -5,0 +5,0 @@ "sideEffects": false,

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