@emotion/use-insertion-effect-with-fallbacks
Advanced tools
Comparing version 1.0.0 to 1.0.1
import * as React from 'react'; | ||
import { useLayoutEffect } from 'react'; | ||
@@ -9,5 +8,5 @@ var syncFallback = function syncFallback(create) { | ||
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false; | ||
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect; | ||
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect; | ||
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback }; |
@@ -16,5 +16,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -24,3 +22,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -39,5 +37,5 @@ } | ||
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect; | ||
exports.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback; | ||
exports.useInsertionEffectWithLayoutFallback = useInsertionEffectWithLayoutFallback; |
@@ -16,5 +16,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -24,3 +22,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -39,5 +37,5 @@ } | ||
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect; | ||
exports.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback; | ||
exports.useInsertionEffectWithLayoutFallback = useInsertionEffectWithLayoutFallback; |
import * as React from 'react'; | ||
import { useLayoutEffect } from 'react'; | ||
@@ -12,4 +11,4 @@ var isBrowser = typeof document !== 'undefined'; | ||
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect; | ||
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback }; |
import * as React from 'react'; | ||
import { useLayoutEffect } from 'react'; | ||
@@ -9,5 +8,5 @@ var syncFallback = function syncFallback(create) { | ||
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false; | ||
var useInsertionEffectAlwaysWithSyncFallback = syncFallback ; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect; | ||
var useInsertionEffectAlwaysWithSyncFallback = syncFallback ; | ||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect; | ||
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback }; |
{ | ||
"name": "@emotion/use-insertion-effect-with-fallbacks", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A wrapper package that uses `useInsertionEffect` or a fallback for it", | ||
@@ -32,2 +32,3 @@ "main": "dist/emotion-use-insertion-effect-with-fallbacks.cjs.js", | ||
}, | ||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.mjs", | ||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.js" | ||
@@ -34,0 +35,0 @@ }, |
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
7382
11
106