@nyaomaru/divider 1.8.7 โ 1.8.9
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 +5 -0
- package/dist/index.cjs +4 -1
- package/dist/index.js +4 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -39,6 +39,11 @@ bun add @nyaomaru/divider
|
|
|
39
39
|
yarn add @nyaomaru/divider
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
## ๐ Documentation
|
|
43
|
+
|
|
44
|
+
- ๐ Guide: [https://divider-docs.vercel.app](https://divider-docs.vercel.app)
|
|
45
|
+
- ๐งช API Reference: [https://nyaomaru.github.io/divider/](https://nyaomaru.github.io/divider/)
|
|
46
|
+
|
|
42
47
|
## ๐ Usage
|
|
43
48
|
|
|
44
49
|
๐ [Check out the full documentation here!](https://divider-docs.vercel.app/)
|
package/dist/index.cjs
CHANGED
|
@@ -43,8 +43,11 @@ function isString(arg) {
|
|
|
43
43
|
function isNumber(arg) {
|
|
44
44
|
return typeof arg === "number";
|
|
45
45
|
}
|
|
46
|
+
function isObject(arg) {
|
|
47
|
+
return typeof arg === "object" && arg !== null;
|
|
48
|
+
}
|
|
46
49
|
function isOptions(value) {
|
|
47
|
-
if (
|
|
50
|
+
if (!isObject(value)) return false;
|
|
48
51
|
const options = value;
|
|
49
52
|
return dividerOptionKeys.some((key) => Object.hasOwn(options, key));
|
|
50
53
|
}
|
package/dist/index.js
CHANGED
|
@@ -13,8 +13,11 @@ function isString(arg) {
|
|
|
13
13
|
function isNumber(arg) {
|
|
14
14
|
return typeof arg === "number";
|
|
15
15
|
}
|
|
16
|
+
function isObject(arg) {
|
|
17
|
+
return typeof arg === "object" && arg !== null;
|
|
18
|
+
}
|
|
16
19
|
function isOptions(value) {
|
|
17
|
-
if (
|
|
20
|
+
if (!isObject(value)) return false;
|
|
18
21
|
const options = value;
|
|
19
22
|
return dividerOptionKeys.some((key) => Object.hasOwn(options, key));
|
|
20
23
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyaomaru/divider",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.9",
|
|
5
5
|
"description": "To divide string or string[] with a given separator",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"ts-node": "^10.9.2",
|
|
48
48
|
"tsup": "^8.4.0",
|
|
49
49
|
"tsx": "^4.19.4",
|
|
50
|
+
"typedoc": "^0.28.5",
|
|
50
51
|
"typescript": "^5.8.3"
|
|
51
52
|
},
|
|
52
53
|
"engines": {
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"scripts": {
|
|
60
61
|
"test": "jest",
|
|
61
62
|
"lint": "eslint .",
|
|
62
|
-
"build": "tsup"
|
|
63
|
+
"build": "tsup",
|
|
64
|
+
"typedoc": "typedoc"
|
|
63
65
|
}
|
|
64
66
|
}
|