@rooks/use-mutation-observer
Advanced tools
Comparing version 4.0.0-canary.9 to 4.0.0-canary.10
(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" | ||
}] | ||
} | ||
} | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131727
60
651
1