@chakra-ui/react-env
Advanced tools
Comparing version 1.0.3 to 1.0.4
# @chakra-ui/react-env | ||
## 1.0.4 | ||
### Patch Changes | ||
- [`48cc3f00d`](https://github.com/chakra-ui/chakra-ui/commit/48cc3f00d5cad522904b3a159cf6f2bfefdaa1ed) | ||
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Update mock window | ||
- Updated dependencies | ||
[[`d0f50a46e`](https://github.com/chakra-ui/chakra-ui/commit/d0f50a46ea6c2bcf06d8cad8b9b3994fd934be01), | ||
[`b479ff22e`](https://github.com/chakra-ui/chakra-ui/commit/b479ff22ea10c1a1393224c37c36aa6ceabc4aab), | ||
[`07d15eab4`](https://github.com/chakra-ui/chakra-ui/commit/07d15eab480724f8fee1a09b7cecdf1e968d9ddd)]: | ||
- @chakra-ui/utils@1.8.0 | ||
## 1.0.3 | ||
@@ -4,0 +17,0 @@ |
@@ -27,4 +27,2 @@ "use strict"; | ||
}, | ||
setTimeout: noop, | ||
clearTimeout: noop, | ||
matchMedia: function matchMedia() { | ||
@@ -46,8 +44,13 @@ return { | ||
cancelAnimationFrame: function cancelAnimationFrame(id) { | ||
if (typeof setTimeout === "undefined") { | ||
return; | ||
} | ||
if (typeof setTimeout === "undefined") return; | ||
clearTimeout(id); | ||
} | ||
}, | ||
setTimeout: function setTimeout() { | ||
return 0; | ||
}, | ||
clearTimeout: noop, | ||
setInterval: function setInterval() { | ||
return 0; | ||
}, | ||
clearInterval: noop | ||
}; | ||
@@ -54,0 +57,0 @@ var ssrWindow = win; |
@@ -25,5 +25,2 @@ import { ssrDocument } from "./mock-document"; | ||
setTimeout: noop, | ||
clearTimeout: noop, | ||
matchMedia() { | ||
@@ -47,11 +44,12 @@ return { | ||
cancelAnimationFrame(id) { | ||
if (typeof setTimeout === "undefined") { | ||
return; | ||
} | ||
if (typeof setTimeout === "undefined") return; | ||
clearTimeout(id); | ||
} | ||
}, | ||
setTimeout: () => 0, | ||
clearTimeout: noop, | ||
setInterval: () => 0, | ||
clearInterval: noop | ||
}; | ||
export var ssrWindow = win; | ||
//# sourceMappingURL=mock-window.js.map |
{ | ||
"name": "@chakra-ui/react-env", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Component and hook for handling window and document object in iframe or ssr environment", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "1.7.0" | ||
"@chakra-ui/utils": "1.8.0" | ||
}, | ||
@@ -58,0 +58,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
31005
309
+ Added@chakra-ui/utils@1.8.0(transitive)
- Removed@chakra-ui/utils@1.7.0(transitive)
Updated@chakra-ui/utils@1.8.0