You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tailwindcss-patch

Package Overview
Dependencies
Maintainers
1
Versions
69
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

to
7.1.1

dist/chunk-36H7NLND.mjs

16

dist/cli.js

@@ -7,3 +7,3 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _chunkT7FU63AYjs = require('./chunk-T7FU63AY.js');
var _chunkDULFDOL2js = require('./chunk-DULFDOL2.js');

@@ -20,4 +20,4 @@ // src/cli.ts

cli.command("install", "patch install").action(() => {
const twPatcher = new (0, _chunkT7FU63AYjs.TailwindcssPatcher)({
patch: _chunkT7FU63AYjs.getPatchOptions.call(void 0, )
const twPatcher = new (0, _chunkDULFDOL2js.TailwindcssPatcher)({
patch: _chunkDULFDOL2js.getPatchOptions.call(void 0, )
});

@@ -28,3 +28,3 @@ twPatcher.patch();

await init();
_chunkT7FU63AYjs.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`);
_chunkDULFDOL2js.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`);
});

@@ -35,9 +35,9 @@ cli.command("extract").option("--css [file]", "css file entries").action(async (options) => {

if (config) {
const twPatcher = new (0, _chunkT7FU63AYjs.TailwindcssPatcher)(
const twPatcher = new (0, _chunkDULFDOL2js.TailwindcssPatcher)(
{
patch: _chunkT7FU63AYjs.defuOverrideArray.call(void 0,
patch: _chunkDULFDOL2js.defuOverrideArray.call(void 0,
config.patch,
{
resolve: {
paths: [_chunkT7FU63AYjs.importMetaUrl]
paths: [_chunkDULFDOL2js.importMetaUrl]
},

@@ -54,3 +54,3 @@ tailwindcss: {

const p = await twPatcher.extract();
p && _chunkT7FU63AYjs.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p.filename}, classList length: ${p.classList.length}`);
p && _chunkDULFDOL2js.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p.filename}, classList length: ${p.classList.length}`);
}

@@ -57,0 +57,0 @@ });

@@ -100,4 +100,4 @@ import { PatchUserConfig } from '@tailwindcss-mangle/config';

};
write(data: Set<string>): Promise<string | undefined>;
read(): Promise<Set<string>>;
write(data: Set<string>): string | undefined;
read(): Set<string>;
}

@@ -122,7 +122,8 @@

constructor(options?: TailwindcssPatcherOptions);
setCache(set: Set<string>): Promise<string | undefined> | undefined;
getCache(): Promise<Set<string>>;
setCache(set: Set<string>): string | undefined;
getCache(): Set<string>;
getContexts(): TailwindcssRuntimeContext[];
getClassCaches(): TailwindcssClassCache[];
getClassCacheSet(): Promise<Set<string>>;
getClassCacheSetV3(): Set<string>;
/**

@@ -132,2 +133,3 @@ * @description 在多个 tailwindcss 上下文时,这个方法将被执行多次,所以策略上应该使用 append

getClassSet(): Promise<Set<string>>;
getClassSetV3(): Set<string>;
extract(): Promise<{

@@ -134,0 +136,0 @@ filename: string;

@@ -11,3 +11,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkT7FU63AYjs = require('./chunk-T7FU63AY.js');
var _chunkDULFDOL2js = require('./chunk-DULFDOL2.js');

@@ -27,2 +27,2 @@ // src/index.ts

exports.CacheManager = _chunkT7FU63AYjs.CacheManager; exports.TailwindcssPatcher = _chunkT7FU63AYjs.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkT7FU63AYjs.getCacheOptions; exports.internalPatch = _chunkT7FU63AYjs.internalPatch; exports.logger = _chunkT7FU63AYjs.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkT7FU63AYjs.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkT7FU63AYjs.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnitV3 = _chunkT7FU63AYjs.monkeyPatchForSupportingCustomUnitV3; exports.monkeyPatchForSupportingCustomUnitV4 = _chunkT7FU63AYjs.monkeyPatchForSupportingCustomUnitV4;
exports.CacheManager = _chunkDULFDOL2js.CacheManager; exports.TailwindcssPatcher = _chunkDULFDOL2js.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkDULFDOL2js.getCacheOptions; exports.internalPatch = _chunkDULFDOL2js.internalPatch; exports.logger = _chunkDULFDOL2js.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkDULFDOL2js.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkDULFDOL2js.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnitV3 = _chunkDULFDOL2js.monkeyPatchForSupportingCustomUnitV3; exports.monkeyPatchForSupportingCustomUnitV4 = _chunkDULFDOL2js.monkeyPatchForSupportingCustomUnitV4;
{
"name": "tailwindcss-patch",
"version": "7.1.0",
"version": "7.1.1",
"description": "patch tailwindcss for exposing context and extract classes",

@@ -68,6 +68,6 @@ "author": "ice breaker <1324318532@qq.com>",

"devDependencies": {
"@tailwindcss/node": "^4.1.1",
"@tailwindcss/oxide": "^4.1.1",
"@tailwindcss/postcss": "^4.1.1",
"@tailwindcss/vite": "^4.1.1",
"@tailwindcss/node": "^4.1.4",
"@tailwindcss/oxide": "^4.1.4",
"@tailwindcss/postcss": "^4.1.4",
"@tailwindcss/vite": "^4.1.4",
"tailwindcss": "^4.1.1",

@@ -74,0 +74,0 @@ "tailwindcss-3": "npm:tailwindcss@^3",

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