@ffflorian/xkcdjs 3.2.10 → 3.3.1
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/cli.js +4 -4
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -22,8 +22,8 @@ function init() {
|
|
|
22
22
|
const xkcd = new _1.XKCD();
|
|
23
23
|
return [resolvedPath, xkcd];
|
|
24
24
|
}
|
|
25
|
-
catch (
|
|
26
|
-
throw new Error(
|
|
25
|
+
catch (_a) {
|
|
26
|
+
throw new Error('The specified path does not exist or is not writable.');
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
}
|
|
@@ -81,8 +81,8 @@ commander_1.program
|
|
|
81
81
|
try {
|
|
82
82
|
parsedIndex = parseInt(index, 10);
|
|
83
83
|
}
|
|
84
|
-
catch (
|
|
85
|
-
throw new Error('Invalid
|
|
84
|
+
catch (_a) {
|
|
85
|
+
throw new Error('Invalid number specified.');
|
|
86
86
|
}
|
|
87
87
|
try {
|
|
88
88
|
const [resolvedPath, xkcd] = yield init(command.parent.output);
|
package/package.json
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
"xkcdjs": "dist/cli.js"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"axios": "1.
|
|
8
|
-
"commander": "
|
|
7
|
+
"axios": "1.10.0",
|
|
8
|
+
"commander": "14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"description": "An xkcd API client with a CLI.",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@types/jasmine": "5.1.
|
|
12
|
+
"@types/jasmine": "5.1.8",
|
|
13
13
|
"@types/node": "~20",
|
|
14
14
|
"http-status-codes": "2.3.0",
|
|
15
|
-
"jasmine": "5.
|
|
16
|
-
"nock": "14.0.
|
|
15
|
+
"jasmine": "5.8.0",
|
|
16
|
+
"nock": "14.0.5",
|
|
17
17
|
"rimraf": "6.0.1",
|
|
18
18
|
"ts-node": "10.9.2",
|
|
19
|
-
"typedoc": "0.
|
|
20
|
-
"typescript": "5.
|
|
19
|
+
"typedoc": "0.28.7",
|
|
20
|
+
"typescript": "5.8.3"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">= 10.9"
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"start": "ts-node src/cli.ts",
|
|
44
44
|
"test": "ts-node -P tsconfig.jasmine.json node_modules/.bin/jasmine"
|
|
45
45
|
},
|
|
46
|
-
"version": "3.
|
|
47
|
-
"gitHead": "
|
|
46
|
+
"version": "3.3.1",
|
|
47
|
+
"gitHead": "7a180285609ff11f02bf32117a72c7d4bf79f14c"
|
|
48
48
|
}
|