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

class-variance-authority

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-variance-authority - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

2

dist/index.d.ts

@@ -1,2 +0,2 @@

import clsx from "clsx";
import { clsx } from "clsx";
import type { ClassProp, ClassValue, OmitUndefined, StringToBoolean } from "./types";

@@ -3,0 +3,0 @@ export type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;

@@ -6,10 +6,5 @@ "use strict";

exports.cva = exports.cx = void 0;
var _clsx = _interopRequireDefault(require("clsx"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
var _clsx = require("clsx");
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
const cx = _clsx.default;
const cx = _clsx.clsx;
exports.cx = cx;

@@ -16,0 +11,0 @@ const cva = (base, config)=>{

{
"name": "class-variance-authority",
"version": "0.6.1",
"version": "0.7.0",
"description": "Class Variance Authority 🧬",

@@ -43,4 +43,16 @@ "keywords": [

],
"scripts": {
"build": "run-p build:**",
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ",
"build:tsc": "tsc --project .config/tsconfig.build.json",
"check": "tsc --project tsconfig.json --noEmit",
"dev": "jest --config .config/jest.config.ts --watch",
"prepublishOnly": "pnpm build",
"test": "run-p test:*",
"test:jest": "jest --config .config/jest.config.ts --coverage",
"test:size": "pnpm build && bundlesize -f 'dist/*.js' -s 850B"
},
"dependencies": {
"clsx": "1.2.1"
"clsx": "2.0.0"
},

@@ -63,14 +75,3 @@ "devDependencies": {

"typescript": "5.1.3"
},
"scripts": {
"build": "run-p build:**",
"build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ",
"build:tsc": "tsc --project .config/tsconfig.build.json",
"check": "tsc --project tsconfig.json --noEmit",
"dev": "jest --config .config/jest.config.ts --watch",
"test": "run-p test:*",
"test:jest": "jest --config .config/jest.config.ts --coverage",
"test:size": "pnpm build && bundlesize -f 'dist/*.js' -s 850B"
}
}
}

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