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 +1 -1
- package/src/plugins/preview.js +1 -1
- package/src/plugins/sources.js +7 -2
package/package.json
CHANGED
package/src/plugins/preview.js
CHANGED
package/src/plugins/sources.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|