monoidentity 0.4.0 → 0.5.1

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.
@@ -6,5 +6,5 @@ type ProxyHandlerWithoutTarget = {
6
6
  deleteProperty?(p: string | symbol): boolean;
7
7
  ownKeys?(): ArrayLike<string | symbol>;
8
8
  };
9
- export declare const createStore: (implementation: ProxyHandlerWithoutTarget) => Dict;
9
+ export declare const createStore: <T>(implementation: ProxyHandlerWithoutTarget) => Record<string, T>;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  import { type Dict } from "./_createstore.js";
2
- export declare const init: () => Dict;
2
+ export declare const init: () => Record<string, string>;
3
3
  export declare const wrapWithBackup: (storage: Dict, requestBackup: (callback: () => void) => void) => Dict;
package/dist/storage.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { Login } from "./utils-callback.js";
2
2
  export declare const setup: (i: Record<string, string>, a: string) => void;
3
3
  export declare const getLogin: () => Login;
4
- export declare const getStorage: (realm: "cache") => import("./_createstore.js").Dict;
4
+ export declare const getStorage: (realm: "config" | "cache") => Record<string, any>;
package/dist/storage.js CHANGED
@@ -16,7 +16,7 @@ export const getLogin = () => {
16
16
  return JSON.parse(decode(login));
17
17
  };
18
18
  export const getStorage = (realm) => {
19
- const prefix = (text) => `.${realm}/${app}/${text}`;
19
+ const prefix = (text) => `.${realm}/${app}/${text}.devalue`;
20
20
  if (!app)
21
21
  throw new Error("No app set");
22
22
  return createStore({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monoidentity",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "repository": "KTibow/monoidentity",
5
5
  "author": {
6
6
  "name": "KTibow"