Socket
Socket
Sign inDemoInstall

@emotion/utils

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/utils - npm Package Compare versions

Comparing version 1.0.0-next.0 to 1.0.0-next.1

6

CHANGELOG.md
# @emotion/utils
## 1.0.0-next.1
### Patch Changes
- [`debaad9a`](https://github.com/emotion-js/emotion/commit/debaad9ab4bd6c80312092826d9146f3d29c0899) [#1999](https://github.com/emotion-js/emotion/pull/1999) Thanks [@RoystonS](https://github.com/RoystonS)! - Fixed TypeScript definition of the `EmotionCache` by replacing the non-existent `stylis` method with `insert` that is available at runtime.
## 1.0.0-next.0

@@ -4,0 +10,0 @@

2

dist/utils.browser.cjs.js

@@ -29,3 +29,3 @@ 'use strict';

// also, note that this check will be dead code eliminated in the browser
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
isBrowser === false ) && cache.registered[className] === undefined) {
cache.registered[className] = serialized.styles;

@@ -32,0 +32,0 @@ }

@@ -25,3 +25,3 @@ var isBrowser = "object" !== 'undefined';

// also, note that this check will be dead code eliminated in the browser
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
isBrowser === false ) && cache.registered[className] === undefined) {
cache.registered[className] = serialized.styles;

@@ -28,0 +28,0 @@ }

{
"name": "@emotion/utils",
"version": "1.0.0-next.0",
"version": "1.0.0-next.1",
"description": "internal utils for emotion",

@@ -5,0 +5,0 @@ "main": "dist/utils.cjs.js",

@@ -18,3 +18,2 @@ // Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>

export interface EmotionCache {
stylis(key: string, value: string): Array<string>
inserted: {

@@ -28,2 +27,8 @@ [key: string]: string | true

nonce?: string
insert(
selector: string,
serialized: SerializedStyles,
sheet: StyleSheet,
shouldCache: boolean
): string | void
}

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