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
1
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.1.0-alpha.1 to 4.0.0-alpha.0

dist/shared/tailwindcss-patch.324d67e5.mjs

39

dist/index.d.ts

@@ -5,4 +5,2 @@ import { Rule, Node } from 'postcss';

export { defineConfig } from '@tailwindcss-mangle/config';
import { SyncOpts } from 'resolve';
import { PackageJson } from 'pkg-types';
import * as consola from 'consola';

@@ -23,5 +21,5 @@

}
type InternalCacheOptions = CacheOptions & {
interface InternalCacheOptions extends CacheOptions {
enable?: boolean;
};
}
interface PatchOptions {

@@ -31,6 +29,5 @@ overwrite?: boolean;

basedir?: string;
custom?: (dir: string, ctx: Record<string, any>) => void;
applyPatches?: {
exportContext?: boolean;
extendLengthUnits?: boolean;
extendLengthUnits?: boolean | ILengthUnitsPatchOptions;
};

@@ -105,3 +102,2 @@ }

constructor(options?: CacheOptions);
mkdir(cacheDirectory: string): string;
getOptions(options?: CacheOptions): Required<CacheOptions> & {

@@ -140,28 +136,13 @@ filename: string;

declare function monkeyPatchForExposingContextV3(twDir: string, opt: InternalPatchOptions): {
processTailwindFeatures?: string;
plugin?: string;
} & Record<string, any>;
declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
processTailwindFeatures?: string;
plugin?: string;
} & Record<string, any>;
declare function monkeyPatchForExposingContextV3(twDir: string, opt: InternalPatchOptions): Record<string, any> | undefined;
declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): Record<string, any>;
declare function monkeyPatchForSupportingCustomUnit(rootDir: string, options?: Partial<ILengthUnitsPatchOptions>): string | undefined;
declare function monkeyPatchForSupportingCustomUnit(rootDir: string, options?: Partial<ILengthUnitsPatchOptions>): {
[x: string]: string;
} | undefined;
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): Record<string, any> | undefined;
declare function ensureFileContent(filepaths: string | string[]): string | undefined;
declare function requireResolve(id: string, opts?: SyncOpts): string;
declare function getPackageInfoSync(name: string, options?: SyncOpts): {
name: string;
version: string | undefined;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;
} | undefined;
declare function isObject(val: any): boolean;
declare const logger: consola.ConsolaInstance;
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type ILengthUnitsPatchOptions, 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 };
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type ILengthUnitsPatchOptions, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, getCacheOptions, internalPatch, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit };
{
"name": "tailwindcss-patch",
"version": "3.1.0-alpha.1",
"version": "4.0.0-alpha.0",
"description": "patch tailwindcss for exposing context and extract classes",

@@ -32,2 +32,9 @@ "author": "SonOfMagic <qq1324318532@gmail.com>",

],
"scripts": {
"dev": "unbuild --sourcemap",
"build": "unbuild",
"test": "vitest run --coverage.enabled",
"test:dev": "vitest",
"patch": "node bin/tw-patch.js install"
},
"publishConfig": {

@@ -50,2 +57,3 @@ "access": "public",

"@babel/types": "^7.24.9",
"@tailwindcss-mangle/config": "workspace:^",
"cac": "^6.7.14",

@@ -58,25 +66,4 @@ "consola": "^3.2.3",

"resolve": "^1.22.8",
"semver": "^7.6.3",
"@tailwindcss-mangle/config": "^3.0.0"
},
"devDependencies": {
"@types/babel__generator": "^7.6.8",
"@types/babel__traverse": "^7.20.6",
"@types/resolve": "^1.20.6",
"@types/semver": "^7.5.8",
"pkg-types": "^1.1.3",
"postcss7": "npm:postcss@7",
"tailwindcss": "^3.4.6",
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17"
},
"directories": {
"test": "test"
},
"scripts": {
"dev": "unbuild --sourcemap",
"build": "unbuild",
"test": "vitest run --coverage.enabled",
"test:dev": "vitest",
"patch": "node bin/tw-patch.js install"
"semver": "^7.6.3"
}
}
}

@@ -15,5 +15,2 @@ # tailwindcss-patch

- [Init Config File](#init-config-file)
- [Migration form v1 to v2](#migration-form-v1-to-v2)
- [0. cli command change](#0-cli-command-change)
- [1. default remove `*` in json array result](#1-default-remove--in-json-array-result)
- [What's next?](#whats-next)

@@ -116,23 +113,2 @@

## Migration form v1 to v2
### 0. cli command change
```diff
{
- "tw-patch"
+ "tw-patch install"
}
```
### 1. default remove `*` in json array result
```diff
[
- "*",
"text-[99px]",
"text-[100px]"
]
```
## What's next?

@@ -139,0 +115,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