@sequencemedia/minimserver 1.3.252 → 1.3.253

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 CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  import 'dotenv/config'
4
4
 
5
- import debug from 'debug'
6
-
7
5
  import {
8
6
  readFile
9
7
  } from 'node:fs/promises'
@@ -12,15 +10,9 @@ import {
12
10
  Command
13
11
  } from 'commander'
14
12
 
15
- import minimServer from './src/index.mjs'
13
+ import debug from '#debug'
16
14
 
17
- const {
18
- env: {
19
- DEBUG = '@sequencemedia/minimserver*'
20
- }
21
- } = process
22
-
23
- if (DEBUG) debug.enable(DEBUG)
15
+ import minimServer from './src/index.mjs'
24
16
 
25
17
  const log = debug('@sequencemedia/minimserver')
26
18
 
package/kill-me-now.mjs CHANGED
@@ -1,18 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import debug from 'debug'
4
-
5
3
  import killMeNow from 'kill-me-now'
6
4
 
7
- import hereIAm from '#where-am-i'
8
-
9
- const {
10
- env: {
11
- DEBUG = '@sequencemedia/minimserver*'
12
- }
13
- } = process
5
+ import debug from '#debug'
14
6
 
15
- if (DEBUG) debug.enable(DEBUG)
7
+ import hereIAm from '#where-am-i'
16
8
 
17
9
  const {
18
10
  pid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencemedia/minimserver",
3
- "version": "1.3.252",
3
+ "version": "1.3.253",
4
4
  "description": "Watch for changes to M3Us and rescan MinimServer",
5
5
  "keywords": [
6
6
  "minimserver",
@@ -34,8 +34,8 @@
34
34
  "url": "https://github.com/sequencemedia/minimserver/issues"
35
35
  },
36
36
  "scripts": {
37
- "kill-me-now": "cross-env NODE_OPTIONS=\"--no-warnings\" NODE_ENV=production node kill-me-now.mjs",
38
37
  "dev": "cross-env NODE_OPTIONS=\"--no-warnings\" NODE_ENV=development node .",
38
+ "kill-me-now": "cross-env NODE_OPTIONS=\"--no-warnings\" NODE_ENV=production node kill-me-now.mjs",
39
39
  "lint": "eslint .",
40
40
  "lint:fix": "npm run lint -- --fix",
41
41
  "prepare": "husky",
@@ -59,6 +59,7 @@
59
59
  "husky": "^9.1.7"
60
60
  },
61
61
  "imports": {
62
+ "#debug": "./debug.mjs",
62
63
  "#where-am-i": "./where-am-i.mjs"
63
64
  }
64
65
  }
package/src/debug.mjs ADDED
@@ -0,0 +1,11 @@
1
+ import debug from 'debug'
2
+
3
+ const {
4
+ env: {
5
+ DEBUG = '@sequencemedia/minimserver*'
6
+ }
7
+ } = process
8
+
9
+ if (DEBUG) debug.enable(DEBUG)
10
+
11
+ export default debug