Socket
Socket
Sign inDemoInstall

@emotion/serialize

Package Overview
Dependencies
Maintainers
4
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/serialize - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

CHANGELOG.md
# @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 @@

2

dist/emotion-serialize.browser.cjs.js

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

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