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 4.0.0-canary.9 to 4.0.0-canary.10

dist/lib/mutation-observer/tsconfig.tsbuildinfo

6

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.useMutationObserver = factory(global.React));
}(this, function (react) { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.useMutationObserver = factory(global.React));
}(this, (function (react) { 'use strict';

@@ -39,3 +39,3 @@ var config = {

}));
})));
//# sourceMappingURL=index.js.map

@@ -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).useMutationObserver=t(e.React)}(this,function(e){"use strict";var t={attributes:!0,characterData:!0,subtree:!0,childList:!0};return function(r,n,u=t){e.useEffect(()=>{if(r.current){const e=new MutationObserver(n);return e.observe(r.current,u),()=>{e.disconnect()}}},[n,u])}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e="undefined"!=typeof globalThis?globalThis: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,i=t){e.useEffect((()=>{if(n.current){const e=new MutationObserver(r);return e.observe(n.current,i),()=>{e.disconnect()}}}),[r,i])}}));
//# sourceMappingURL=index.min.js.map

@@ -9,3 +9,3 @@ {

"name": "@rooks/use-mutation-observer",
"homepage": "https://stories.react-hooks.org/?path=/story/usemutationobserver--basic-example",
"homepage": "https://react-hooks.org/docs/use-mutation-observer",
"repository": {

@@ -16,10 +16,8 @@ "type": "git",

"scripts": {
"test": "jest",
"lint": "eslint src test",
"clean": "rimraf lib",
"test": "sh ../../scripts/test.sh",
"lint": "sh ../../scripts/lint.sh",
"clean": "sh ../../scripts/clean.sh",
"prebuild": "yarn clean",
"build": "rollup -c ../../scripts/rollup.config.js",
"prepublish": "yarn run build",
"pregenerate:types": "rimraf index.d.ts",
"generate:types": "tsc"
"build": "sh ../../scripts/build.sh",
"prepublish": "yarn run build"
},

@@ -36,3 +34,3 @@ "keywords": [

],
"version": "4.0.0-canary.9",
"version": "4.0.0-canary.10",
"_id": "@rooks/use-mutation-observer@",

@@ -45,3 +43,3 @@ "publishConfig": {

},
"gitHead": "be248759844ef0b3e86e9ff6445587aca2e4177c"
"gitHead": "3f6645483d9419480d7b64d804adf5017ee68acd"
}
{
"extends": "../tsconfig_independent.settings.json",
"include": [
"./src/index.ts",
"../shared/**/*.ts",
],
"compilerOptions": {
"rootDir": "./src",
"rootDir": "../",
"outDir": "./lib",
"declarationDir": "./lib"
},
"references": [{
"path": "../shared"
}]
}
}
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