@haex-space/vault-sdk 2.5.15 → 2.5.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/{client-K4BOBLQE.d.ts → client-B2k574Va.d.ts} +1 -1
- package/dist/{client-Bcysw57u.d.mts → client-ChcEv5iE.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/react.d.mts +7 -7
- package/dist/react.d.ts +7 -7
- package/dist/react.js +4 -4
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +3 -3
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
- package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +9 -9
- package/dist/svelte.d.ts +9 -9
- package/dist/svelte.js +9 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +7 -7
- package/dist/svelte.mjs.map +1 -1
- package/dist/{types-CAHAohTY.d.mts → types-C4BTOGe5.d.mts} +12 -3
- package/dist/{types-CAHAohTY.d.ts → types-C4BTOGe5.d.ts} +12 -3
- package/dist/vue.d.mts +7 -7
- package/dist/vue.d.ts +7 -7
- package/dist/vue.js +4 -4
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +3 -3
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/svelte.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { H as HaexVaultClient, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultClient, S as StorageAPI } from './client-ChcEv5iE.mjs';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Readable } from 'svelte/store';
|
|
4
|
-
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-
|
|
4
|
+
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Initialize the
|
|
7
|
+
* Initialize the HaexVault SDK for Svelte
|
|
8
8
|
*
|
|
9
9
|
* Call this once at app startup (e.g., in your root +layout.svelte)
|
|
10
10
|
*
|
|
11
11
|
* @param config - Optional SDK configuration
|
|
12
12
|
*/
|
|
13
|
-
declare function
|
|
13
|
+
declare function initHaexVaultSdk(config?: HaexHubConfig): HaexVaultClient;
|
|
14
14
|
/**
|
|
15
15
|
* Svelte store for extension info (readonly)
|
|
16
16
|
*
|
|
@@ -30,20 +30,20 @@ declare const context: Readable<ApplicationContext | null>;
|
|
|
30
30
|
*/
|
|
31
31
|
declare const isSetupComplete: Readable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* Get the
|
|
33
|
+
* Get the HaexVault SDK client instance
|
|
34
34
|
*
|
|
35
35
|
* Access db, storage, and other SDK methods
|
|
36
36
|
*/
|
|
37
|
-
declare const
|
|
37
|
+
declare const haexVaultSdk: {
|
|
38
38
|
readonly client: HaexVaultClient | null;
|
|
39
39
|
readonly db: drizzle_orm_sqlite_proxy.SqliteRemoteDatabase<Record<string, unknown>> | null;
|
|
40
40
|
readonly storage: StorageAPI;
|
|
41
41
|
getTableName(tableName: string): string;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
|
-
* Get the
|
|
44
|
+
* Get the HaexVault SDK client instance (non-reactive)
|
|
45
45
|
* Useful for direct API calls without Svelte store overhead
|
|
46
46
|
*/
|
|
47
|
-
declare function
|
|
47
|
+
declare function getHaexVaultSdk(): HaexVaultClient | null;
|
|
48
48
|
|
|
49
|
-
export { context, extensionInfo,
|
|
49
|
+
export { context, extensionInfo, getHaexVaultSdk, haexVaultSdk, initHaexVaultSdk, isSetupComplete };
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { H as HaexVaultClient, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultClient, S as StorageAPI } from './client-B2k574Va.js';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Readable } from 'svelte/store';
|
|
4
|
-
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-
|
|
4
|
+
import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Initialize the
|
|
7
|
+
* Initialize the HaexVault SDK for Svelte
|
|
8
8
|
*
|
|
9
9
|
* Call this once at app startup (e.g., in your root +layout.svelte)
|
|
10
10
|
*
|
|
11
11
|
* @param config - Optional SDK configuration
|
|
12
12
|
*/
|
|
13
|
-
declare function
|
|
13
|
+
declare function initHaexVaultSdk(config?: HaexHubConfig): HaexVaultClient;
|
|
14
14
|
/**
|
|
15
15
|
* Svelte store for extension info (readonly)
|
|
16
16
|
*
|
|
@@ -30,20 +30,20 @@ declare const context: Readable<ApplicationContext | null>;
|
|
|
30
30
|
*/
|
|
31
31
|
declare const isSetupComplete: Readable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* Get the
|
|
33
|
+
* Get the HaexVault SDK client instance
|
|
34
34
|
*
|
|
35
35
|
* Access db, storage, and other SDK methods
|
|
36
36
|
*/
|
|
37
|
-
declare const
|
|
37
|
+
declare const haexVaultSdk: {
|
|
38
38
|
readonly client: HaexVaultClient | null;
|
|
39
39
|
readonly db: drizzle_orm_sqlite_proxy.SqliteRemoteDatabase<Record<string, unknown>> | null;
|
|
40
40
|
readonly storage: StorageAPI;
|
|
41
41
|
getTableName(tableName: string): string;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
|
-
* Get the
|
|
44
|
+
* Get the HaexVault SDK client instance (non-reactive)
|
|
45
45
|
* Useful for direct API calls without Svelte store overhead
|
|
46
46
|
*/
|
|
47
|
-
declare function
|
|
47
|
+
declare function getHaexVaultSdk(): HaexVaultClient | null;
|
|
48
48
|
|
|
49
|
-
export { context, extensionInfo,
|
|
49
|
+
export { context, extensionInfo, getHaexVaultSdk, haexVaultSdk, initHaexVaultSdk, isSetupComplete };
|
package/dist/svelte.js
CHANGED
|
@@ -2086,7 +2086,7 @@ var clientInstance = null;
|
|
|
2086
2086
|
var extensionInfoStore = store.writable(null);
|
|
2087
2087
|
var contextStore = store.writable(null);
|
|
2088
2088
|
var isSetupCompleteStore = store.writable(false);
|
|
2089
|
-
function
|
|
2089
|
+
function initHaexVaultSdk(config = {}) {
|
|
2090
2090
|
if (!clientInstance) {
|
|
2091
2091
|
clientInstance = createHaexVaultClient(config);
|
|
2092
2092
|
extensionInfoStore.set(clientInstance.extensionInfo);
|
|
@@ -2103,32 +2103,32 @@ function initHaexHub(config = {}) {
|
|
|
2103
2103
|
var extensionInfo = store.readonly(extensionInfoStore);
|
|
2104
2104
|
var context = store.readonly(contextStore);
|
|
2105
2105
|
var isSetupComplete = store.readonly(isSetupCompleteStore);
|
|
2106
|
-
var
|
|
2106
|
+
var haexVaultSdk = {
|
|
2107
2107
|
get client() {
|
|
2108
2108
|
return clientInstance;
|
|
2109
2109
|
},
|
|
2110
2110
|
get db() {
|
|
2111
|
-
if (!clientInstance) throw new Error("
|
|
2111
|
+
if (!clientInstance) throw new Error("HaexVault SDK not initialized. Call initHaexVaultSdk() first.");
|
|
2112
2112
|
return clientInstance.orm;
|
|
2113
2113
|
},
|
|
2114
2114
|
get storage() {
|
|
2115
|
-
if (!clientInstance) throw new Error("
|
|
2115
|
+
if (!clientInstance) throw new Error("HaexVault SDK not initialized. Call initHaexVaultSdk() first.");
|
|
2116
2116
|
return clientInstance.storage;
|
|
2117
2117
|
},
|
|
2118
2118
|
getTableName(tableName) {
|
|
2119
|
-
if (!clientInstance) throw new Error("
|
|
2119
|
+
if (!clientInstance) throw new Error("HaexVault SDK not initialized. Call initHaexVaultSdk() first.");
|
|
2120
2120
|
return clientInstance.getTableName(tableName);
|
|
2121
2121
|
}
|
|
2122
2122
|
};
|
|
2123
|
-
function
|
|
2123
|
+
function getHaexVaultSdk() {
|
|
2124
2124
|
return clientInstance;
|
|
2125
2125
|
}
|
|
2126
2126
|
|
|
2127
2127
|
exports.context = context;
|
|
2128
2128
|
exports.extensionInfo = extensionInfo;
|
|
2129
|
-
exports.
|
|
2130
|
-
exports.
|
|
2131
|
-
exports.
|
|
2129
|
+
exports.getHaexVaultSdk = getHaexVaultSdk;
|
|
2130
|
+
exports.haexVaultSdk = haexVaultSdk;
|
|
2131
|
+
exports.initHaexVaultSdk = initHaexVaultSdk;
|
|
2132
2132
|
exports.isSetupComplete = isSetupComplete;
|
|
2133
2133
|
//# sourceMappingURL=svelte.js.map
|
|
2134
2134
|
//# sourceMappingURL=svelte.js.map
|