New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-patch

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-patch - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0-alpha.0

dist/shared/tailwindcss-patch.27719efb.cjs

36

dist/index.d.ts

@@ -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

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