starship-butler-utils 0.3.13 → 0.4.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.mts +1 -10
- package/dist/index.mjs +1 -17
- package/package.json +11 -10
- package/LICENSE.md +0 -21
package/dist/index.d.mts
CHANGED
|
@@ -67,13 +67,4 @@ declare const highlight: {
|
|
|
67
67
|
reset: ansis0.Ansis;
|
|
68
68
|
};
|
|
69
69
|
//#endregion
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Stringify an object to a JSON string with functions support.
|
|
73
|
-
*
|
|
74
|
-
* @param obj - The object to stringify.
|
|
75
|
-
* @returns The JSON string.
|
|
76
|
-
*/
|
|
77
|
-
declare function stringify(obj: any): string;
|
|
78
|
-
//#endregion
|
|
79
|
-
export { fs_d_exports as fs, highlight, stringify, upsertUserRc };
|
|
70
|
+
export { fs_d_exports as fs, highlight, upsertUserRc };
|
package/dist/index.mjs
CHANGED
|
@@ -150,20 +150,4 @@ function removeSymlink(targetPath) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
//#endregion
|
|
153
|
-
|
|
154
|
-
function replacer(key, value) {
|
|
155
|
-
if (typeof value === "function") return `${value.toString()}`.replace(/\s+/g, " ").replace(/"/g, "'");
|
|
156
|
-
return value;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Stringify an object to a JSON string with functions support.
|
|
160
|
-
*
|
|
161
|
-
* @param obj - The object to stringify.
|
|
162
|
-
* @returns The JSON string.
|
|
163
|
-
*/
|
|
164
|
-
function stringify(obj) {
|
|
165
|
-
return JSON.stringify(obj, replacer, 2);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
//#endregion
|
|
169
|
-
export { fs_exports as fs, highlight, stringify, upsertUserRc };
|
|
153
|
+
export { fs_exports as fs, highlight, upsertUserRc };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starship-butler-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Utils used by starship butler.",
|
|
6
6
|
"author": "Lumirelle <shabbyacc@outlook.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,14 +27,15 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"ansis": "^4.2.0",
|
|
32
|
-
"consola": "^3.4.2",
|
|
33
|
-
"rc9": "^2.1.2"
|
|
34
|
-
},
|
|
35
30
|
"scripts": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
31
|
+
"dev": "bun run -b tsdown --watch",
|
|
32
|
+
"build": "bun run -b tsdown",
|
|
33
|
+
"prepublishOnly": "bun run build",
|
|
34
|
+
"publish": "npm publish --access public"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"ansis": "catalog:prod",
|
|
38
|
+
"consola": "catalog:prod",
|
|
39
|
+
"rc9": "catalog:prod"
|
|
39
40
|
}
|
|
40
|
-
}
|
|
41
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025-PRESENT LUMIRELLE <https://github.com/lumirelle>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|