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

create-emotion

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-emotion - npm Package Compare versions

Comparing version 10.0.6 to 10.0.7

6

package.json
{
"name": "create-emotion",
"version": "10.0.6",
"version": "10.0.7",
"description": "The Next Generation of CSS-in-JS.",

@@ -17,4 +17,4 @@ "main": "dist/create-emotion.cjs.js",

"dependencies": {
"@emotion/cache": "10.0.0",
"@emotion/serialize": "^0.11.3",
"@emotion/cache": "^10.0.7",
"@emotion/serialize": "^0.11.4",
"@emotion/sheet": "0.9.2",

@@ -21,0 +21,0 @@ "@emotion/utils": "0.11.1"

@@ -10,4 +10,2 @@ # create-emotion

const context = typeof global !== 'undefined' ? global : {}
export const {

@@ -24,3 +22,3 @@ flush,

cache
} = createEmotion(context)
} = createEmotion()
```

@@ -46,3 +44,3 @@

- Setting a [nonce]() on any `<style/>` tag emotion creates for security purposes
- Setting a [nonce](/packages/cache#nonce-string) on any `<style/>` tag emotion creates for security purposes

@@ -77,20 +75,2 @@ - Use emotion with a developer defined `<style/>` tag

### nonce: string
A nonce that will be set on each style tag that emotion inserts for [Content Security Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
### stylisPlugins: Function | Array<Function>
A Stylis plugin or plugins that will be run by stylis during preprocessing. [Read Stylis' docs to find out more](https://github.com/thysultan/stylis.js#plugins). This can for be used for many purposes such as RTL.
### prefix: boolean | Function
Allows changing Stylis' prefixing settings, this defaults to `true`. It can be a boolean or a function to dynamicly set which properties are prefixed. [More information can be found in Stylis' docs](https://github.com/thysultan/stylis.js#vendor-prefixing)
### key: string
The prefix before class names, this defaults to `css`. It will also be set as the value of the `data-emotion` attribute on the style tags that emotion inserts and it's used in the attribute name that marks style elements in `renderStylesToString` and `renderStylesToNodeStream`. This is **required if using multiple emotion instances in the same app**.
### container: HTMLElement
A DOM Node that emotion will insert all of it's style tags into, this is useful for inserting styles into iframes.
`createEmotion` accepts the same options as [createCache](/packages/cache#options) from `@emotion/cache`.
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