Socket
Socket
Sign inDemoInstall

@rooks/use-mutation-observer

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rooks/use-mutation-observer - npm Package Compare versions

Comparing version 1.1.1-alpha.0 to 1.1.3-alpha.0

2

lib/index.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
typeof define === 'function' && define.amd ? define(['react'], factory) :
(global = global || self, global.styled = factory(global.React));
(global = global || self, global.useMutationObserver = factory(global.React));
}(this, function (react) { 'use strict';

@@ -6,0 +6,0 @@

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).styled=t(e.React)}(this,function(e){"use strict";var t={attributes:!0,characterData:!0,subtree:!0,childList:!0};return function(n,r){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t;e.useEffect(function(){if(n.current){var e=new MutationObserver(function(e,t){r(e,t)});return e.observe(n.current,c),function(){e.disconnect()}}},[n.current,r,c])}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).useMutationObserver=t(e.React)}(this,function(e){"use strict";var t={attributes:!0,characterData:!0,subtree:!0,childList:!0};return function(n,r){var u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t;e.useEffect(function(){if(n.current){var e=new MutationObserver(function(e,t){r(e,t)});return e.observe(n.current,u),function(){e.disconnect()}}},[n.current,r,u])}});
//# sourceMappingURL=index.min.js.map

@@ -29,3 +29,3 @@ {

],
"version": "1.1.1-alpha.0",
"version": "1.1.3-alpha.0",
"_id": "@rooks/use-mutation-observer@",

@@ -39,3 +39,3 @@ "publishConfig": {

},
"gitHead": "ed8e0b14e66169190911cce04cca443279559f2a"
"gitHead": "144b5e23042d04242cdbeb997048d00b6c56ddbd"
}

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