@mrtujiawei/bin
Advanced tools
Comparing version 1.2.14 to 1.2.15
{ | ||
"name": "@mrtujiawei/bin", | ||
"version": "1.2.14", | ||
"version": "1.2.15", | ||
"description": "我的命令行工具", | ||
@@ -9,3 +9,4 @@ "main": "", | ||
"dist", | ||
"pem" | ||
"pem", | ||
"shell" | ||
], | ||
@@ -16,30 +17,20 @@ "publishConfig": { | ||
}, | ||
"scripts": { | ||
"start": "tsc -w", | ||
"build": "tsc", | ||
"clean": "rm -rf dist", | ||
"prepush": "git add . && git commit -m 'feat(all): 自动提交'", | ||
"push": "git push", | ||
"prepub": "npm run clean && npm run build", | ||
"pub": "npm publish", | ||
"postpub": "npm run push" | ||
}, | ||
"bin": { | ||
"server": "./dist/server.js", | ||
"push-all": "./dist/push-all.js", | ||
"download-m3u8": "./dist/m3u8-dowmload.js", | ||
"combine-m3u8": "./src/shell/combine.sh", | ||
"split-m3u8": "./src/shell/split.sh", | ||
"check-command": "./src/shell/check-command.sh", | ||
"git-download": "./src/shell/git-download.sh", | ||
"toggle-npm-mirror": "./src/shell/toggle-npm-mirror.sh" | ||
"server": "./dist/bin/src/server.js", | ||
"push-all": "./dist/bin/src/push-all.js", | ||
"download-m3u8": "./dist/bin/src/m3u8-dowmload.js", | ||
"combine-m3u8": "./shell/combine.sh", | ||
"split-m3u8": "./shell/split.sh", | ||
"check-command": "./shell/check-command.sh", | ||
"git-download": "./shell/git-download.sh", | ||
"toggle-npm-mirror": "./shell/toggle-npm-mirror.sh" | ||
}, | ||
"dependencies": { | ||
"@koa/cors": "^3.3.0", | ||
"@koa/cors": "3.3.0", | ||
"@mrtujiawei/node-utils": "0.1.10", | ||
"@mrtujiawei/utils": "^2.2.0", | ||
"koa": "^2.11.0", | ||
"koa-bodyparser": "^4.2.1", | ||
"koa-router": "^7.4.0", | ||
"koa-static": "^5.0.0" | ||
"@mrtujiawei/utils": "2.3.130", | ||
"koa": "2.11.0", | ||
"koa-bodyparser": "4.2.1", | ||
"koa-router": "7.4.0", | ||
"koa-static": "5.0.0" | ||
}, | ||
@@ -51,11 +42,3 @@ "keywords": [ | ||
"author": "屠佳伟", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/koa-bodyparser": "^4.3.5", | ||
"@types/koa-router": "^7.4.4", | ||
"@types/koa-static": "^4.0.2", | ||
"@types/koa__cors": "^3.3.0", | ||
"@types/node": "^17.0.9", | ||
"typescript": "^4.5.4" | ||
} | ||
"license": "MIT" | ||
} |
@@ -20,3 +20,3 @@ #!/bin/env node | ||
const formattedArgs = getFormattedArgs(); | ||
const formattedArgs = getFormattedArgs(process.argv.slice(2)); | ||
@@ -40,6 +40,6 @@ if ('p' in formattedArgs) { | ||
const server = new Koa(); | ||
const app = new Koa(); | ||
const router = new Router(); | ||
server | ||
app | ||
.use(cors()) | ||
@@ -54,8 +54,8 @@ .use(bodyParser()) | ||
key: fs.readFileSync( | ||
path.resolve(__dirname, '..', 'pem', 'private_key.pem') | ||
path.resolve(__dirname, '../pem/private_key.pem') | ||
), | ||
cert: fs.readFileSync(path.resolve(__dirname, '..', 'pem', 'ca-cert.pem')), | ||
cert: fs.readFileSync(path.resolve(__dirname, '../pem/ca-cert.pem')), | ||
}; | ||
https.createServer(httpsOptions, server.callback()).listen(config.port, () => { | ||
https.createServer(httpsOptions, app.callback()).listen(config.port, () => { | ||
const ips = getIps(); | ||
@@ -68,3 +68,3 @@ logger.info('Server is running at:'); | ||
} else { | ||
server.listen(config.port, () => { | ||
app.listen(config.port, () => { | ||
const ips = getIps(); | ||
@@ -71,0 +71,0 @@ logger.info('Server is running at:'); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
426342
0
148
7670
3
5
+ Added@koa/cors@3.3.0(transitive)
+ Added@mrtujiawei/utils@2.3.130(transitive)
+ Addedcookies@0.8.0(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addederror-inject@1.0.0(transitive)
+ Addedkoa@2.11.0(transitive)
+ Addedkoa-bodyparser@4.2.1(transitive)
+ Addedkoa-convert@1.2.0(transitive)
+ Addedms@2.0.0(transitive)
- Removed@koa/cors@3.4.3(transitive)
- Removed@mrtujiawei/utils@2.5.52(transitive)
- Removedcookies@0.9.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removedkoa@2.15.3(transitive)
- Removedkoa-bodyparser@4.4.1(transitive)
- Removedkoa-convert@2.0.0(transitive)
Updated@koa/cors@3.3.0
Updated@mrtujiawei/utils@2.3.130
Updatedkoa@2.11.0
Updatedkoa-bodyparser@4.2.1
Updatedkoa-router@7.4.0
Updatedkoa-static@5.0.0