silgi 0.9.20 → 0.9.22

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.20";
1
+ const version = "0.9.22";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
@@ -865,7 +865,7 @@ async function nitroFramework(silgi, skip = false) {
865
865
  path: join(runtimeDir, "internal/nitro")
866
866
  });
867
867
  silgi.hook("prepare:createDTSFramework", (data) => {
868
- data.importItems["silgi/types"] = {
868
+ data.importItems["nitropack/types"] = {
869
869
  import: [
870
870
  { name: "NitroRuntimeConfig", type: true }
871
871
  ],
@@ -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.20";
1
+ const version = "0.9.22";
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.20";
1
+ const version = "0.9.22";
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.20",
4
+ "version": "0.9.22",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {