Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ant-design/cssinjs

Package Overview
Dependencies
Maintainers
7
Versions
134
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
2.0.0-alpha.8
to
2.0.0-alpha.9
+0
-3
es/hooks/useStyleRegister.js

@@ -197,5 +197,2 @@ import hash from '@emotion/hash';

}
function Empty() {
return null;
}
export const STYLE_PREFIX = 'style';

@@ -202,0 +199,0 @@ /**

+1
-1

@@ -7,3 +7,3 @@ import { lintWarning } from "./utils";

const contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && !value.startsWith('var(') && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
lintWarning(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${value}"'\`.`, info);

@@ -10,0 +10,0 @@ }

@@ -1,2 +0,2 @@

import { HashPriority } from '../StyleContext';
import type { HashPriority } from '../StyleContext';
export declare const token2CSSVar: (token: string, prefix?: string) => string;

@@ -3,0 +3,0 @@ export declare const serializeCSSVar: <T extends Record<string, any>>(cssVars: T, hashId: string, options?: {

@@ -1,2 +0,2 @@

import { HashPriority } from '../StyleContext';
import type { HashPriority } from '../StyleContext';
export declare function memoResult<T extends object, R>(callback: () => R, deps: T[]): R;

@@ -3,0 +3,0 @@ /**

@@ -213,5 +213,2 @@ "use strict";

}
function Empty() {
return null;
}
const STYLE_PREFIX = exports.STYLE_PREFIX = 'style';

@@ -218,0 +215,0 @@ /**

@@ -13,3 +13,3 @@ "use strict";

const contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && !value.startsWith('var(') && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
(0, _utils.lintWarning)(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${value}"'\`.`, info);

@@ -16,0 +16,0 @@ }

@@ -1,2 +0,2 @@

import { HashPriority } from '../StyleContext';
import type { HashPriority } from '../StyleContext';
export declare const token2CSSVar: (token: string, prefix?: string) => string;

@@ -3,0 +3,0 @@ export declare const serializeCSSVar: <T extends Record<string, any>>(cssVars: T, hashId: string, options?: {

@@ -1,2 +0,2 @@

import { HashPriority } from '../StyleContext';
import type { HashPriority } from '../StyleContext';
export declare function memoResult<T extends object, R>(callback: () => R, deps: T[]): R;

@@ -3,0 +3,0 @@ /**

{
"name": "@ant-design/cssinjs",
"version": "2.0.0-alpha.8",
"version": "2.0.0-alpha.9",
"description": "Component level cssinjs resolution for antd",

@@ -66,3 +66,3 @@ "keywords": [

"@types/testing-library__jest-dom": "^5.14.5",
"@umijs/fabric": "^2.0.8",
"@umijs/fabric": "^4.0.1",
"@vitest/coverage-c8": "^0.31.0",

@@ -72,3 +72,3 @@ "coveralls": "^3.0.6",

"dumi": "^2.1.13",
"eslint": "^7.0.0",
"eslint": "8.57.1",
"father": "^4.5.6",

@@ -94,2 +94,2 @@ "gh-pages": "^3.1.0",

}
}
}