@bhsd/nodejs 1.1.0 → 1.2.0

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/dist/index.d.ts CHANGED
@@ -30,3 +30,8 @@ export declare const red: (str: string) => string;
30
30
  * @param str 要显示的字符串
31
31
  */
32
32
  export declare const blue: (str: string) => string;
33
+ /**
34
+ * 将字符串以灰色显示
35
+ * @param str 要显示的字符串
36
+ */
37
+ export declare const gray: (str: string) => string;
package/dist/index.js CHANGED
@@ -76,3 +76,8 @@ export const red = (str) => styleText('red', str);
76
76
  * @param str 要显示的字符串
77
77
  */
78
78
  export const blue = (str) => styleText('blue', str);
79
+ /**
80
+ * 将字符串以灰色显示
81
+ * @param str 要显示的字符串
82
+ */
83
+ export const gray = (str) => styleText('gray', str);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/nodejs",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "homepage": "https://github.com/bhsd-harry/nodejs#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/bhsd-harry/nodejs/issues"
@@ -21,8 +21,8 @@
21
21
  "lint": "npm run lint:ts"
22
22
  },
23
23
  "devDependencies": {
24
- "@bhsd/code-standard": "^3.0.0",
25
- "eslint": "^10.5.0",
24
+ "@bhsd/code-standard": "^3.1.0",
25
+ "eslint": "^10.6.0",
26
26
  "typescript": "^6.0.3"
27
27
  },
28
28
  "engines": {