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

@visx/responsive

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visx/responsive - npm Package Compare versions

Comparing version 2.7.1 to 2.8.0

2

esm/components/ParentSize.js

@@ -10,3 +10,3 @@ import _pt from "prop-types";

import React, { useEffect, useMemo, useRef, useState } from 'react';
import ResizeObserver from 'resize-observer-polyfill';
import { ResizeObserver } from '@juggle/resize-observer';
var defaultIgnoreDimensions = [];

@@ -13,0 +13,0 @@ export default function ParentSize(_ref) {

@@ -15,3 +15,3 @@ import _pt from "prop-types";

import debounce from 'lodash/debounce';
import ResizeObserver from 'resize-observer-polyfill';
import { ResizeObserver } from '@juggle/resize-observer';
var CONTAINER_STYLES = {

@@ -18,0 +18,0 @@ width: '100%',

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

var _resizeObserverPolyfill = _interopRequireDefault(require("resize-observer-polyfill"));
var _resizeObserver = require("@juggle/resize-observer");

@@ -75,3 +75,3 @@ var _excluded = ["className", "children", "debounceTime", "ignoreDimensions", "parentSizeStyles", "enableDebounceLeadingCall"];

(0, _react.useEffect)(function () {
var observer = new _resizeObserverPolyfill.default(function (entries
var observer = new _resizeObserver.ResizeObserver(function (entries
/** , observer */

@@ -78,0 +78,0 @@ ) {

/// <reference types="lodash" />
import React from 'react';
import ResizeObserver from 'resize-observer-polyfill';
import { ResizeObserver } from '@juggle/resize-observer';
export declare type WithParentSizeProps = {

@@ -5,0 +5,0 @@ debounceTime?: number;

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

var _resizeObserverPolyfill = _interopRequireDefault(require("resize-observer-polyfill"));
var _resizeObserver = require("@juggle/resize-observer");

@@ -82,3 +82,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

this.resizeObserver = new _resizeObserverPolyfill.default(function (entries
this.resizeObserver = new _resizeObserver.ResizeObserver(function (entries
/** , observer */

@@ -85,0 +85,0 @@ ) {

{
"name": "@visx/responsive",
"version": "2.7.1",
"version": "2.8.0",
"description": "visx responsive svg",

@@ -31,7 +31,7 @@ "sideEffects": false,

"dependencies": {
"@juggle/resize-observer": "^3.3.1",
"@types/lodash": "^4.14.172",
"@types/react": "*",
"lodash": "^4.17.21",
"prop-types": "^15.6.1",
"resize-observer-polyfill": "1.5.1"
"prop-types": "^15.6.1"
},

@@ -44,3 +44,3 @@ "peerDependencies": {

},
"gitHead": "58a3f5a65997274e41d240e2b8ed491400fdfded"
"gitHead": "dadd039d0c5271cd522dfd956f0239873d433b61"
}

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