monoidentity 0.2.0 → 0.3.0

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/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export { default as Monoidentity } from "./Monoidentity.svelte";
2
1
  export { getLogin, getStorage } from "./storage.js";
3
2
  export * from "./trackready.js";
4
3
  export { encode, decode } from "./utils-base36.js";
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- export { default as Monoidentity } from "./Monoidentity.svelte";
2
1
  export { getLogin, getStorage } from "./storage.js";
3
2
  export * from "./trackready.js";
4
3
  export { encode, decode } from "./utils-base36.js";
package/dist/storage.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type Login } from "./utils-base36.js";
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
4
  export declare const getStorage: (realm: "cache") => import("./_createstore.js").Dict;
@@ -1,6 +1,2 @@
1
- export type Login = {
2
- email: string;
3
- password: string;
4
- };
5
1
  export declare const encode: (text: string) => string;
6
2
  export declare const decode: (text: string) => string;
@@ -1,3 +1,4 @@
1
+ // This isn't encryption, it's just to prevent casual observation of sensitive data
1
2
  export const encode = (text) => {
2
3
  let output = "";
3
4
  for (let i = 0; i < text.length; i++) {
@@ -12,6 +12,10 @@ export type Callback = {
12
12
  };
13
13
  fileTasks: Record<string, string> | undefined;
14
14
  };
15
+ export type Login = {
16
+ email: string;
17
+ password: string;
18
+ };
15
19
  export declare const canBackup: boolean;
16
20
  export declare const rememberCallback: (data: Callback, pastMemory?: Memory) => Memory;
17
21
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monoidentity",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "repository": "KTibow/monoidentity",
5
5
  "author": {
6
6
  "name": "KTibow"
@@ -15,13 +15,16 @@
15
15
  "sideEffects": [
16
16
  "**/*.css"
17
17
  ],
18
- "svelte": "./dist/index.js",
19
18
  "types": "./dist/index.d.ts",
20
19
  "type": "module",
21
20
  "exports": {
22
21
  ".": {
23
22
  "types": "./dist/index.d.ts",
24
- "svelte": "./dist/index.js"
23
+ "import": "./dist/index.js"
24
+ },
25
+ "./Monoidentity": {
26
+ "types": "./dist/Monoidentity.svelte.d.ts",
27
+ "svelte": "./dist/Monoidentity.svelte"
25
28
  }
26
29
  },
27
30
  "peerDependencies": {