silgi 0.20.16 → 0.20.18
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/index.mjs +1 -1
- package/dist/core/index.mjs +2 -7
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -2,11 +2,10 @@ import { createConsola } from 'consola';
|
|
|
2
2
|
import defu, { defu as defu$1 } from 'defu';
|
|
3
3
|
import { createHooks } from 'hookable';
|
|
4
4
|
import { c as createRouteRules } from '../_chunks/routeRules.mjs';
|
|
5
|
-
import { getContext,
|
|
5
|
+
import { getContext, createContext } from 'unctx';
|
|
6
6
|
import { Buffer } from 'node:buffer';
|
|
7
7
|
import { klona } from 'klona';
|
|
8
8
|
import { createStorage as createStorage$1, builtinDrivers, prefixStorage } from 'unstorage';
|
|
9
|
-
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
10
9
|
import 'ufo';
|
|
11
10
|
|
|
12
11
|
const silgiCtx = getContext("silgi");
|
|
@@ -717,11 +716,7 @@ function createShared(shared) {
|
|
|
717
716
|
return shared;
|
|
718
717
|
}
|
|
719
718
|
|
|
720
|
-
|
|
721
|
-
asyncContext: true,
|
|
722
|
-
AsyncLocalStorage
|
|
723
|
-
});
|
|
724
|
-
const silgiCLICtx = getContext("silgi-cli");
|
|
719
|
+
const silgiCLICtx = createContext();
|
|
725
720
|
function useSilgiCLI() {
|
|
726
721
|
const instance = silgiCLICtx.tryUse();
|
|
727
722
|
if (!instance) {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED