magalh 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 (4) hide show
  1. package/bin/mgl.js +53 -0
  2. package/bin/msh.js +53 -0
  3. package/msh.js +2 -0
  4. package/package.json +130 -0
package/package.json ADDED
@@ -0,0 +1,130 @@
1
+ {
2
+ "name": "magalh",
3
+ "version": "1.0.0",
4
+ "description": "Magala Media Server — self-hosted streaming and media management server",
5
+ "keywords": [
6
+ "media-server",
7
+ "streaming",
8
+ "magala",
9
+ "self-hosted"
10
+ ],
11
+ "license": "ISC",
12
+ "preferGlobal": true,
13
+ "files": [
14
+ "msh.js",
15
+ "bin/mgl.js"
16
+ ],
17
+ "bin": {
18
+ "mgl": "bin/mgl.js"
19
+ },
20
+ "scripts": {
21
+ "start": "node pro.js",
22
+ "start:quiet": "set QUIET_CONSOLE=1&& node pro.js",
23
+ "magala": "node pro.js",
24
+ "lint": "eslint .",
25
+ "lint:compat": "set BROWSERSLIST_ENV=production&& eslint \"rayan/hm/js/**/*.{js,mjs,cjs,jsx}\"",
26
+ "bundle:server": "webpack --config webpack.server.config.js",
27
+ "bundle:ui": "webpack --config webpack.ui.config.js",
28
+ "analyze:ui": "node -e \"process.env.ANALYZE='1'; require('child_process').execSync('node node_modules/webpack/bin/webpack.js --config webpack.ui.config.js', { stdio: 'inherit' });\"",
29
+ "analyze:ui:static": "node -e \"process.env.ANALYZE='1'; process.env.ANALYZE_MODE='static'; require('child_process').execSync('node node_modules/webpack/bin/webpack.js --config webpack.ui.config.js', { stdio: 'inherit' });\"",
30
+ "analyze:ui:static:corejs": "node -e \"process.env.ANALYZE='1'; process.env.ANALYZE_MODE='static'; process.env.USE_COREJS='1'; require('child_process').execSync('node node_modules/webpack/bin/webpack.js --config webpack.ui.config.js', { stdio: 'inherit' });\"",
31
+ "analyze:all": "node -e \"process.env.ANALYZE='1'; process.env.ANALYZE_MODE='static'; const cp=require('child_process'); cp.execSync('node node_modules/webpack/bin/webpack.js --config webpack.css.config.js', { stdio: 'inherit' }); cp.execSync('node node_modules/webpack/bin/webpack.js --config webpack.ui.config.js', { stdio: 'inherit' });\"",
32
+ "analyze:all:nomangle": "node -e \"process.env.ANALYZE='1'; process.env.ANALYZE_MODE='static'; process.env.DISABLE_MANGLE='1'; const cp=require('child_process'); cp.execSync('node node_modules/webpack/bin/webpack.js --config webpack.css.config.js', { stdio: 'inherit' }); cp.execSync('node node_modules/webpack/bin/webpack.js --config webpack.ui.config.js', { stdio: 'inherit' });\"",
33
+ "analyze:all:corejs": "node -e \"process.env.ANALYZE='1'; process.env.ANALYZE_MODE='static'; process.env.USE_COREJS='1'; const cp=require('child_process'); cp.execSync('node node_modules/webpack/bin/webpack.js --config webpack.css.config.js', { stdio: 'inherit' }); cp.execSync('node node_modules/webpack/bin/webpack.js --config webpack.ui.config.js', { stdio: 'inherit' });\"",
34
+ "bundle:css": "webpack --config webpack.css.config.js",
35
+ "bundle:ui:obfuscate": "set OBFUSCATE=1&& webpack --config webpack.ui.config.js",
36
+ "bundle:ui:debug": "set KEEP_UI_CONSOLE=1&& webpack --config webpack.ui.config.js",
37
+ "bundle:ui:watch": "webpack --config webpack.ui.config.js --watch",
38
+ "bundle:ui:watch:debug": "set KEEP_UI_CONSOLE=1&& webpack --config webpack.ui.config.js --watch",
39
+ "bundle:ui:watch:poll": "webpack --config webpack.ui.config.js --watch --watch-options-poll=1000",
40
+ "bundle:ui:watch:poll:debug": "set KEEP_UI_CONSOLE=1&& webpack --config webpack.ui.config.js --watch --watch-options-poll=1000",
41
+ "bundle:all": "npm run bundle:server && npm run bundle:ui && npm run bundle:css",
42
+ "start:bundle": "node os.js",
43
+ "start:bundle:quiet": "set QUIET_CONSOLE=1&& node os.js"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.29.0",
47
+ "@babel/preset-env": "^7.29.0",
48
+ "@eslint/js": "^9.39.2",
49
+ "@fullhuman/postcss-purgecss": "^8.0.0",
50
+ "babel-loader": "^10.0.0",
51
+ "check-unused-css": "^0.2.7",
52
+ "css-loader": "^7.1.4",
53
+ "css-minimizer-webpack-plugin": "^7.0.4",
54
+ "eslint": "^9.39.2",
55
+ "eslint-plugin-compat": "^6.1.0",
56
+ "eslint-plugin-react": "^7.37.5",
57
+ "globals": "^17.3.0",
58
+ "javascript-obfuscator": "^5.3.0",
59
+ "mini-css-extract-plugin": "^2.10.0",
60
+ "playwright": "^1.58.2",
61
+ "puppeteer-core": "^24.37.2",
62
+ "purgecss": "^8.0.0",
63
+ "style-loader": "^4.0.0",
64
+ "terser-webpack-plugin": "^5.3.16",
65
+ "webpack": "^5.105.0",
66
+ "webpack-bundle-analyzer": "^5.2.0",
67
+ "webpack-cli": "^6.0.1",
68
+ "webpack-node-externals": "^3.0.0",
69
+ "webpack-obfuscator": "^3.6.0",
70
+ "webpack-remove-empty-scripts": "^1.1.1"
71
+ },
72
+ "dependencies": {
73
+ "adm-zip": "^0.5.16",
74
+ "archiver": "^7.0.1",
75
+ "axios": "^1.13.4",
76
+ "bcrypt": "^6.0.0",
77
+ "bcryptjs": "^3.0.3",
78
+ "cheerio": "^1.2.0",
79
+ "child_process": "^1.0.2",
80
+ "compression": "^1.8.1",
81
+ "core-js": "^3.48.0",
82
+ "cors": "^2.8.6",
83
+ "crypto": "^1.0.1",
84
+ "dns": "^0.2.2",
85
+ "express": "^5.2.1",
86
+ "express-session": "^1.19.0",
87
+ "fs": "^0.0.1-security",
88
+ "fs-extra": "^11.3.3",
89
+ "http": "^0.0.1-security",
90
+ "https": "^1.0.0",
91
+ "megajs": "^1.3.9",
92
+ "multer": "^2.0.2",
93
+ "net": "^1.0.2",
94
+ "node-cron": "^4.2.1",
95
+ "os": "^0.1.2",
96
+ "path": "^0.12.7",
97
+ "punycode": "^2.3.1",
98
+ "regenerator-runtime": "^0.14.1",
99
+ "sharp": "^0.34.5",
100
+ "stream": "^0.0.3",
101
+ "stream-throttle": "^0.1.3",
102
+ "undici": "^7.20.0",
103
+ "unzipper": "^0.12.3",
104
+ "url": "^0.11.4",
105
+ "util": "^0.12.5",
106
+ "whatwg-fetch": "^3.6.20"
107
+ },
108
+ "browserslist": {
109
+ "production": [
110
+ ">0.5%",
111
+ "last 3 versions",
112
+ "Firefox ESR",
113
+ "not dead",
114
+ "not ie 11",
115
+ "not op_mini all",
116
+ "chrome >= 80",
117
+ "firefox >= 78",
118
+ "safari >= 13",
119
+ "ios_saf >= 13",
120
+ "edge >= 80",
121
+ "android >= 8",
122
+ "samsung >= 12"
123
+ ],
124
+ "development": [
125
+ "last 3 versions",
126
+ "safari >= 13",
127
+ "android >= 8"
128
+ ]
129
+ }
130
+ }