@quatrain/worker 1.1.15 → 1.1.17
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.
- package/lib/FileSystem.js +1 -1
- package/lib/Worker.d.ts +1 -0
- package/lib/Worker.js +1 -0
- package/package.json +3 -3
package/lib/FileSystem.js
CHANGED
|
@@ -156,7 +156,7 @@ class FileSystem {
|
|
|
156
156
|
* Return meta data on given file
|
|
157
157
|
*/
|
|
158
158
|
static getInfo = (file) => {
|
|
159
|
-
if (file.endsWith('.mp4')) {
|
|
159
|
+
if (file.endsWith('.mp4') || file.endsWith('.insv')) {
|
|
160
160
|
return new Promise((resolve, reject) => ffmpeg.ffprobe(file, (err, metadata) => {
|
|
161
161
|
if (err) {
|
|
162
162
|
Worker_1.Worker.error(err);
|
package/lib/Worker.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Core } from '@quatrain/core';
|
|
2
2
|
export declare class Worker extends Core {
|
|
3
3
|
static endpoint: string;
|
|
4
|
+
static logger: any;
|
|
4
5
|
/**
|
|
5
6
|
* Execute an external command in a promise
|
|
6
7
|
* @see https://stackoverflow.com/questions/46289682/how-to-wait-for-child-process-spawn-execution-with-async-await
|
package/lib/Worker.js
CHANGED
|
@@ -10,6 +10,7 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
10
10
|
const child_process_1 = require("child_process");
|
|
11
11
|
class Worker extends core_1.Core {
|
|
12
12
|
static endpoint = '';
|
|
13
|
+
static logger = this.addLogger('Worker');
|
|
13
14
|
/**
|
|
14
15
|
* Execute an external command in a promise
|
|
15
16
|
* @see https://stackoverflow.com/questions/46289682/how-to-wait-for-child-process-spawn-execution-with-async-await
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/worker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "Container Worker helpers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"typescript": "^5.1.5"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quatrain/core": "^1.1.
|
|
28
|
+
"@quatrain/core": "^1.1.15",
|
|
29
29
|
"axios": "^1.7.7",
|
|
30
|
-
"fluent-ffmpeg": "^2.1.
|
|
30
|
+
"fluent-ffmpeg": "^2.1.2",
|
|
31
31
|
"fs-extra": "^11.2.0",
|
|
32
32
|
"node-fetch-native": "^1.6.4"
|
|
33
33
|
},
|