@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.mjs
CHANGED
|
@@ -2084,7 +2084,7 @@ var clientInstance = null;
|
|
|
2084
2084
|
var extensionInfoStore = writable(null);
|
|
2085
2085
|
var contextStore = writable(null);
|
|
2086
2086
|
var isSetupCompleteStore = writable(false);
|
|
2087
|
-
function
|
|
2087
|
+
function initHaexVaultSdk(config = {}) {
|
|
2088
2088
|
if (!clientInstance) {
|
|
2089
2089
|
clientInstance = createHaexVaultClient(config);
|
|
2090
2090
|
extensionInfoStore.set(clientInstance.extensionInfo);
|
|
@@ -2101,27 +2101,27 @@ function initHaexHub(config = {}) {
|
|
|
2101
2101
|
var extensionInfo = readonly(extensionInfoStore);
|
|
2102
2102
|
var context = readonly(contextStore);
|
|
2103
2103
|
var isSetupComplete = readonly(isSetupCompleteStore);
|
|
2104
|
-
var
|
|
2104
|
+
var haexVaultSdk = {
|
|
2105
2105
|
get client() {
|
|
2106
2106
|
return clientInstance;
|
|
2107
2107
|
},
|
|
2108
2108
|
get db() {
|
|
2109
|
-
if (!clientInstance) throw new Error("
|
|
2109
|
+
if (!clientInstance) throw new Error("HaexVault SDK not initialized. Call initHaexVaultSdk() first.");
|
|
2110
2110
|
return clientInstance.orm;
|
|
2111
2111
|
},
|
|
2112
2112
|
get storage() {
|
|
2113
|
-
if (!clientInstance) throw new Error("
|
|
2113
|
+
if (!clientInstance) throw new Error("HaexVault SDK not initialized. Call initHaexVaultSdk() first.");
|
|
2114
2114
|
return clientInstance.storage;
|
|
2115
2115
|
},
|
|
2116
2116
|
getTableName(tableName) {
|
|
2117
|
-
if (!clientInstance) throw new Error("
|
|
2117
|
+
if (!clientInstance) throw new Error("HaexVault SDK not initialized. Call initHaexVaultSdk() first.");
|
|
2118
2118
|
return clientInstance.getTableName(tableName);
|
|
2119
2119
|
}
|
|
2120
2120
|
};
|
|
2121
|
-
function
|
|
2121
|
+
function getHaexVaultSdk() {
|
|
2122
2122
|
return clientInstance;
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
export { context, extensionInfo,
|
|
2125
|
+
export { context, extensionInfo, getHaexVaultSdk, haexVaultSdk, initHaexVaultSdk, isSetupComplete };
|
|
2126
2126
|
//# sourceMappingURL=svelte.mjs.map
|
|
2127
2127
|
//# sourceMappingURL=svelte.mjs.map
|