@emotion/serialize
Advanced tools
Comparing version 1.0.2 to 1.0.3
# @emotion/serialize | ||
## 1.0.3 | ||
### Patch Changes | ||
- [#2700](https://github.com/emotion-js/emotion/pull/2700) [`d9357621`](https://github.com/emotion-js/emotion/commit/d935762131b1474f2474296ee4706f7ecd59b6dd) Thanks [@arturmuller](https://github.com/arturmuller)! - Fixed a false positive warning for `content` properties that included `var()`. | ||
## 1.0.2 | ||
@@ -4,0 +10,0 @@ |
@@ -58,3 +58,3 @@ 'use strict'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; | ||
@@ -61,0 +61,0 @@ var oldProcessStyleValue = processStyleValue; |
@@ -48,3 +48,3 @@ import hashString from '@emotion/hash'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; | ||
@@ -51,0 +51,0 @@ var oldProcessStyleValue = processStyleValue; |
@@ -58,3 +58,3 @@ 'use strict'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; | ||
@@ -61,0 +61,0 @@ var oldProcessStyleValue = processStyleValue; |
@@ -48,3 +48,3 @@ import hashString from '@emotion/hash'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; | ||
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; | ||
@@ -51,0 +51,0 @@ var oldProcessStyleValue = processStyleValue; |
{ | ||
"name": "@emotion/serialize", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "serialization utils for emotion", | ||
@@ -24,3 +24,4 @@ "main": "dist/emotion-serialize.cjs.js", | ||
"devDependencies": { | ||
"dtslint": "^0.3.0" | ||
"dtslint": "^4.2.1", | ||
"typescript": "^4.5.5" | ||
}, | ||
@@ -27,0 +28,0 @@ "files": [ |
@@ -25,7 +25,6 @@ // @flow | ||
const processStyleName = /* #__PURE__ */ memoize( | ||
(styleName: string) => | ||
isCustomProperty(styleName) | ||
? styleName | ||
: styleName.replace(hyphenateRegex, '-$&').toLowerCase() | ||
const processStyleName = /* #__PURE__ */ memoize((styleName: string) => | ||
isCustomProperty(styleName) | ||
? styleName | ||
: styleName.replace(hyphenateRegex, '-$&').toLowerCase() | ||
) | ||
@@ -65,3 +64,4 @@ | ||
if (process.env.NODE_ENV !== 'production') { | ||
let contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/ | ||
let contentValuePattern = | ||
/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/ | ||
let contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'] | ||
@@ -303,3 +303,4 @@ | ||
if (process.env.NODE_ENV !== 'production') { | ||
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g | ||
sourceMapPattern = | ||
/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g | ||
} | ||
@@ -311,3 +312,3 @@ | ||
export const serializeStyles = function( | ||
export const serializeStyles = function ( | ||
args: Array<Interpolation>, | ||
@@ -314,0 +315,0 @@ registered: RegisteredCache | void, |
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
79064
1558
2