Socket
Socket
Sign inDemoInstall

classnames

Package Overview
Dependencies
0
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.5.0

5

HISTORY.md
# Changelog
## v2.5.0 / 2023-12-27
- Restore ability to pass a TypeScript `interface` ([#341](https://github.com/JedWatson/classnames/pull/341))
- Add `exports` field to package ([#342](https://github.com/JedWatson/classnames/pull/342))
## v2.4.0 / 2023-12-26

@@ -4,0 +9,0 @@

2

index.d.ts

@@ -13,3 +13,3 @@ // LICENSE is MIT

type Value = string | number | boolean | undefined | null;
type Mapping = Record<string, unknown>;
type Mapping = Record<string, any>;
interface ArgumentArray extends Array<Argument> {}

@@ -16,0 +16,0 @@ interface ReadonlyArgumentArray extends ReadonlyArray<Argument> {}

{
"name": "classnames",
"version": "2.4.0",
"version": "2.5.0",
"description": "A simple utility for conditionally joining classNames together",
"main": "index.js",
"author": "Jed Watson",

@@ -10,5 +9,34 @@ "license": "MIT",

"type": "git",
"url": "https://github.com/JedWatson/classnames.git"
"url": "git+https://github.com/JedWatson/classnames.git"
},
"type": "commonjs",
"main": "./index.js",
"types": "./index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./index.js": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./bind": {
"types": "./bind.d.ts",
"default": "./bind.js"
},
"./bind.js": {
"types": "./bind.d.ts",
"default": "./bind.js"
},
"./dedupe": {
"types": "./dedupe.d.ts",
"default": "./dedupe.js"
},
"./dedupe.js": {
"types": "./dedupe.d.ts",
"default": "./dedupe.js"
}
},
"scripts": {

@@ -38,3 +66,3 @@ "test": "node --test ./tests/*.mjs",

"devDependencies": {
"tsd": "^0.30.0"
"tsd": "^0.30.1"
},

@@ -41,0 +69,0 @@ "tsd": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc