mowojang-cli 0.4.8 → 0.5.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/README.md +2 -0
- package/dist/index.js +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|

|
|
6
|
+

|
|
7
|
+

|
|
6
8
|
|
|
7
9
|
## Install
|
|
8
10
|
|
package/dist/index.js
CHANGED
|
@@ -210,13 +210,13 @@ try {
|
|
|
210
210
|
if (!type || !value)
|
|
211
211
|
throw new Error("Usage: validate <player|username> <value>");
|
|
212
212
|
if (type === "player") {
|
|
213
|
-
|
|
213
|
+
print(String(validate.player(value)));
|
|
214
214
|
}
|
|
215
215
|
else if (type === "uuid") {
|
|
216
|
-
|
|
216
|
+
print(String(validate.UUID(value)));
|
|
217
217
|
}
|
|
218
218
|
else if (type === "username") {
|
|
219
|
-
|
|
219
|
+
print(String(validate.username(value)));
|
|
220
220
|
}
|
|
221
221
|
else {
|
|
222
222
|
throw new Error("Validation type must be 'player' or 'username'.");
|
|
@@ -228,10 +228,10 @@ try {
|
|
|
228
228
|
if (!action || !value)
|
|
229
229
|
throw new Error("Usage: utils <dash|undash> <uuid>");
|
|
230
230
|
if (action === "dash") {
|
|
231
|
-
|
|
231
|
+
print(String(utils.dashUUID(value)));
|
|
232
232
|
}
|
|
233
233
|
else if (action === "undash") {
|
|
234
|
-
|
|
234
|
+
print(String(utils.undashUUID(value)));
|
|
235
235
|
}
|
|
236
236
|
else {
|
|
237
237
|
throw new Error("Utils action must be 'dash' or 'undash'.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mowojang-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "CLI Wrapper for the mowojang npm package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Pixelic",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"mowojang": "0.
|
|
24
|
+
"mowojang": "0.5.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.9.1",
|