mikser-io 6.0.3 → 6.0.4
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/package.json +3 -3
- package/src/manager.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mikser-io",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "<p align=\"center\"> <img src=\"mikser-lockup-stacked.svg\" alt=\"mikser\" width=\"198\" /> </p>",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"yaml": "^2.8.4"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
50
|
+
"express": "^5.2.1",
|
|
51
|
+
"puppeteer": "^24.43.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"fluent-ffmpeg": "^2.1.3",
|
package/src/manager.js
CHANGED
|
@@ -17,8 +17,8 @@ export async function createdHook(name, context) {
|
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
if (synced) {
|
|
20
|
-
clearTimeout(runtime.
|
|
21
|
-
runtime.
|
|
20
|
+
clearTimeout(runtime.engine.processTimeout)
|
|
21
|
+
runtime.engine.processTimeout = setTimeout(() => runtime.process(), 1000)
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -32,8 +32,8 @@ export async function updatedHook(name, context) {
|
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
if (synced) {
|
|
35
|
-
clearTimeout(runtime.
|
|
36
|
-
runtime.
|
|
35
|
+
clearTimeout(runtime.engine.processTimeout)
|
|
36
|
+
runtime.engine.processTimeout = setTimeout(() => runtime.process(), 1000)
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -47,8 +47,8 @@ export async function triggeredHook(name, context) {
|
|
|
47
47
|
})
|
|
48
48
|
|
|
49
49
|
if (synced) {
|
|
50
|
-
clearTimeout(runtime.
|
|
51
|
-
runtime.
|
|
50
|
+
clearTimeout(runtime.engine.processTimeout)
|
|
51
|
+
runtime.engine.processTimeout = setTimeout(() => runtime.process(), 1000)
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -62,8 +62,8 @@ export async function deletedHook(name, context) {
|
|
|
62
62
|
})
|
|
63
63
|
|
|
64
64
|
if (synced) {
|
|
65
|
-
clearTimeout(runtime.
|
|
66
|
-
runtime.
|
|
65
|
+
clearTimeout(runtime.engine.processTimeout)
|
|
66
|
+
runtime.engine.processTimeout = setTimeout(() => runtime.process(), 1000)
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -72,7 +72,7 @@ export function watch(name, folder, options = { interval: 1000, binaryInterval:
|
|
|
72
72
|
|
|
73
73
|
chokidar.watch(folder, options)
|
|
74
74
|
.on('all', () => {
|
|
75
|
-
clearTimeout(runtime.
|
|
75
|
+
clearTimeout(runtime.engine.processTimeout)
|
|
76
76
|
})
|
|
77
77
|
.on('add', async fullPath => {
|
|
78
78
|
const relativePath = fullPath.replace(`${folder}/`, '')
|