Socket
Socket
Sign inDemoInstall

@unocss/vite

Package Overview
Dependencies
Maintainers
1
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/vite - npm Package Compare versions

Comparing version 0.1.0-beta.2 to 0.1.0

7

dist/index.js

@@ -145,3 +145,3 @@ var __create = Object.create;

const [main, opacity2] = body.split("/");
const [name, no = "DEFAULT"] = main.split(/(?<=[a-z])-?(?=[0-9])/g);
const [name, no = "DEFAULT"] = main.replace(/([a-z])([0-9])/g, "$1-$2").split(/-/g);
if (!name)

@@ -1262,6 +1262,7 @@ return;

];
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) {

@@ -1268,0 +1269,0 @@ if (name.startsWith(prefix)) {

{
"name": "@unocss/vite",
"version": "0.1.0-beta.2",
"version": "0.1.0",
"description": "",

@@ -32,5 +32,5 @@ "keywords": [],

"@rollup/pluginutils": "^4.1.1",
"@unocss/config": "0.1.0-beta.2",
"@unocss/core": "0.1.0-beta.2",
"@unocss/scope": "0.1.0-beta.2",
"@unocss/config": "0.1.0",
"@unocss/core": "0.1.0",
"@unocss/scope": "0.1.0",
"nanoevents": "^6.0.2"

@@ -37,0 +37,0 @@ },

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