Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emotion/use-insertion-effect-with-fallbacks

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/use-insertion-effect-with-fallbacks - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/emotion-use-insertion-effect-with-fallbacks.cjs.mjs

5

dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
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 };

8

dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js

@@ -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 @@ },

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