gerdur 0.0.0-probe → 1.0.0

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 (42) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +0 -0
  3. package/README.md +231 -1
  4. package/dist/package.json +90 -0
  5. package/dist/src/gerdur.d.ts +2 -0
  6. package/dist/src/gerdur.js +345 -0
  7. package/dist/src/hoenir.d.ts +2 -0
  8. package/dist/src/hoenir.js +345 -0
  9. package/dist/src/index.d.ts +62 -0
  10. package/dist/src/index.js +101 -0
  11. package/dist/src/kyrie.d.ts +2 -0
  12. package/dist/src/kyrie.js +345 -0
  13. package/dist/src/lib/api-download.d.ts +54 -0
  14. package/dist/src/lib/api-download.js +89 -0
  15. package/dist/src/lib/arl-setup.d.ts +82 -0
  16. package/dist/src/lib/arl-setup.js +274 -0
  17. package/dist/src/lib/auto-updater.d.ts +2 -0
  18. package/dist/src/lib/auto-updater.js +70 -0
  19. package/dist/src/lib/config.d.ts +53 -0
  20. package/dist/src/lib/config.js +164 -0
  21. package/dist/src/lib/decrypt-pool.d.ts +2 -0
  22. package/dist/src/lib/decrypt-pool.js +122 -0
  23. package/dist/src/lib/decrypt-worker.d.ts +1 -0
  24. package/dist/src/lib/decrypt-worker.js +17 -0
  25. package/dist/src/lib/decrypt.d.ts +3 -0
  26. package/dist/src/lib/decrypt.js +114 -0
  27. package/dist/src/lib/download-track.d.ts +24 -0
  28. package/dist/src/lib/download-track.js +163 -0
  29. package/dist/src/lib/email-login.d.ts +16 -0
  30. package/dist/src/lib/email-login.js +111 -0
  31. package/dist/src/lib/session.d.ts +84 -0
  32. package/dist/src/lib/session.js +118 -0
  33. package/dist/src/lib/signale.d.ts +15 -0
  34. package/dist/src/lib/signale.js +20 -0
  35. package/dist/src/lib/update-check.d.ts +2 -0
  36. package/dist/src/lib/update-check.js +30 -0
  37. package/dist/src/lib/util.d.ts +17 -0
  38. package/dist/src/lib/util.js +94 -0
  39. package/dist/src/q-fi.d.ts +2 -0
  40. package/dist/src/q-fi.js +345 -0
  41. package/package.json +88 -5
  42. package/setup-termux.js +41 -0
package/package.json CHANGED
@@ -1,7 +1,90 @@
1
1
  {
2
2
  "name": "gerdur",
3
- "version": "0.0.0-probe",
4
- "description": "name-availability probe",
5
- "license": "MIT",
6
- "private": false
7
- }
3
+ "version": "1.0.0",
4
+ "description": "The crucial streaming module for dabox systems.",
5
+ "author": "Christian",
6
+ "license": "SEE LICENSE IN LICENSE",
7
+ "scripts": {
8
+ "lint": "eslint .",
9
+ "prepublishOnly": "eslint . && tsc",
10
+ "prebuild": "eslint .",
11
+ "build": "tsc",
12
+ "postinstall": "node setup-termux.js",
13
+ "dev": "ts-node src/gerdur.ts",
14
+ "test": "node scripts/run-ava.cjs"
15
+ },
16
+ "bin": {
17
+ "gerdur": "dist/src/gerdur.js"
18
+ },
19
+ "main": "dist/src/index.js",
20
+ "types": "dist/src/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/src/index.d.ts",
24
+ "default": "./dist/src/index.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "dist/**/*",
30
+ "setup-termux.js",
31
+ "CHANGELOG.md"
32
+ ],
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/soulwax/gerdur.git"
36
+ },
37
+ "homepage": "https://github.com/soulwax/gerdur#readme",
38
+ "bugs": {
39
+ "url": "https://github.com/soulwax/gerdur/issues"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "engines": {
45
+ "node": ">=12"
46
+ },
47
+ "dependencies": {
48
+ "adm-zip": "^0.5.16",
49
+ "chalk": "^4.1.2",
50
+ "commander": "^9.5.0",
51
+ "gerdur-core": "^1.0.0",
52
+ "dot-prop": "^6.0.1",
53
+ "egoroof-blowfish": "^4.0.2",
54
+ "got": "^11.8.6",
55
+ "gradient-string": "^2.0.2",
56
+ "log-update": "^4.0.0",
57
+ "p-queue": "^6.6.2",
58
+ "prompts": "^2.4.2",
59
+ "true-case-path": "^2.2.1",
60
+ "update-check": "^1.5.4"
61
+ },
62
+ "devDependencies": {
63
+ "@types/adm-zip": "^0.4.34",
64
+ "@types/gradient-string": "^1.1.6",
65
+ "@types/node": "^17.0.45",
66
+ "@types/prompts": "^2.4.9",
67
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
68
+ "@typescript-eslint/parser": "^5.62.0",
69
+ "ava": "^4.3.3",
70
+ "eslint": "^8.57.1",
71
+ "eslint-plugin-prettier": "^4.2.5",
72
+ "prettier": "^2.8.8",
73
+ "ts-node": "^10.9.2",
74
+ "typescript": "^4.9.5"
75
+ },
76
+ "ava": {
77
+ "extensions": [
78
+ "ts"
79
+ ],
80
+ "files": [
81
+ "!dist"
82
+ ],
83
+ "require": [
84
+ "ts-node/register"
85
+ ],
86
+ "timeout": "5m",
87
+ "serial": true,
88
+ "verbose": true
89
+ }
90
+ }
@@ -0,0 +1,41 @@
1
+ /* eslint-disable */
2
+ const {existsSync, writeFileSync} = require('fs');
3
+ const {spawnSync} = require('child_process');
4
+
5
+ const {HOME, PATH} = process.env;
6
+ const CONFIG_FILE = 'gerdur.config.json';
7
+
8
+ if (HOME && PATH.includes('com.termux') && !existsSync(CONFIG_FILE)) {
9
+ console.log('Setting config file for termux users in ' + CONFIG_FILE);
10
+ const STORAGE_LOCATION = `${HOME}/storage`;
11
+ const DOWNLOAD_LOCATION = `${STORAGE_LOCATION}/downloads`;
12
+
13
+ if (!existsSync(STORAGE_LOCATION)) {
14
+ console.log(
15
+ `It is necessary to grant storage permission for Termux on Android 6 and higher. Use 'Settings>Apps>Termux>Permissions>Storage' and set to true.`,
16
+ );
17
+ spawnSync('termux-setup-storage');
18
+ }
19
+
20
+ if (existsSync(DOWNLOAD_LOCATION)) {
21
+ writeFileSync(
22
+ CONFIG_FILE,
23
+ JSON.stringify(
24
+ {
25
+ saveLayout: {
26
+ track: `${DOWNLOAD_LOCATION}/Music/{ALB_TITLE}/{SNG_TITLE}`,
27
+ album: `${DOWNLOAD_LOCATION}/Music/{ALB_TITLE}/{SNG_TITLE}`,
28
+ artist: `${DOWNLOAD_LOCATION}/Music/{ALB_TITLE}/{SNG_TITLE}`,
29
+ playlist: `${DOWNLOAD_LOCATION}/Playlist/{TITLE}/{SNG_TITLE}`,
30
+ },
31
+ },
32
+ null,
33
+ 2,
34
+ ),
35
+ 'utf-8',
36
+ );
37
+ console.log('Done. Config created.');
38
+ } else {
39
+ console.error('Something went wrong. Cannot find downloads location: ' + DOWNLOAD_LOCATION);
40
+ }
41
+ }