@ant-design/cssinjs
Advanced tools
Comparing version 0.0.0-alpha.10 to 0.0.0-alpha.11
@@ -53,6 +53,6 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
var tokenStr = flattenToken(Object.assign.apply(Object, [{}].concat(_toConsumableArray(tokens)))); | ||
var mergedToken = Object.assign.apply(Object, [{}].concat(_toConsumableArray(tokens))); | ||
var tokenStr = flattenToken(mergedToken); | ||
var cachedToken = useGlobalCache('token', [salt, tokenStr], function () { | ||
var mergedDesignToken = Object.assign.apply(Object, [{}].concat(_toConsumableArray(tokens))); | ||
var derivativeToken = theme.getDerivativeToken(mergedDesignToken); // Optimize for `useStyleRegister` performance | ||
var derivativeToken = theme.getDerivativeToken(mergedToken); // Optimize for `useStyleRegister` performance | ||
@@ -59,0 +59,0 @@ var tokenKey = token2key(derivativeToken, salt); |
@@ -67,6 +67,6 @@ "use strict"; | ||
var tokenStr = (0, _util.flattenToken)(Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(tokens)))); | ||
var mergedToken = Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(tokens))); | ||
var tokenStr = (0, _util.flattenToken)(mergedToken); | ||
var cachedToken = (0, _useGlobalCache.default)('token', [salt, tokenStr], function () { | ||
var mergedDesignToken = Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(tokens))); | ||
var derivativeToken = theme.getDerivativeToken(mergedDesignToken); // Optimize for `useStyleRegister` performance | ||
var derivativeToken = theme.getDerivativeToken(mergedToken); // Optimize for `useStyleRegister` performance | ||
@@ -73,0 +73,0 @@ var tokenKey = (0, _util.token2key)(derivativeToken, salt); |
{ | ||
"name": "@ant-design/cssinjs", | ||
"version": "0.0.0-alpha.10", | ||
"version": "0.0.0-alpha.11", | ||
"description": "Component level cssinjs resolution for antd", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
51054