Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arrivals-osx

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrivals-osx - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

138

build/main/lib/worker.js

@@ -23,40 +23,38 @@ "use strict";

async handler(_, payload) {
const { filepath, jobType } = payload;
// Test via the very slow lsof to see if this file is busy
const isBusy = await isFileBusy_1.isFileBusy(this.options.watchPaths[0], filepath);
if (isBusy) {
winston_1.default.info('File %s is busy, deferring...', filepath);
throw new Error('File busy');
}
winston_1.default.info('Starting work for %s', filepath);
const tag = new tag_1.Tag(filepath);
const currentValue = await this.files.get(filepath);
try {
const { filepath, jobType } = payload;
// Test via the very slow lsof to see if this file is busy
const isBusy = await isFileBusy_1.isFileBusy(this.options.watchPaths[0], filepath);
if (isBusy) {
winston_1.default.info('File %s is busy, deferring...', filepath);
return;
}
winston_1.default.info('Starting work for %s', filepath);
const tag = new tag_1.Tag(filepath);
const currentValue = await this.files.get(filepath);
const { jobStatus } = currentValue;
winston_1.default.debug('Work type: %s', enums_1.FileJobType[jobType]);
try {
const handled = jobStatus === enums_1.FileJobStatus.Pending && fs_1.existsSync(filepath)
? this.handleFile(filepath, jobType) && true
: false;
currentValue.jobStatus = handled
? enums_1.FileJobStatus.Complete
: enums_1.FileJobStatus.Unhandled;
await tag.removeTag('Red');
await tag.removeTag('Yellow');
await tag.addTag('Green');
}
catch (err) {
winston_1.default.error(err);
currentValue.jobStatus = enums_1.FileJobStatus.Error;
await tag.removeTag('Green');
await tag.removeTag('Yellow');
await tag.addTag('Red');
}
finally {
this.files.put(filepath, currentValue);
}
const validStatus = Boolean(jobStatus === enums_1.FileJobStatus.Pending || jobStatus === enums_1.FileJobStatus.Error);
const fileExists = fs_1.existsSync(filepath);
const handled = validStatus && fileExists
? await this.handleFile(filepath, jobType)
: false;
currentValue.jobStatus = handled
? enums_1.FileJobStatus.Complete
: enums_1.FileJobStatus.Unhandled;
await tag.removeTag('Red');
await tag.removeTag('Yellow');
await tag.addTag('Green');
}
catch (err) {
winston_1.default.error(err);
currentValue.jobStatus = enums_1.FileJobStatus.Error;
await tag.removeTag('Green');
await tag.removeTag('Yellow');
await tag.addTag('Red');
throw err;
}
finally {
this.files.put(filepath, currentValue);
}
}

@@ -67,48 +65,42 @@ async handleFile(filepath, jobType) {

const dirname = path_1.default.dirname(filepath);
try {
switch (jobType) {
case enums_1.FileJobType.ConvertAudio: {
winston_1.default.debug('Converting audio file');
const audioTmp = await convertAudio_1.convertAudio(filepath, tmpPath, {
atomicparsley
switch (jobType) {
case enums_1.FileJobType.ConvertAudio: {
winston_1.default.debug('Converting audio file');
const audioTmp = await convertAudio_1.convertAudio(filepath, tmpPath, {
atomicparsley
});
winston_1.default.debug('Temporary audio file created: %s', audioTmp.audio);
const outFileName = path_1.default.basename(audioTmp.audio);
await copyFile_1.copyFile(audioTmp.audio, `${audioDestination}/${outFileName}`);
del_1.sync([audioTmp.audio], { force: true });
if (audioTmp.hadCoverFile) {
del_1.sync([`${dirname}/*cover-resized-*.jpg`], {
force: true
});
winston_1.default.debug('Temporary audio file created: %s', audioTmp.audio);
const outFileName = path_1.default.basename(audioTmp.audio);
await copyFile_1.copyFile(audioTmp.audio, `${audioDestination}/${outFileName}`);
del_1.sync([audioTmp.audio], { force: true });
if (audioTmp.hadCoverFile) {
del_1.sync([`${dirname}/*cover-resized-*.jpg`], {
force: true
});
}
if (audioTmp.hadCoverFileEmbedded) {
del_1.sync([audioTmp.cover, `${tmpPath}/*cover-resized-*.jpg`], {
force: true
});
}
return true;
}
case enums_1.FileJobType.ConvertVideo: {
winston_1.default.debug('Converting video file');
winston_1.default.info('VIDEO CONVERSION IS DISABLED');
return true;
if (audioTmp.hadCoverFileEmbedded) {
del_1.sync([audioTmp.cover, `${tmpPath}/*cover-resized-*.jpg`], {
force: true
});
}
case enums_1.FileJobType.CopyAudio: {
winston_1.default.debug('Copying audio file');
await copyFile_1.copyFile(filepath, `${audioDestination}/${filename}`);
return true;
}
case enums_1.FileJobType.CopyVideo: {
winston_1.default.debug('Copying video file');
await copyFile_1.copyFile(filepath, `${videoDestination}/${filename}`);
return true;
}
default:
return false;
return true;
}
case enums_1.FileJobType.ConvertVideo: {
winston_1.default.debug('Converting video file');
winston_1.default.info('VIDEO CONVERSION IS DISABLED');
return true;
}
case enums_1.FileJobType.CopyAudio: {
winston_1.default.debug('Copying audio file');
await copyFile_1.copyFile(filepath, `${audioDestination}/${filename}`);
return true;
}
case enums_1.FileJobType.CopyVideo: {
winston_1.default.debug('Copying video file');
await copyFile_1.copyFile(filepath, `${videoDestination}/${filename}`);
return true;
}
default:
return false;
}
catch (err) {
winston_1.default.error(err);
return false;
}
}

@@ -121,2 +113,2 @@ }

exports.createWorker = createWorker;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi93b3JrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxvQ0FBb0M7QUFDcEMsaUNBQWlDO0FBQ2pDLDZCQUFzQztBQUN0QywyQkFBZ0M7QUFFaEMsZ0RBQXdCO0FBQ3hCLHNEQUE2QjtBQUM3QixpREFBOEM7QUFDOUMseUNBQXNDO0FBQ3RDLG1DQUFxRDtBQUNyRCw2Q0FBMEM7QUFDMUMsK0JBQTRCO0FBVzVCLE1BQWEsTUFBTTtJQUlqQixZQUFZLE9BQXNCO1FBQ2hDLElBQUksQ0FBQyxLQUFLLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQztRQUMzQixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztJQUN6QixDQUFDO0lBRU0sS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFTLEVBQUU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0JBQzVDLE9BQU8sSUFBSSxDQUFDO2FBQ2I7WUFFRCxLQUFLLG1CQUFXLENBQUMsU0FBUyxDQUFDLENBQUM7Z0JBQzFCLGlCQUFNLENBQUMsS0FBSyxDQUFDLG9CQUFvQixDQUFDLENBQUM7Z0JBQ25DLE1BQU0sbUJBQVEsQ0FBQyxRQUFRLEVBQUUsR0FBRyxnQkFBZ0IsSUFBSSxRQUFRLEVBQUUsQ0FBQyxDQUFDO2dCQUM1RCxPQUFPLElBQUksQ0FBQzthQUNiO1lBRUQsS0FBSyxtQkFBVyxDQUFDLFNBQVMsQ0FBQyxDQUFDO2dCQUMxQixpQkFBTSxDQUFDLEtBQUssQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO2dCQUNuQyxNQUFNLG1CQUFRLENBQUMsUUFBUSxFQUFFLEdBQUcsZ0JBQWdCLElBQUksUUFBUSxFQUFFLENBQUMsQ0FBQztnQkFDNUQsT0FBTyxJQUFJLENBQUM7YUFDYjtZQUVEO2dCQUNFLE9BQU8sS0FBSyxDQUFDO1NBQ2hCO0lBQ0gsQ0FBQztDQUNGO0FBbElELHdCQWtJQztBQUVELFNBQWdCLFlBQVksQ0FBQyxPQUFzQjtJQUNqRCxPQUFPLElBQUksTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0FBQzdCLENBQUM7QUFGRCxvQ0FFQyJ9

@@ -18,40 +18,38 @@ // tslint:disable:no-object-mutation

async handler(_, payload) {
const { filepath, jobType } = payload;
// Test via the very slow lsof to see if this file is busy
const isBusy = await isFileBusy(this.options.watchPaths[0], filepath);
if (isBusy) {
logger.info('File %s is busy, deferring...', filepath);
throw new Error('File busy');
}
logger.info('Starting work for %s', filepath);
const tag = new Tag(filepath);
const currentValue = await this.files.get(filepath);
try {
const { filepath, jobType } = payload;
// Test via the very slow lsof to see if this file is busy
const isBusy = await isFileBusy(this.options.watchPaths[0], filepath);
if (isBusy) {
logger.info('File %s is busy, deferring...', filepath);
return;
}
logger.info('Starting work for %s', filepath);
const tag = new Tag(filepath);
const currentValue = await this.files.get(filepath);
const { jobStatus } = currentValue;
logger.debug('Work type: %s', FileJobType[jobType]);
try {
const handled = jobStatus === FileJobStatus.Pending && existsSync(filepath)
? this.handleFile(filepath, jobType) && true
: false;
currentValue.jobStatus = handled
? FileJobStatus.Complete
: FileJobStatus.Unhandled;
await tag.removeTag('Red');
await tag.removeTag('Yellow');
await tag.addTag('Green');
}
catch (err) {
logger.error(err);
currentValue.jobStatus = FileJobStatus.Error;
await tag.removeTag('Green');
await tag.removeTag('Yellow');
await tag.addTag('Red');
}
finally {
this.files.put(filepath, currentValue);
}
const validStatus = Boolean(jobStatus === FileJobStatus.Pending || jobStatus === FileJobStatus.Error);
const fileExists = existsSync(filepath);
const handled = validStatus && fileExists
? await this.handleFile(filepath, jobType)
: false;
currentValue.jobStatus = handled
? FileJobStatus.Complete
: FileJobStatus.Unhandled;
await tag.removeTag('Red');
await tag.removeTag('Yellow');
await tag.addTag('Green');
}
catch (err) {
logger.error(err);
currentValue.jobStatus = FileJobStatus.Error;
await tag.removeTag('Green');
await tag.removeTag('Yellow');
await tag.addTag('Red');
throw err;
}
finally {
this.files.put(filepath, currentValue);
}
}

@@ -62,48 +60,42 @@ async handleFile(filepath, jobType) {

const dirname = path.dirname(filepath);
try {
switch (jobType) {
case FileJobType.ConvertAudio: {
logger.debug('Converting audio file');
const audioTmp = await convertAudio(filepath, tmpPath, {
atomicparsley
switch (jobType) {
case FileJobType.ConvertAudio: {
logger.debug('Converting audio file');
const audioTmp = await convertAudio(filepath, tmpPath, {
atomicparsley
});
logger.debug('Temporary audio file created: %s', audioTmp.audio);
const outFileName = path.basename(audioTmp.audio);
await copyFile(audioTmp.audio, `${audioDestination}/${outFileName}`);
delSync([audioTmp.audio], { force: true });
if (audioTmp.hadCoverFile) {
delSync([`${dirname}/*cover-resized-*.jpg`], {
force: true
});
logger.debug('Temporary audio file created: %s', audioTmp.audio);
const outFileName = path.basename(audioTmp.audio);
await copyFile(audioTmp.audio, `${audioDestination}/${outFileName}`);
delSync([audioTmp.audio], { force: true });
if (audioTmp.hadCoverFile) {
delSync([`${dirname}/*cover-resized-*.jpg`], {
force: true
});
}
if (audioTmp.hadCoverFileEmbedded) {
delSync([audioTmp.cover, `${tmpPath}/*cover-resized-*.jpg`], {
force: true
});
}
return true;
}
case FileJobType.ConvertVideo: {
logger.debug('Converting video file');
logger.info('VIDEO CONVERSION IS DISABLED');
return true;
if (audioTmp.hadCoverFileEmbedded) {
delSync([audioTmp.cover, `${tmpPath}/*cover-resized-*.jpg`], {
force: true
});
}
case FileJobType.CopyAudio: {
logger.debug('Copying audio file');
await copyFile(filepath, `${audioDestination}/${filename}`);
return true;
}
case FileJobType.CopyVideo: {
logger.debug('Copying video file');
await copyFile(filepath, `${videoDestination}/${filename}`);
return true;
}
default:
return false;
return true;
}
case FileJobType.ConvertVideo: {
logger.debug('Converting video file');
logger.info('VIDEO CONVERSION IS DISABLED');
return true;
}
case FileJobType.CopyAudio: {
logger.debug('Copying audio file');
await copyFile(filepath, `${audioDestination}/${filename}`);
return true;
}
case FileJobType.CopyVideo: {
logger.debug('Copying video file');
await copyFile(filepath, `${videoDestination}/${filename}`);
return true;
}
default:
return false;
}
catch (err) {
logger.error(err);
return false;
}
}

@@ -114,2 +106,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi93b3JrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0NBQW9DO0FBQ3BDLGlDQUFpQztBQUNqQyxPQUFPLEVBQUUsSUFBSSxJQUFJLE9BQU8sRUFBRSxNQUFNLEtBQUssQ0FBQztBQUN0QyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sSUFBSSxDQUFDO0FBRWhDLE9BQU8sSUFBSSxNQUFNLE1BQU0s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nQkFDNUQsT0FBTyxJQUFJLENBQUM7YUFDYjtZQUVELEtBQUssV0FBVyxDQUFDLFNBQVMsQ0FBQyxDQUFDO2dCQUMxQixNQUFNLENBQUMsS0FBSyxDQUFDLG9CQUFvQixDQUFDLENBQUM7Z0JBQ25DLE1BQU0sUUFBUSxDQUFDLFFBQVEsRUFBRSxHQUFHLGdCQUFnQixJQUFJLFFBQVEsRUFBRSxDQUFDLENBQUM7Z0JBQzVELE9BQU8sSUFBSSxDQUFDO2FBQ2I7WUFFRDtnQkFDRSxPQUFPLEtBQUssQ0FBQztTQUNoQjtJQUNILENBQUM7Q0FDRjtBQUVELE1BQU0sVUFBVSxZQUFZLENBQUMsT0FBc0I7SUFDakQsT0FBTyxJQUFJLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUM3QixDQUFDIn0=

@@ -5,2 +5,7 @@ # Change Log

<a name="2.4.5"></a>
## [2.4.5](https://github.com/mshick/arrivals-osx/compare/v2.4.4...v2.4.5) (2019-07-09)
<a name="2.4.4"></a>

@@ -7,0 +12,0 @@ ## [2.4.4](https://github.com/mshick/arrivals-osx/compare/v2.4.2...v2.4.4) (2019-07-09)

{
"name": "arrivals-osx",
"version": "2.4.4",
"version": "2.4.5",
"description": "Watch a folder for audio and video arrivals and convert them to Apple-friendly formats.",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

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