simple-merge-class-names 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/mergeClassNames.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ A straightforward utility for merging CSS class names in `React + Tailwind` and
|
|
|
17
17
|
- [Console Warning for Invalid Arguments](#console-warning-for-invalid-arguments)
|
|
18
18
|
|
|
19
19
|
- [Testing](#testing)
|
|
20
|
-
- [Source Code](#source-code)
|
|
20
|
+
- [Source Code (Partial)](#source-code-partial)
|
|
21
21
|
- [Misc.](#misc)
|
|
22
22
|
|
|
23
23
|
- [Why the Mismatch Between Exported Function and Package Name?](#why-the-mismatch-between-exported-function-and-package-name)
|
|
@@ -135,7 +135,7 @@ pnpm test
|
|
|
135
135
|
pnpm test:watch
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
## Source Code
|
|
138
|
+
## Source Code (Partial)
|
|
139
139
|
|
|
140
140
|
```javascript
|
|
141
141
|
/**
|
|
@@ -170,7 +170,7 @@ export const mergeClassNames = (...args) => {
|
|
|
170
170
|
|
|
171
171
|
const className = nonEmptyStrings.join(space);
|
|
172
172
|
|
|
173
|
-
/* Don't silently ignore invalid input, explicitly disclose them as it indicate a bigger problem */
|
|
173
|
+
/* Don't silently ignore invalid input, explicitly disclose them as it may indicate a bigger problem */
|
|
174
174
|
const warn = [];
|
|
175
175
|
/* ... */
|
|
176
176
|
```
|
package/mergeClassNames.js
CHANGED
|
@@ -64,7 +64,7 @@ export const mergeClassNames = (...args) => {
|
|
|
64
64
|
|
|
65
65
|
const className = nonEmptyStrings.join(space);
|
|
66
66
|
|
|
67
|
-
/* Don't silently ignore invalid input, explicitly disclose them as it indicate a bigger problem */
|
|
67
|
+
/* Don't silently ignore invalid input, explicitly disclose them as it may indicate a bigger problem */
|
|
68
68
|
const warn = [];
|
|
69
69
|
|
|
70
70
|
/* "Expected all arguments to be strings ..." */
|