@stylexjs/shared
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -24,3 +24,3 @@ "use strict"; | ||
const variablesMap = (0, _objectUtils.objMap)(variables, (value, key) => { | ||
const nameHash = classNamePrefix + (0, _hash.default)(`${themeName}.${key}`); | ||
const nameHash = key.startsWith('--') ? key.slice(2) : classNamePrefix + (0, _hash.default)(`${themeName}.${key}`); | ||
if ((0, _types.isCSSType)(value)) { | ||
@@ -27,0 +27,0 @@ const v = value; |
@@ -12,2 +12,3 @@ 'use strict'; | ||
var _whitespace = _interopRequireDefault(require("./normalizers/whitespace")); | ||
var _zeroDimensions = _interopRequireDefault(require("./normalizers/zero-dimensions")); | ||
var _detectUnclosedFns = _interopRequireDefault(require("./normalizers/detect-unclosed-fns")); | ||
@@ -17,3 +18,3 @@ var _postcssValueParser = _interopRequireDefault(require("postcss-value-parser")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const normalizers = [_detectUnclosedFns.default, _whitespace.default, _timings.default, _leadingZero.default, _quotes.default, _convertCamelCaseValues.default]; | ||
const normalizers = [_detectUnclosedFns.default, _whitespace.default, _timings.default, _zeroDimensions.default, _leadingZero.default, _quotes.default, _convertCamelCaseValues.default]; | ||
function normalizeValue(value, key, _ref) { | ||
@@ -20,0 +21,0 @@ let { |
{ | ||
"name": "@stylexjs/shared", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"main": "lib/index.js", | ||
@@ -16,3 +16,3 @@ "repository": "https://www.github.com/facebook/stylex", | ||
"devDependencies": { | ||
"@stylexjs/scripts": "0.6.1" | ||
"@stylexjs/scripts": "0.7.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "jest": { |
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
865840
26127