Upgrade passport and ava.

master
Zed A. Shaw 5 months ago
parent 3dd0263d2e
commit 4de7258511
  1. 13
      api/logout.js
  2. 5
      commands/convert.js
  3. 4561
      package-lock.json
  4. 10
      package.json

@ -1,5 +1,14 @@
import { create } from "../lib/logging.js";
const log = create(import.meta.url);
export const get = (req, res) => {
req.logout();
res.status(200).json({message: "OK"});
req.logout((err) => {
if(err) {
log.error(err);
res.status(500).json({message: "ERROR logging out session."});
} else {
res.status(200).json({message: "OK"});
}
});
}

@ -15,6 +15,7 @@ export const description = "Converts videos from GrassValley HQX to .mp4.";
export const options = [
["--scale <int>", "720, 1080, or 2160 for example", 1080],
["--test <int>", "Make a test video <int> seconds long."],
["--test-start <int>", "When to start the test clip."],
["--init-outdir", "if outdir doesn't exist create it", false],
["--br-video <int>", "video bitrate", 900],
["--br-audio <int>", "video bitrate", 192],
@ -91,8 +92,8 @@ const run = async (pass, output, opts) => {
let encode = ffmpeg(opts.input, {logger: log})
.inputOptions([]);
if(opts.test) {
encode.seek(opts.test);
if(opts.testStart || opts.test) {
encode.seek(opts.testStart || opts.test);
}
// this logic is too convoluted

4561
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -73,7 +73,7 @@
"@paypal/checkout-server-sdk": "^1.0.3",
"@rollup/plugin-json": "^4.1.0",
"@vscode/sqlite3": "^5.0.7",
"ava": "^3.15.0",
"ava": "^4.3.1",
"axios": "^0.21.4",
"bcryptjs": "^2.4.3",
"bittorrent-tracker": "^9.17.4",
@ -103,19 +103,19 @@
"nodemailer": "^6.5.0",
"nodemon": "^2.0.15",
"npm-watch": "^0.9.0",
"passport": "^0.4.1",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"pino": "^6.11.3",
"pino-pretty": "^4.7.1",
"playwright": "^1.10.0",
"pm2": "^4.5.6",
"playwright": "^1.23.3",
"pm2": "^5.2.0",
"prismjs": "^1.27.0",
"random": "3.0.6",
"randomcolor": "^0.6.2",
"redis": "^3.1.2",
"remarkable": "^2.0.1",
"rollup-plugin-jscc": "^2.0.0",
"sharp": "^0.29.3",
"sharp": "^0.30.7",
"sirv-cli": "^1.0.0",
"slugify": "^1.6.2",
"snarkdown": "^2.0.0",

Loading…
Cancel
Save