9 Commits 5b94fc203a ... 784260bfa5

Author SHA1 Message Date
  Namkhai B 784260bfa5 v2.1.4 2 years ago
  Namkhai B 6b6aaded0d chore: update d-fi-core to v1.3.3 2 years ago
  Namkhai B ff0bad4218 chore: add eslintignore 2 years ago
  Namkhai B 7967e394ed fix(tests): failing tests after ffc1da 2 years ago
  Namkhai B cedd5d37f2 chore: update devDependencies 2 years ago
  Namkhai B 574d6eb1f3 chore: update gradient-string to v2.0.0 2 years ago
  Namkhai B 096b240c2e chore: update commander.js to v9.1.0 2 years ago
  Namkhai B ffc1da218c chore: update deps 2 years ago
  Namkhai B 1609685c13 chore: update default arl 2 years ago
6 changed files with 683 additions and 1369 deletions
  1. 1 0
      .eslintignore
  2. 3 0
      __tests__/lib/signale.ts
  3. 1 1
      __tests__/lib/util.ts
  4. 12 12
      package.json
  5. 2 2
      src/lib/config.ts
  6. 664 1354
      yarn.lock

+ 1 - 0
.eslintignore

@@ -0,0 +1 @@
+/dist

+ 3 - 0
__tests__/lib/signale.ts

@@ -1,4 +1,7 @@
 import test from 'ava';
+// disable chalk colors
+// otherwise tests fail because of ANSI escape codes
+process.env.FORCE_COLOR = '0';
 import signale from '../../src/lib/signale';
 
 test('CHECK INFO', (t) => {

+ 1 - 1
__tests__/lib/util.ts

@@ -48,5 +48,5 @@ test('PROGRESS BAR', (t) => {
   t.is(typeof bar, 'function');
 
   const len = bar(500);
-  t.is(len.length, 40);
+  t.is(len.length, 60);
 });

+ 12 - 12
package.json

@@ -1,6 +1,6 @@
 {
   "name": "d-fi",
-  "version": "2.1.3",
+  "version": "2.1.4",
   "description": "A streaming music downloader.",
   "author": "Sayem Chowdhury",
   "license": "MIT",
@@ -24,11 +24,11 @@
   "dependencies": {
     "adm-zip": "^0.5.9",
     "chalk": "^4.1.2",
-    "commander": "^8.2.0",
-    "d-fi-core": "^1.3.2",
+    "commander": "^9.1.0",
+    "d-fi-core": "^1.3.3",
     "dot-prop": "^6.0.1",
     "got": "^11.8.1",
-    "gradient-string": "^1.2.0",
+    "gradient-string": "^2.0.0",
     "log-update": "^4.0.0",
     "p-queue": "^6.6.2",
     "prompts": "^2.4.2",
@@ -38,16 +38,16 @@
   "devDependencies": {
     "@types/adm-zip": "^0.4.34",
     "@types/gradient-string": "^1.1.2",
-    "@types/node": "^16.11.0",
+    "@types/node": "^17.0.23",
     "@types/prompts": "^2.0.14",
-    "@typescript-eslint/eslint-plugin": "^5.0.0",
-    "@typescript-eslint/parser": "^5.0.0",
-    "ava": "^3.15.0",
-    "eslint": "^7.32.0",
+    "@typescript-eslint/eslint-plugin": "^5.16.0",
+    "@typescript-eslint/parser": "^5.16.0",
+    "ava": "^4.1.0",
+    "eslint": "^8.11.0",
     "eslint-plugin-prettier": "^4.0.0",
-    "prettier": "^2.4.1",
-    "ts-node": "^10.3.0",
-    "typescript": "^4.4.4"
+    "prettier": "^2.6.0",
+    "ts-node": "^10.7.0",
+    "typescript": "^4.6.3"
   },
   "ava": {
     "extensions": [

+ 2 - 2
src/lib/config.ts

@@ -44,7 +44,7 @@ type configType = {
 };
 
 const old_arl =
-  '118fe80f967e1883469b6093568f930c3a5828af71bc37d631d95252ae3ea88201131e8587be7b668d824daecd0310131652507bab67b4d135917575e8ab9ab911a1cc59b342dfe3815a4b49f10f506577778bc3e8cd98dcfe0f8ba24f114a6f';
+  'c911a4ac9f44a52bf23720cc88588557d999b975094068d258e617bf3e9110a2626c2ff7f5d3cb471b435512e0f5a4de4d7d7e3becad4bf80b0a0e230d9001a814124f87833fe772fb6b1327d2be740f65bc5bcfc1de9171926b5ea9aae69db7';
 
 const defaultConfig: configType = {
   concurrency: 4,
@@ -66,7 +66,7 @@ const defaultConfig: configType = {
     flac: 1000,
   },
   cookies: {
-    arl: 'c911a4ac9f44a52bf23720cc88588557d999b975094068d258e617bf3e9110a2626c2ff7f5d3cb471b435512e0f5a4de4d7d7e3becad4bf80b0a0e230d9001a814124f87833fe772fb6b1327d2be740f65bc5bcfc1de9171926b5ea9aae69db7',
+    arl: 'c973964816688562722418b5200c1515dffaad15a42643ebf87cc72824a54612ec51c2ad42d566743f9e424c774e98ccae7737770acff59251328e6cd598c7bcac38ca269adf78bfb88ec5bbad6cd800db3c0b88b2af645bb22b99e71de26416',
   },
 };
 

File diff suppressed because it is too large
+ 664 - 1354
yarn.lock