@irfanshadikrishad/anilist 1.1.5 → 1.1.8

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.
Files changed (2) hide show
  1. package/bin/index.js +3 -8
  2. package/package.json +5 -5
package/bin/index.js CHANGED
@@ -9,17 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  import { Command } from "commander";
12
- import { readFileSync } from "fs";
13
- import { dirname } from "path";
12
+ import { createRequire } from "module";
14
13
  import process from "process";
15
- import { fileURLToPath } from "url";
16
14
  import { Auth } from "./helpers/auth.js";
17
15
  import { AniList } from "./helpers/lists.js";
18
- // Get the current directory of this file
19
- const __filename = fileURLToPath(import.meta.url);
20
- const __dirname = dirname(__filename);
21
- // Read package.json and extract version dynamically
22
- const packageJson = JSON.parse(readFileSync(`${__dirname}/package.json`, "utf8"));
16
+ const require = createRequire(import.meta.url);
17
+ const packageJson = require("../package.json");
23
18
  const version = packageJson.version;
24
19
  const cli = new Command();
25
20
  cli
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@irfanshadikrishad/anilist",
3
3
  "description": "Minimalist unofficial AniList CLI for Anime and Manga Enthusiasts",
4
4
  "author": "Irfan Shadik Rishad",
5
- "version": "1.1.5",
5
+ "version": "1.1.8",
6
6
  "main": "./bin/index.js",
7
7
  "type": "module",
8
8
  "types": "./bin/index.d.ts",
@@ -58,16 +58,16 @@
58
58
  "@types/json2csv": "^5.0.7",
59
59
  "@types/node": "^22.10.2",
60
60
  "eslint": "^9.17.0",
61
- "globals": "^15.13.0",
61
+ "globals": "^15.14.0",
62
62
  "prettier": "^3.4.2",
63
63
  "prettier-plugin-organize-imports": "^4.1.0",
64
64
  "typescript": "^5.7.2",
65
- "typescript-eslint": "^8.18.0"
65
+ "typescript-eslint": "^8.18.2"
66
66
  },
67
67
  "dependencies": {
68
68
  "commander": "^12.1.0",
69
- "fast-xml-parser": "^4.5.0",
70
- "inquirer": "^12.2.0",
69
+ "fast-xml-parser": "^4.5.1",
70
+ "inquirer": "^12.3.0",
71
71
  "json2csv": "^6.0.0-alpha.2",
72
72
  "node-fetch": "^3.3.2",
73
73
  "open": "^10.1.0"