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
60
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 2.0.0-alpha.0 to 2.0.0

0

bin/tw-patch.js

@@ -0,0 +0,0 @@ #!/usr/bin/env node

24

dist/index.d.ts

@@ -79,9 +79,16 @@ import { Rule, Node } from 'postcss';

filename?: string;
loose?: boolean;
/**
* @description remove * in output json
*/
removeUniversalSelector?: boolean;
};
postcss?: {
configDir?: string;
loose?: boolean;
};
tailwindcss?: {};
}
type DeepRequired<T> = {
[K in keyof T]: Required<DeepRequired<T[K]>>;
};

@@ -121,9 +128,6 @@ declare function getCacheOptions(options?: CacheOptions | boolean): InternalCacheOptions;

cacheStrategy?: CacheStrategy;
removeUniversalSelector?: boolean;
}): Set<string>;
getContexts(basedir?: string): TailwindcssRuntimeContext[];
extract(options: {
configDir: string;
filename: string;
loose: boolean;
}): Promise<string[]>;
extract(options: DeepRequired<UserConfig>): Promise<string | undefined>;
}

@@ -134,3 +138,5 @@

declare function getClassCaches(basedir?: string): TailwindcssClassCache[];
declare function getClassCacheSet(basedir?: string): Set<string>;
declare function getClassCacheSet(basedir?: string, options?: {
removeUniversalSelector?: boolean;
}): Set<string>;

@@ -155,3 +161,3 @@ declare function inspectProcessTailwindFeaturesReturnContext(content: string): {

declare function getConfig(): Promise<c12.ResolvedConfig<UserConfig, c12.ConfigLayerMeta>>;
declare function getConfig(): Promise<c12.ResolvedConfig<DeepRequired<UserConfig>, c12.ConfigLayerMeta>>;
declare const defineConfig: c12.DefineConfig<UserConfig, c12.ConfigLayerMeta>;

@@ -163,2 +169,2 @@

export { CacheManager, CacheOptions, CacheStrategy, InternalCacheOptions, InternalPatchOptions, PatchOptions, TailwindcssClassCache, TailwindcssPatcher, TailwindcssPatcherOptions, TailwindcssRuntimeContext, UserConfig, createPatch, defineConfig, ensureDir, ensureFileContent, getCacheOptions, getClassCacheSet, getClassCaches, getConfig, getContexts, getInstalledPkgJsonPath, getPatchOptions, getTailwindcssEntry, inspectPostcssPlugin, inspectProcessTailwindFeaturesReturnContext, internalPatch, monkeyPatchForExposingContext, requireResolve };
export { CacheManager, CacheOptions, CacheStrategy, DeepRequired, InternalCacheOptions, InternalPatchOptions, PatchOptions, TailwindcssClassCache, TailwindcssPatcher, TailwindcssPatcherOptions, TailwindcssRuntimeContext, UserConfig, createPatch, defineConfig, ensureDir, ensureFileContent, getCacheOptions, getClassCacheSet, getClassCaches, getConfig, getContexts, getInstalledPkgJsonPath, getPatchOptions, getTailwindcssEntry, inspectPostcssPlugin, inspectProcessTailwindFeaturesReturnContext, internalPatch, monkeyPatchForExposingContext, requireResolve };
{
"name": "tailwindcss-patch",
"version": "2.0.0-alpha.0",
"version": "2.0.0",
"description": "patch tailwindcss for exposing context",

@@ -78,4 +78,4 @@ "exports": {

"test:dev": "vitest",
"cli": "node bin/tw-patch.js"
"cli": "node bin/tw-patch.js install"
}
}

@@ -10,5 +10,7 @@ # tailwindcss-patch

- [Init Config File](#init-config-file)
- [extract all class into a json](#extract-all-class-into-a-json)
- [Extract all class into a json](#extract-all-class-into-a-json)
- [Nodejs](#nodejs)
- [Migration form v1 to v2](#migration-form-v1-to-v2)
- [2. cli command change](#2-cli-command-change)
- [1. default remove `*` in json array result](#1-default-remove--in-json-array-result)
- [Notice](#notice)

@@ -55,3 +57,3 @@

### extract all class into a json
### Extract all class into a json

@@ -75,3 +77,3 @@ ```sh

// get all class generated by tailwindcss utilities
twPatcher.getClassCacheSet()
twPatcher.getClassSet()
```

@@ -81,2 +83,4 @@

### 2. cli command change
```diff

@@ -89,2 +93,12 @@ {

### 1. default remove `*` in json array result
```diff
[
- "*",
"text-[99px]",
"text-[100px]"
]
```
## Notice

@@ -91,0 +105,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

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