@sequencemedia/minimserver 1.1.27 → 1.2.0
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/app.mjs +4 -4
- package/package.json +1 -1
- package/src/index.mjs +2 -2
package/app.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import psList from 'ps-list'
|
|
|
12
12
|
|
|
13
13
|
import commander from 'commander'
|
|
14
14
|
|
|
15
|
-
import
|
|
15
|
+
import minimServer from '#minimserver'
|
|
16
16
|
|
|
17
17
|
const log = debug('@sequencemedia/minimserver')
|
|
18
18
|
|
|
@@ -44,7 +44,7 @@ async function app () {
|
|
|
44
44
|
pid
|
|
45
45
|
} = a.find(({ pid }) => pid !== PID)
|
|
46
46
|
|
|
47
|
-
const log = debug('@sequencemedia/minimserver:process
|
|
47
|
+
const log = debug('@sequencemedia/minimserver:process')
|
|
48
48
|
|
|
49
49
|
log(`Killing application "${name}" in process ${pid}.`)
|
|
50
50
|
|
|
@@ -115,9 +115,9 @@ async function app () {
|
|
|
115
115
|
})
|
|
116
116
|
|
|
117
117
|
try {
|
|
118
|
-
await
|
|
118
|
+
await minimServer(origin, destination, server, ignore, bounce)
|
|
119
119
|
} catch ({ message }) {
|
|
120
|
-
const error = debug('@sequencemedia/minimserver:
|
|
120
|
+
const error = debug('@sequencemedia/minimserver:error')
|
|
121
121
|
|
|
122
122
|
error(message)
|
|
123
123
|
}
|
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -351,7 +351,7 @@ export function ignorePatternFactory (ignore) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
export default async function
|
|
354
|
+
export default async function minimServer (
|
|
355
355
|
origin = '.',
|
|
356
356
|
destination = '.',
|
|
357
357
|
server = 'http://0.0.0.0:9790',
|
|
@@ -359,7 +359,7 @@ export default async function execute (
|
|
|
359
359
|
bounce = 60000
|
|
360
360
|
) {
|
|
361
361
|
/*
|
|
362
|
-
* log('
|
|
362
|
+
* log('minimServer')
|
|
363
363
|
*/
|
|
364
364
|
let watcher
|
|
365
365
|
|