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

@juggle/resize-observer

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juggle/resize-observer - npm Package Compare versions

Comparing version 3.3.1 to 3.4.0

2

lib/algorithms/calculateBoxSize.d.ts

@@ -11,3 +11,3 @@ import { ResizeObserverBoxOptions } from '../ResizeObserverBoxOptions';

declare const calculateBoxSizes: (target: Element, forceRecalculation?: boolean) => ResizeObserverSizeCollection;
declare const calculateBoxSize: (target: Element, observedBox: ResizeObserverBoxOptions, forceRecalculation?: boolean | undefined) => ResizeObserverSize;
declare const calculateBoxSize: (target: Element, observedBox: ResizeObserverBoxOptions, forceRecalculation?: boolean) => ResizeObserverSize;
export { calculateBoxSize, calculateBoxSizes };

@@ -5,3 +5,3 @@ (function (global, factory) {

(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ResizeObserver = {}));
}(this, (function (exports) { 'use strict';
})(this, (function (exports) { 'use strict';

@@ -84,7 +84,7 @@ var resizeObservers = [];

var isElement = function (obj) {
var _a, _b;
var _a;
if (obj instanceof Element) {
return true;
}
var scope = (_b = (_a = obj) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView;
var scope = (_a = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
return !!(scope && obj instanceof scope.Element);

@@ -278,3 +278,3 @@ };

new MutationObserver(function () { return notify(); }).observe(el_1, config);
trigger = function () { el_1.textContent = "" + (toggle_1 ? toggle_1-- : toggle_1++); };
trigger = function () { el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++); };
}

@@ -515,2 +515,2 @@ callbacks.push(callback);

})));
}));

@@ -11,7 +11,7 @@ var isSVG = function (target) { return target instanceof SVGElement && 'getBBox' in target; };

var isElement = function (obj) {
var _a, _b;
var _a;
if (obj instanceof Element) {
return true;
}
var scope = (_b = (_a = obj) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView;
var scope = (_a = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
return !!(scope && obj instanceof scope.Element);

@@ -18,0 +18,0 @@ };

@@ -10,3 +10,3 @@ var trigger;

new MutationObserver(function () { return notify(); }).observe(el_1, config);
trigger = function () { el_1.textContent = "" + (toggle_1 ? toggle_1-- : toggle_1++); };
trigger = function () { el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++); };
}

@@ -13,0 +13,0 @@ callbacks.push(callback);

{
"name": "@juggle/resize-observer",
"version": "3.3.1",
"version": "3.4.0",
"description": "Polyfills the ResizeObserver API and supports box size options from the latest spec",

@@ -5,0 +5,0 @@ "main": "lib/exports/resize-observer.umd.js",

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