Socket
Socket
Sign inDemoInstall

void-css

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

void-css - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

12

index.js

@@ -6,2 +6,14 @@ "use strict";

const defaultExtensions_1 = require("./src/extensions/defaultExtensions");
const css = `
:root {
--bg: #2E343D;
--bg2: #444B5B;
--bg3: #171F26;
--color: #fff;
--color2: #ccc;
}
`;
const compiler = VoidCSS();
console.log(compiler(css));
function VoidCSS(config) {

@@ -8,0 +20,0 @@ const configInstance = new config_1.Config(config ?? {});

@@ -8,4 +8,17 @@

const css = `
:root {
--bg: #2E343D;
--bg2: #444B5B;
--bg3: #171F26;
--color: #fff;
--color2: #ccc;
}
`
const compiler = VoidCSS();
console.log(compiler(css));
function VoidCSS(config?: VoidCSSConfiguration) {

@@ -12,0 +25,0 @@ const configInstance = new Config(config ?? {});

7

package.json
{
"name": "void-css",
"version": "1.0.7",
"version": "1.0.8",
"description": "",
"main": "index.js",
"scripts": {
"dev": "nodemon --watch ./**/*.ts --ignore ./viteTest/**/* --exec npx ts-node index.ts",
"test": "jest",
"dev": "nodemon --watch ./**/*.ts --exec npx ts-node index.ts",
"test": "jest --watchAll",
"tsc": "tsc",

@@ -22,2 +22,3 @@ "clean": "tsc --build --clean",

"@types/jest": "^27.0.3",
"@types/node": "^17.0.5",
"babel-jest": "^27.3.1",

@@ -24,0 +25,0 @@ "jest": "^27.3.1",

@@ -11,3 +11,3 @@ import { whiteSpace, Match, currentSelector, classNameInitiator, selectorName, idInitiator, wildcard, selectorChild, selectorCombinator, selectorSeparator, styleScope, renameToken, attributeSelectorCloseWithoutOperator, attributeSelectorModifier, attributeSelectorSingleQuoteInitiator, attributeSelectorDoubleQuoteInitiator, attributeSelectorSingleQuoteBody, attributeSelectorDoubleQuoteBody, attributeSelectorClose, attributeSelectorInitiator, styleScopeEnd, propertyName, valueSemiColon, propertyColon, propertyValueWithSemiColon, propertyValueWithoutSemiColon, TokenMatcher, inlineComment, renameTokens, blockComment, atSymbol, nestedAtRuleName, nestedAtRule, endStyleSheet, whiteSpaceOrNothing, exportClassName, colon, pseudoSelector, rootSelector } from "../../tokens";

const resolvedCSS = css.replace(/\r/g, "")
const resolvedCSS = css.replace(/\r/g, "");

@@ -14,0 +14,0 @@ const ctx = new Context(resolvedCSS, config)

@@ -216,3 +216,3 @@ "use strict";

domain: "style",
match: input.match(/^[a-zA-Z-]+(?=:)/),
match: input.match(/^[a-zA-Z0-9-_]+(?=:)/),
};

@@ -219,0 +219,0 @@ }

@@ -218,3 +218,3 @@ export type Domains = "selector" | "style" | "void";

domain: "style",
match: input.match(/^[a-zA-Z-]+(?=:)/),
match: input.match(/^[a-zA-Z0-9-_]+(?=:)/),
}

@@ -221,0 +221,0 @@ }

@@ -39,3 +39,3 @@ {

], /* Specify multiple folders that act like `./node_modules/@types`. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
"types": ["node"], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */

@@ -42,0 +42,0 @@ // "resolveJsonModule": true, /* Enable importing .json files */

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