Comparing version 4.0.3 to 4.0.4
{ | ||
"name": "stylis", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "description": "A Light–weight CSS Preprocessor", | ||
"type": "module", | ||
"main": "dist/stylis.cjs", | ||
"main": "dist/stylis.js", | ||
"module": "dist/stylis.mjs", | ||
@@ -15,0 +15,0 @@ "react-native": "./index.js", |
@@ -69,11 +69,10 @@ import {MS, MOZ, WEBKIT} from './Enum.js' | ||
switch (charat(value, length + 1)) { | ||
// (f)ill-available, (f)it-content | ||
case 102: length = charat(value, length + 3) | ||
// (m)ax-content, (m)in-content | ||
case 109: | ||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + '$2-$3') + value | ||
// (f)ill-available | ||
case 102: | ||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + '$3') + value | ||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (length == 108 ? '$3' : '$2-$3')) + value | ||
// (s)tretch | ||
case 115: | ||
return prefix(replace(value, 'stretch', 'fill-available'), length) + value | ||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value | ||
} | ||
@@ -80,0 +79,0 @@ break |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
161896
18
810