@frontmcp/utils 1.9.0 → 1.9.1-rc.2
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/esm/index.mjs +4 -6
- package/index.js +4 -6
- package/package.json +3 -3
package/esm/index.mjs
CHANGED
|
@@ -3495,7 +3495,7 @@ var init_vercel_kv = __esm({
|
|
|
3495
3495
|
if (!url || !token) {
|
|
3496
3496
|
throw new StorageConfigError("vercel-kv", "URL and token are required");
|
|
3497
3497
|
}
|
|
3498
|
-
this.client = createClient({ url, token, cache: void 0 });
|
|
3498
|
+
this.client = createClient({ url, token, cache: void 0, automaticDeserialization: false });
|
|
3499
3499
|
await this.client.exists("__healthcheck__");
|
|
3500
3500
|
this.connected = true;
|
|
3501
3501
|
} catch (e) {
|
|
@@ -3536,8 +3536,7 @@ var init_vercel_kv = __esm({
|
|
|
3536
3536
|
// Core Operations
|
|
3537
3537
|
// ============================================
|
|
3538
3538
|
async get(key) {
|
|
3539
|
-
|
|
3540
|
-
return result;
|
|
3539
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3541
3540
|
}
|
|
3542
3541
|
async doSet(key, value, options) {
|
|
3543
3542
|
const client = this.getConnectedClient();
|
|
@@ -3722,7 +3721,7 @@ var init_upstash = __esm({
|
|
|
3722
3721
|
if (!url || !token) {
|
|
3723
3722
|
throw new StorageConfigError("upstash", "URL and token are required");
|
|
3724
3723
|
}
|
|
3725
|
-
this.client = new Redis({ url, token });
|
|
3724
|
+
this.client = new Redis({ url, token, automaticDeserialization: false });
|
|
3726
3725
|
await this.client.exists("__healthcheck__");
|
|
3727
3726
|
this.connected = true;
|
|
3728
3727
|
} catch (e) {
|
|
@@ -3769,8 +3768,7 @@ var init_upstash = __esm({
|
|
|
3769
3768
|
// Core Operations
|
|
3770
3769
|
// ============================================
|
|
3771
3770
|
async get(key) {
|
|
3772
|
-
|
|
3773
|
-
return result;
|
|
3771
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3774
3772
|
}
|
|
3775
3773
|
async doSet(key, value, options) {
|
|
3776
3774
|
const client = this.getConnectedClient();
|
package/index.js
CHANGED
|
@@ -3497,7 +3497,7 @@ var init_vercel_kv = __esm({
|
|
|
3497
3497
|
if (!url || !token) {
|
|
3498
3498
|
throw new StorageConfigError("vercel-kv", "URL and token are required");
|
|
3499
3499
|
}
|
|
3500
|
-
this.client = createClient({ url, token, cache: void 0 });
|
|
3500
|
+
this.client = createClient({ url, token, cache: void 0, automaticDeserialization: false });
|
|
3501
3501
|
await this.client.exists("__healthcheck__");
|
|
3502
3502
|
this.connected = true;
|
|
3503
3503
|
} catch (e) {
|
|
@@ -3538,8 +3538,7 @@ var init_vercel_kv = __esm({
|
|
|
3538
3538
|
// Core Operations
|
|
3539
3539
|
// ============================================
|
|
3540
3540
|
async get(key) {
|
|
3541
|
-
|
|
3542
|
-
return result;
|
|
3541
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3543
3542
|
}
|
|
3544
3543
|
async doSet(key, value, options) {
|
|
3545
3544
|
const client = this.getConnectedClient();
|
|
@@ -3724,7 +3723,7 @@ var init_upstash = __esm({
|
|
|
3724
3723
|
if (!url || !token) {
|
|
3725
3724
|
throw new StorageConfigError("upstash", "URL and token are required");
|
|
3726
3725
|
}
|
|
3727
|
-
this.client = new Redis({ url, token });
|
|
3726
|
+
this.client = new Redis({ url, token, automaticDeserialization: false });
|
|
3728
3727
|
await this.client.exists("__healthcheck__");
|
|
3729
3728
|
this.connected = true;
|
|
3730
3729
|
} catch (e) {
|
|
@@ -3771,8 +3770,7 @@ var init_upstash = __esm({
|
|
|
3771
3770
|
// Core Operations
|
|
3772
3771
|
// ============================================
|
|
3773
3772
|
async get(key) {
|
|
3774
|
-
|
|
3775
|
-
return result;
|
|
3773
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3776
3774
|
}
|
|
3777
3775
|
async doSet(key, value, options) {
|
|
3778
3776
|
const client = this.getConnectedClient();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/utils",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1-rc.2",
|
|
4
4
|
"description": "Shared utility functions for FrontMCP - string manipulation, URI handling, path utilities, and more",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"node": ">=24.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@enclave-vm/ast": "^2.
|
|
30
|
+
"@enclave-vm/ast": "^2.16.0",
|
|
31
31
|
"@noble/ciphers": "^2.1.1",
|
|
32
32
|
"@noble/hashes": "^2.0.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@frontmcp/lazy-zod": "1.9.
|
|
35
|
+
"@frontmcp/lazy-zod": "1.9.1-rc.2",
|
|
36
36
|
"@vercel/kv": "^2.0.0 || ^3.0.0",
|
|
37
37
|
"ioredis": "^5.0.0"
|
|
38
38
|
},
|