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
61
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 0.0.1 to 1.0.0

11

package.json
{
"name": "tailwindcss-patch",
"version": "0.0.1",
"version": "1.0.0",
"description": "patch tailwindcss for exposing context",

@@ -39,4 +39,9 @@ "main": "dist/index.js",

"@babel/types": "^7.21.4",
"semver": "^7.3.8"
"semver": "^7.4.0"
},
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",
"repository": {
"type": "git",
"url": "git+https://github.com/sonofmagic/tailwindcss-mangle.git"
},
"scripts": {

@@ -47,3 +52,3 @@ "dev": "cross-env NODE_ENV=development rollup -cw",

"build:tsc": "tsc -p tsconfig.json",
"test": "jest",
"test": "npm run patch && jest",
"postinstall": "echo postinstall",

@@ -50,0 +55,0 @@ "preinstall": "npx only-allow pnpm",

@@ -25,6 +25,6 @@ # tailwindcss-patch

{
/* ... */
"scripts": {
"prepare": "tw-patch"
}
/* ... */
"scripts": {
"prepare": "tw-patch"
}
}

@@ -36,7 +36,15 @@ ```

```js
import { getContexts , getClassCacheSet } from 'tailwindcss-patch'
import { getContexts, getClassCacheSet } from 'tailwindcss-patch'
// get all contexts at runtime
getContexts()
getContexts()
// get all class generated by tailwindcss utilities
getClassCacheSet()
```
## Notice
`getContexts`,`getClassCacheSet` should be invoked after `postcss-loader`'s activation.
which means you may not get tailwindcss contexts at build start time.
you may call them at `generateBundle` lifetime hook in `vite/webpack plugin`.
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