New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@andrewstart/av-encoder

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andrewstart/av-encoder - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

20

dist/encodeAudio.js

@@ -41,5 +41,9 @@ "use strict";

await cache.load();
const destFolders = [];
for (const group of config.audio.folders) {
const destFolder = path.resolve(cwd, group.dest);
await fs.ensureDir(destFolder);
if (!destFolders.includes(destFolder)) {
destFolders.push(destFolder);
}
const changed = await utils_1.filterChanged(await fast_glob_1.default(group.src, { cwd }), async (file) => {

@@ -127,5 +131,19 @@ var _a;

}
cache.purgeUnseen();
const missing = cache.purgeUnseen();
await cache.save();
if (config.audio.removeMissing) {
const exts = ['.mp3', '.opus', '.caf'];
for (const file of missing) {
const base = path.basename(file, path.extname(file));
for (const folder of destFolders) {
for (const ext of exts) {
const filePath = path.resolve(folder, base + ext);
if (await fs.pathExists(filePath)) {
await fs.remove(filePath);
}
}
}
}
}
}
main();

@@ -44,5 +44,9 @@ "use strict";

await cache.load();
const destFolders = [];
for (const group of config.video.folders) {
const destFolder = path.resolve(cwd, group.dest);
await fs.ensureDir(destFolder);
if (!destFolders.includes(destFolder)) {
destFolders.push(destFolder);
}
const changed = await utils_1.filterChanged(await fast_glob_1.default(group.src, { cwd }), async (file) => {

@@ -116,5 +120,16 @@ var _a;

}
cache.purgeUnseen();
const missing = cache.purgeUnseen();
await cache.save();
if (config.audio.removeMissing) {
for (const file of missing) {
const base = path.basename(file, path.extname(file));
for (const folder of destFolders) {
const filePath = path.resolve(folder, base + '.mp4');
if (await fs.pathExists(filePath)) {
await fs.remove(filePath);
}
}
}
}
}
main();

2

package.json
{
"name": "@andrewstart/av-encoder",
"version": "2.0.2",
"version": "2.0.3",
"description": "Encodes and compresses audio/video for widely supported web formats",

@@ -5,0 +5,0 @@ "bin": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc