classnames
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -1,10 +0,5 @@ | ||
import * as base from './index'; | ||
export * from './index'; | ||
import { Argument } from './index'; | ||
export interface IClassNamesBind | ||
{ | ||
bind: (styles: any) => typeof base | ||
} | ||
export const classNames: IClassNamesBind; | ||
export default classNames; | ||
export type Binding = { [key: string]: string }; | ||
export default function classNames(this: Binding | void, ...args: Argument[]): string; |
@@ -1,1 +0,4 @@ | ||
export * from "./index"; | ||
export * from './index'; | ||
import classNames from './index'; | ||
export default classNames; |
@@ -12,7 +12,5 @@ // LICENSE is MIT | ||
export type Value = string | number | boolean | undefined | null; | ||
export type Mapping = { [key: string]: Value }; | ||
export type Mapping = { [key: string]: any }; | ||
export type Argument = Value | Mapping | Argument[]; | ||
export function classNames(...args: Argument[]): string; | ||
export default classNames; | ||
export default function classNames(...args: Argument[]): string; |
{ | ||
"name": "classnames", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A simple utility for conditionally joining classNames together", | ||
@@ -29,5 +29,5 @@ "main": "index.js", | ||
"benchmark": "^2.1.4", | ||
"browserify": "^16.2.3", | ||
"browserify": "^17.0.0", | ||
"mocha": "^8.3.2" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17706
0
208