Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ant-design/cssinjs

Package Overview
Dependencies
Maintainers
18
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/cssinjs - npm Package Compare versions

Comparing version 0.0.0-alpha.10 to 0.0.0-alpha.11

6

es/useCacheToken.js

@@ -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": [

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