Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unocss/preset-attributify

Package Overview
Dependencies
Maintainers
1
Versions
375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/preset-attributify - npm Package Compare versions

Comparing version 0.1.0-beta.2 to 0.1.0

5

dist/index.js

@@ -39,6 +39,7 @@ var __create = Object.create;

];
var splitterRE = /[\s'"`;]/g;
var splitterRE = /[\s'"`;]+/g;
var elementRE = /<[\w:\.$-]+\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g;
var valuedAttributeRE = /([\w:-]+)(?:=(["'])([^\2]+?)\2)?/g;
var extractorAttributify = (options) => (code) => {
const result = Array.from(code.matchAll(valuedAttributeRE)).flatMap(([, name, _, content]) => {
const result = Array.from(code.matchAll(elementRE)).flatMap((match) => Array.from((match[1] || "").matchAll(valuedAttributeRE))).flatMap(([, name, _, content]) => {
for (const prefix of strippedPrefixes) {

@@ -45,0 +46,0 @@ if (name.startsWith(prefix)) {

4

package.json
{
"name": "@unocss/preset-attributify",
"version": "0.1.0-beta.2",
"version": "0.1.0",
"description": "",

@@ -31,3 +31,3 @@ "keywords": [],

"dependencies": {
"@unocss/core": "0.1.0-beta.2"
"@unocss/core": "0.1.0"
},

@@ -34,0 +34,0 @@ "scripts": {

@@ -66,4 +66,8 @@ # @unocss/preset-attributify

## Credits
Initial idea by [@Tahul](https://github.com/Tahul) and [@antfu](https://github.com/antfu). Pior implementation in Windi CSS by [@voorjaar](https://github.com/voorjaar).
## License
MIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)

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