silgi 0.24.23 → 0.24.24
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/dist/_chunks/silgiApp.mjs +2 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/core/index.d.mts +0 -12
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
2
|
+
import { getContext } from 'unctx';
|
|
3
3
|
|
|
4
|
-
const silgiCLICtx =
|
|
4
|
+
const silgiCLICtx = getContext("silgiCLI");
|
|
5
5
|
function useSilgiCLI() {
|
|
6
6
|
const instance = silgiCLICtx.tryUse();
|
|
7
7
|
if (!instance) {
|
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -249,18 +249,6 @@ declare function tryUseSilgi(): Silgi | null;
|
|
|
249
249
|
|
|
250
250
|
declare const silgiCLICtx: unctx.UseContext<SilgiCLI>;
|
|
251
251
|
declare function useSilgiCLI(): SilgiCLI;
|
|
252
|
-
/**
|
|
253
|
-
* Get access to Nuxt instance.
|
|
254
|
-
*
|
|
255
|
-
* Returns null if Nuxt instance is unavailable.
|
|
256
|
-
* @example
|
|
257
|
-
* ```js
|
|
258
|
-
* const silgi = tryUseSilgi()
|
|
259
|
-
* if (silgi) {
|
|
260
|
-
* // Do something
|
|
261
|
-
* }
|
|
262
|
-
* ```
|
|
263
|
-
*/
|
|
264
252
|
declare function tryUseSilgiCLI(): SilgiCLI | null;
|
|
265
253
|
|
|
266
254
|
declare function storageMount<T extends Storage = Storage>(silgi?: Silgi): (base: keyof SilgiStorageBase, driver: Parameters<Storage['mount']>[1]) => T;
|