tailwindcss-patch
Advanced tools
Comparing version 3.0.2 to 3.1.0-alpha.0
@@ -7,2 +7,3 @@ import { Rule, Node } from 'postcss'; | ||
import { PackageJson } from 'pkg-types'; | ||
import * as consola from 'consola'; | ||
@@ -30,8 +31,8 @@ type CacheStrategy = 'merge' | 'overwrite'; | ||
custom?: (dir: string, ctx: Record<string, any>) => void; | ||
applyPatches?: { | ||
exportContext?: boolean; | ||
extendLengthUnits?: boolean; | ||
}; | ||
} | ||
interface InternalPatchOptions { | ||
overwrite: boolean; | ||
paths?: string[]; | ||
basedir?: string; | ||
custom?: (dir: string, ctx: Record<string, any>) => void; | ||
interface InternalPatchOptions extends PatchOptions { | ||
version?: string; | ||
@@ -130,11 +131,2 @@ } | ||
declare function inspectProcessTailwindFeaturesReturnContext(content: string): { | ||
code: string; | ||
hasPatched: boolean; | ||
}; | ||
declare function inspectPostcssPlugin(content: string): { | ||
code: string; | ||
hasPatched: boolean; | ||
}; | ||
declare function monkeyPatchForExposingContextV3(twDir: string, opt: InternalPatchOptions): { | ||
@@ -148,2 +140,13 @@ processTailwindFeatures?: string; | ||
} & Record<string, any>; | ||
interface ILengthUnitsPatchOptions { | ||
units: string[]; | ||
lengthUnitsFilePath?: string; | ||
variableName?: string; | ||
overwrite?: boolean; | ||
destPath?: string; | ||
} | ||
declare function monkeyPatchForSupportingCustomUnit(rootDir: string, options?: Partial<ILengthUnitsPatchOptions>): string | undefined; | ||
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined; | ||
@@ -153,3 +156,2 @@ | ||
declare function requireResolve(id: string, opts?: SyncOpts): string; | ||
declare function ensureDir(p: string): Promise<void>; | ||
declare function getPackageInfoSync(name: string, options?: SyncOpts): { | ||
@@ -164,2 +166,4 @@ name: string; | ||
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureDir, ensureFileContent, getCacheOptions, getPackageInfoSync, inspectPostcssPlugin, inspectProcessTailwindFeaturesReturnContext, internalPatch, isObject, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, requireResolve }; | ||
declare const logger: consola.ConsolaInstance; | ||
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve }; |
{ | ||
"name": "tailwindcss-patch", | ||
"version": "3.0.2", | ||
"version": "3.1.0-alpha.0", | ||
"description": "patch tailwindcss for exposing context and extract classes", | ||
@@ -45,12 +45,14 @@ "author": "SonOfMagic <qq1324318532@gmail.com>", | ||
"dependencies": { | ||
"@babel/generator": "^7.24.7", | ||
"@babel/parser": "^7.24.7", | ||
"@babel/traverse": "^7.24.7", | ||
"@babel/types": "^7.24.7", | ||
"@babel/generator": "^7.24.10", | ||
"@babel/parser": "^7.24.8", | ||
"@babel/traverse": "^7.24.8", | ||
"@babel/types": "^7.24.9", | ||
"cac": "^6.7.14", | ||
"consola": "^3.2.3", | ||
"fs-extra": "^11.2.0", | ||
"jiti": "^1.21.6", | ||
"lilconfig": "^3.1.2", | ||
"postcss": "^8.4.38", | ||
"postcss": "^8.4.39", | ||
"resolve": "^1.22.8", | ||
"semver": "^7.6.2", | ||
"semver": "^7.6.3", | ||
"@tailwindcss-mangle/config": "^3.0.0" | ||
@@ -63,5 +65,5 @@ }, | ||
"@types/semver": "^7.5.8", | ||
"pkg-types": "^1.1.1", | ||
"pkg-types": "^1.1.3", | ||
"postcss7": "npm:postcss@7", | ||
"tailwindcss": "^3.4.4", | ||
"tailwindcss": "^3.4.6", | ||
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17" | ||
@@ -68,0 +70,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
91139
1977
14
1
14
1
+ Addedconsola@^3.2.3
+ Addedfs-extra@^11.2.0
+ Addedfs-extra@11.3.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addeduniversalify@2.0.1(transitive)
Updated@babel/generator@^7.24.10
Updated@babel/parser@^7.24.8
Updated@babel/traverse@^7.24.8
Updated@babel/types@^7.24.9
Updatedpostcss@^8.4.39
Updatedsemver@^7.6.3