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

react-fit

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fit - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

dist/Fit.js

@@ -216,4 +216,2 @@ "use strict";

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mutationOberver", isMutationOberverSupported && new MutationObserver(_this.onMutation));
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMutation", function () {

@@ -223,2 +221,4 @@ _this.fit();

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mutationOberver", isMutationOberverSupported && new MutationObserver(_this.onMutation));
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "fit", function () {

@@ -225,0 +225,0 @@ var _assertThisInitialize = _assertThisInitialized(_assertThisInitialized(_this)),

{
"name": "react-fit",
"version": "1.0.1",
"version": "1.0.2",
"description": "Fit a popover element on the screen.",

@@ -5,0 +5,0 @@ "main": "dist/Fit.js",

@@ -152,4 +152,2 @@ import React, { Component } from 'react';

export default class Fit extends Component {
mutationOberver = isMutationOberverSupported && new MutationObserver(this.onMutation);
componentDidMount() {

@@ -173,2 +171,6 @@ if (!isDisplayContentsSupported) {

// Has to be defined after onMutation
// eslint-disable-next-line react/sort-comp
mutationOberver = isMutationOberverSupported && new MutationObserver(this.onMutation);
fit = () => {

@@ -175,0 +177,0 @@ const { container, element } = this;

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