@ffflorian/xkcdjs 3.4.5 → 3.4.7

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.
@@ -1,3 +1,6 @@
1
+ export interface ClientOptions {
2
+ apiUrl?: string;
3
+ }
1
4
  export interface ImageData {
2
5
  data: Buffer;
3
6
  mimeType?: string;
@@ -5,9 +8,6 @@ export interface ImageData {
5
8
  export interface RequestOptions {
6
9
  withData?: boolean;
7
10
  }
8
- export interface ClientOptions {
9
- apiUrl?: string;
10
- }
11
11
  export interface XKCDResult {
12
12
  alt: string;
13
13
  day: string;
package/dist/XKCD.d.ts CHANGED
@@ -9,5 +9,5 @@ export declare class XKCD {
9
9
  * Set a new API URL.
10
10
  * @param url The new API URL.
11
11
  */
12
- setApiUrl(newURL: string): void;
12
+ setApiUrl(url: string): void;
13
13
  }
package/dist/XKCD.js CHANGED
@@ -13,8 +13,8 @@ class XKCD {
13
13
  * Set a new API URL.
14
14
  * @param url The new API URL.
15
15
  */
16
- setApiUrl(newURL) {
17
- this.apiClient.setBaseURL(newURL);
16
+ setApiUrl(url) {
17
+ this.apiClient.setBaseURL(url);
18
18
  }
19
19
  }
20
20
  exports.XKCD = XKCD;
package/dist/cli.js CHANGED
@@ -43,9 +43,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- const path = __importStar(require("node:path"));
47
- const node_fs_1 = require("node:fs");
48
46
  const commander_1 = require("commander");
47
+ const node_fs_1 = require("node:fs");
48
+ const path = __importStar(require("node:path"));
49
49
  const package_json_1 = require("../package.json");
50
50
  const _1 = require("./");
51
51
  function init() {
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export * from './XKCD';
2
1
  export * from './Interfaces';
2
+ export * from './XKCD';
3
+ export * from './XKCDAPI';
package/dist/index.js CHANGED
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./XKCD"), exports);
18
17
  __exportStar(require("./Interfaces"), exports);
18
+ __exportStar(require("./XKCD"), exports);
19
+ __exportStar(require("./XKCDAPI"), exports);
package/package.json CHANGED
@@ -2,19 +2,19 @@
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "bin": "dist/cli.js",
4
4
  "dependencies": {
5
- "@ffflorian/api-client": "2.2.0",
6
- "commander": "14.0.2"
5
+ "@ffflorian/api-client": "2.5.1",
6
+ "commander": "14.0.3"
7
7
  },
8
8
  "description": "An xkcd API client with a CLI.",
9
9
  "devDependencies": {
10
10
  "@types/node": "~24",
11
11
  "http-status-codes": "2.3.0",
12
- "nock": "14.0.10",
13
- "rimraf": "6.1.2",
12
+ "nock": "14.0.11",
13
+ "rimraf": "6.1.3",
14
14
  "tsx": "4.21.0",
15
- "typedoc": "0.28.15",
16
- "typescript": "5.9.3",
17
- "vitest": "4.0.16"
15
+ "typedoc": "0.28.18",
16
+ "typescript": "6.0.2",
17
+ "vitest": "4.1.2"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">= 21"
@@ -34,13 +34,13 @@
34
34
  "readme": "https://github.com/ffflorian/api-clients#readme",
35
35
  "repository": "https://github.com/ffflorian/api-clients.git",
36
36
  "scripts": {
37
+ "build": "yarn build:ts",
37
38
  "build:ts": "tsc -p tsconfig.build.json",
38
39
  "build:docs": "typedoc --tsconfig tsconfig.build.json --options ../../typedoc.json --out ../../docs/packages/xkcdjs src/index.ts",
39
40
  "clean": "rimraf dist",
40
- "dist": "yarn clean && yarn build:ts",
41
+ "dist": "yarn clean && yarn build",
41
42
  "start": "tsx src/cli.ts",
42
43
  "test": "vitest"
43
44
  },
44
- "version": "3.4.5",
45
- "gitHead": "8d7471cbe490305b3e441c27acbc81e36a4bd9df"
45
+ "version": "3.4.7"
46
46
  }