mikser-io 11.0.1 → 11.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mikser-io",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "files": [
5
5
  "app.js",
6
6
  "index.js",
@@ -183,6 +183,6 @@ export function preview(options = {}) {
183
183
  })
184
184
  })
185
185
 
186
- return { name: 'preview' }
186
+ return { name: 'preview', module: import.meta.url }
187
187
  }
188
188
  }
@@ -31,8 +31,10 @@ export function sources(options = {}) {
31
31
  const { useLogger } = core
32
32
  if (!collections.length) {
33
33
  // No collections is a legitimate config (a flag turned them all
34
- // off); nothing to register, and nothing to complain about.
35
- return
34
+ // off); nothing to register, and nothing to complain about. Still
35
+ // names itself: the plugin IS loaded, and a config that turned its
36
+ // collections off must not make it look undetectable.
37
+ return { module: import.meta.url }
36
38
  }
37
39
  for (const [collection, config] of collections) {
38
40
  const {
@@ -63,6 +65,9 @@ export function sources(options = {}) {
63
65
  })
64
66
  }
65
67
  useLogger?.()?.debug('Sources registered: %s', collections.map(([c]) => c).join(', '))
68
+ // Names this package to the runtime's loaded-plugin record, so ping
69
+ // reports it as running rather than as undetectable.
70
+ return { module: import.meta.url }
66
71
  }
67
72
  }
68
73