@emotion/utils
Advanced tools
Comparing version 1.0.0-next.0 to 1.0.0-next.1
# @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 @@ |
@@ -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 @@ |
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
15232
321