@ant-design/cssinjs
Advanced tools
@@ -197,5 +197,2 @@ import hash from '@emotion/hash'; | ||
| } | ||
| function Empty() { | ||
| return null; | ||
| } | ||
| export const STYLE_PREFIX = 'style'; | ||
@@ -202,0 +199,0 @@ /** |
@@ -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 @@ /** |
+4
-4
| { | ||
| "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", | ||
| } | ||
| } | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
236372
05104
-0.12%