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.
@@ -1,7 +1,7 @@
1
1
  import consola from 'consola';
2
- import { createContext } from 'unctx';
2
+ import { getContext } from 'unctx';
3
3
 
4
- const silgiCLICtx = createContext();
4
+ const silgiCLICtx = getContext("silgiCLI");
5
5
  function useSilgiCLI() {
6
6
  const instance = silgiCLICtx.tryUse();
7
7
  if (!instance) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.24.23";
4
+ const version = "0.24.24";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.24.23",
4
+ "version": "0.24.24",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {