@irfanshadikrishad/anilist 1.9.4 → 1.9.5

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 CHANGED
@@ -264,4 +264,6 @@ Since you are creating your own API client for login no else else can get your c
264
264
 
265
265
  Want to contribute to the project? Check out complete guideline [here](CONTRIBUTING.md).
266
266
 
267
+ #### Crafted without AI.
268
+
267
269
  #### _Thanks for visiting 💙_
@@ -354,7 +354,7 @@ Statistics (Manga):
354
354
  if (lists.length > 0) {
355
355
  const { selectedList } = yield inquirer.prompt([
356
356
  {
357
- type: 'list',
357
+ type: 'select',
358
358
  name: 'selectedList',
359
359
  message: 'Select an anime list:',
360
360
  choices: lists.map((list) => list.name),
@@ -428,7 +428,7 @@ Statistics (Manga):
428
428
  if (lists.length > 0) {
429
429
  const { selectedList } = yield inquirer.prompt([
430
430
  {
431
- type: 'list',
431
+ type: 'select',
432
432
  name: 'selectedList',
433
433
  message: 'Select a manga list:',
434
434
  choices: lists.map((list) => list.name),
@@ -509,7 +509,7 @@ Statistics (Manga):
509
509
  try {
510
510
  const { source } = yield inquirer.prompt([
511
511
  {
512
- type: 'list',
512
+ type: 'select',
513
513
  name: 'source',
514
514
  message: 'Select a source:',
515
515
  choices: [
@@ -545,7 +545,7 @@ Statistics (Manga):
545
545
  try {
546
546
  const { source } = yield inquirer.prompt([
547
547
  {
548
- type: 'list',
548
+ type: 'select',
549
549
  name: 'source',
550
550
  message: 'Select a source:',
551
551
  choices: [
@@ -130,7 +130,7 @@ class AniList {
130
130
  }
131
131
  const { exportType } = yield inquirer.prompt([
132
132
  {
133
- type: 'list',
133
+ type: 'select',
134
134
  name: 'exportType',
135
135
  message: 'Choose export type:',
136
136
  choices: [
@@ -196,7 +196,7 @@ class AniList {
196
196
  if (lists.length > 0) {
197
197
  const { exportType } = yield inquirer.prompt([
198
198
  {
199
- type: 'list',
199
+ type: 'select',
200
200
  name: 'exportType',
201
201
  message: 'Choose export type:',
202
202
  choices: [
@@ -272,7 +272,7 @@ class AniList {
272
272
  console.log(`\nEntries for '${selectedEntries.name}':`);
273
273
  const { selectedAnime } = yield inquirer.prompt([
274
274
  {
275
- type: 'list',
275
+ type: 'select',
276
276
  name: 'selectedAnime',
277
277
  message: 'Select anime to add to the list:',
278
278
  choices: selectedEntries.entries.map((entry, idx) => ({
@@ -347,7 +347,7 @@ class AniList {
347
347
  console.log(`\nEntries for '${selectedEntries.name}':`);
348
348
  const { selectedManga } = yield inquirer.prompt([
349
349
  {
350
- type: 'list',
350
+ type: 'select',
351
351
  name: 'selectedManga',
352
352
  message: 'Select a manga to add to the list:',
353
353
  choices: selectedEntries.entries.map((entry, idx) => {
@@ -416,7 +416,7 @@ class AniList {
416
416
  choices.push({ name: 'See more', value: 'see_more' });
417
417
  const { selectedAnime } = yield inquirer.prompt([
418
418
  {
419
- type: 'list',
419
+ type: 'select',
420
420
  name: 'selectedAnime',
421
421
  message: 'Select anime to add to the list:',
422
422
  choices,
@@ -489,7 +489,7 @@ class AniList {
489
489
  choices.push({ name: 'See more', value: 'see_more' });
490
490
  const { selectedAnime } = yield inquirer.prompt([
491
491
  {
492
- type: 'list',
492
+ type: 'select',
493
493
  name: 'selectedAnime',
494
494
  message: 'Select anime to add to the list:',
495
495
  choices,
@@ -567,7 +567,7 @@ class AniList {
567
567
  choices.push({ name: 'See more', value: 'see_more' });
568
568
  const { selectedAnime } = yield inquirer.prompt([
569
569
  {
570
- type: 'list',
570
+ type: 'select',
571
571
  name: 'selectedAnime',
572
572
  message: 'Select anime to add to the list:',
573
573
  choices,
@@ -718,7 +718,7 @@ class AniList {
718
718
  if (results.length > 0) {
719
719
  const { selectedAnime } = yield inquirer.prompt([
720
720
  {
721
- type: 'list',
721
+ type: 'select',
722
722
  name: 'selectedAnime',
723
723
  message: 'Select anime to add to your list:',
724
724
  choices: results.map((res, idx) => ({
@@ -779,7 +779,7 @@ class AniList {
779
779
  // List of manga search results
780
780
  const { selectedMangaId } = yield inquirer.prompt([
781
781
  {
782
- type: 'list',
782
+ type: 'select',
783
783
  name: 'selectedMangaId',
784
784
  message: 'Select manga to add to your list:',
785
785
  choices: results.map((res, idx) => ({
@@ -174,17 +174,16 @@ function selectFile(fileType) {
174
174
  return __awaiter(this, void 0, void 0, function* () {
175
175
  try {
176
176
  const files = yield listFilesInDownloadFolder();
177
- console.log(getDownloadFolderPath());
178
177
  // Filter to include only files, not directories, with the specified extension
179
178
  const onlyFiles = files.filter((file) => {
180
- const filePath = `${getDownloadFolderPath()}/${file}`; // Adjust this to the correct path
179
+ const filePath = `${getDownloadFolderPath()}/${file}`;
181
180
  const isFile = fs.lstatSync(filePath).isFile(); // Check if it's a file
182
181
  return isFile && file.endsWith(fileType);
183
182
  });
184
183
  if (onlyFiles.length > 0) {
185
184
  const answers = yield inquirer.prompt([
186
185
  {
187
- type: 'list',
186
+ type: 'select',
188
187
  name: 'fileName',
189
188
  message: 'Select a file to import:',
190
189
  choices: onlyFiles,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@irfanshadikrishad/anilist",
3
3
  "description": "Minimalist unofficial AniList CLI for Anime and Manga Enthusiasts",
4
- "version": "1.9.4",
4
+ "version": "1.9.5",
5
5
  "author": "Irfan Shadik Rishad",
6
6
  "license": "MPL-2.0",
7
7
  "scripts": {
@@ -57,7 +57,7 @@
57
57
  "cli-truncate": "^5.1.1",
58
58
  "commander": "^14.0.3",
59
59
  "fast-xml-parser": "^5.3.4",
60
- "inquirer": "^12.11.1",
60
+ "inquirer": "^13.2.2",
61
61
  "jsonrepair": "^3.13.2",
62
62
  "node-fetch": "^3.3.2",
63
63
  "open": "^11.0.0",
@@ -66,17 +66,17 @@
66
66
  "xml2js": "^0.6.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@babel/preset-env": "^7.28.6",
69
+ "@babel/preset-env": "^7.29.0",
70
70
  "@eslint/js": "^9.39.2",
71
71
  "@irfanshadikrishad/prettier": "^1.3.1",
72
72
  "@types/jest": "^30.0.0",
73
- "@types/node": "^25.1.0",
73
+ "@types/node": "^25.2.0",
74
74
  "@types/papaparse": "^5.5.2",
75
75
  "@types/xml2js": "^0.4.14",
76
76
  "@typescript-eslint/eslint-plugin": "^8.54.0",
77
77
  "@typescript-eslint/parser": "^8.54.0",
78
78
  "eslint": "^9.39.2",
79
- "globals": "^17.2.0",
79
+ "globals": "^17.3.0",
80
80
  "jest": "^30.2.0",
81
81
  "prettier": "^3.8.1",
82
82
  "prettier-plugin-organize-imports": "^4.3.0",