@haex-space/vault-sdk 2.5.17 → 2.5.19
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-ChcEv5iE.d.mts → client-BTKbN_IB.d.mts} +8 -8
- package/dist/{client-B2k574Va.d.ts → client-CP2zRPsi.d.ts} +8 -8
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +7 -7
- package/dist/react.d.ts +7 -7
- package/dist/react.js +8 -8
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +7 -7
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +4 -4
- package/dist/runtime/nuxt.plugin.client.d.ts +4 -4
- package/dist/runtime/nuxt.plugin.client.js +2 -2
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +2 -2
- 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 +13 -13
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +11 -11
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +7 -7
- package/dist/vue.d.ts +7 -7
- package/dist/vue.js +8 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +7 -7
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/svelte.mjs
CHANGED
|
@@ -1739,7 +1739,7 @@ async function respondToExternalRequest(response, request) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
|
|
1741
1741
|
// src/client.ts
|
|
1742
|
-
var
|
|
1742
|
+
var HaexVaultSdk = class {
|
|
1743
1743
|
constructor(config = {}) {
|
|
1744
1744
|
// State
|
|
1745
1745
|
this.initialized = false;
|
|
@@ -2075,8 +2075,8 @@ var HaexVaultClient = class {
|
|
|
2075
2075
|
};
|
|
2076
2076
|
|
|
2077
2077
|
// src/index.ts
|
|
2078
|
-
function
|
|
2079
|
-
return new
|
|
2078
|
+
function createHaexVaultSdk(config = {}) {
|
|
2079
|
+
return new HaexVaultSdk(config);
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
2082
|
// src/svelte.ts
|
|
@@ -2084,9 +2084,9 @@ 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
|
-
clientInstance =
|
|
2089
|
+
clientInstance = createHaexVaultSdk(config);
|
|
2090
2090
|
extensionInfoStore.set(clientInstance.extensionInfo);
|
|
2091
2091
|
contextStore.set(clientInstance.context);
|
|
2092
2092
|
isSetupCompleteStore.set(false);
|
|
@@ -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
|