silgi 0.9.21 → 0.9.23

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,4 +1,4 @@
1
- const version = "0.9.21";
1
+ const version = "0.9.23";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
@@ -1943,6 +1943,7 @@ const prepare = defineCommand({
1943
1943
  await generate();
1944
1944
  await generate();
1945
1945
  consola.withTag("silgi").success("Prepare completed");
1946
+ process.exit(0);
1946
1947
  }
1947
1948
  });
1948
1949
 
@@ -520,6 +520,7 @@ async function createSilgi(config) {
520
520
  silgi.shared.storage = (...data) => {
521
521
  return useSilgiStorage(...data);
522
522
  };
523
+ silgi.shared.runtimeConfig = silgi.runtimeConfig;
523
524
  if (silgiCtx.tryUse()) {
524
525
  silgiCtx.unset();
525
526
  silgiCtx.set(silgi);
@@ -1,4 +1,4 @@
1
- const version = "0.9.21";
1
+ const version = "0.9.23";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
@@ -1,4 +1,4 @@
1
- const version = "0.9.21";
1
+ const version = "0.9.23";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
@@ -813,6 +813,7 @@ interface StorageKeyParams<TInput = unknown> {
813
813
  interface SilgiRuntimeShareds extends SilgiRuntimeSharedExtends {
814
814
  storage: <T extends StorageValue = StorageValue>(base: StorageConfig<T>['base']) => Storage<T>;
815
815
  silgi: SilgiFunction;
816
+ runtimeConfig: SilgiRuntimeOptions;
816
817
  }
817
818
  interface SilgiRuntimeSharedExtends {
818
819
  }
@@ -813,6 +813,7 @@ interface StorageKeyParams<TInput = unknown> {
813
813
  interface SilgiRuntimeShareds extends SilgiRuntimeSharedExtends {
814
814
  storage: <T extends StorageValue = StorageValue>(base: StorageConfig<T>['base']) => Storage<T>;
815
815
  silgi: SilgiFunction;
816
+ runtimeConfig: SilgiRuntimeOptions;
816
817
  }
817
818
  interface SilgiRuntimeSharedExtends {
818
819
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.9.21",
4
+ "version": "0.9.23",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {