@frontmcp/utils 1.9.7 → 1.10.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/esm/async-context/browser-async-context.mjs +0 -3
- package/esm/async-context/node-async-context.mjs +0 -3
- package/esm/crypto/browser.mjs +0 -3
- package/esm/crypto/node.mjs +0 -3
- package/esm/env/browser-env.mjs +0 -3
- package/esm/env/browser-runtime-context.mjs +0 -3
- package/esm/env/node-env.mjs +0 -3
- package/esm/event-emitter/browser-event-emitter.mjs +0 -3
- package/esm/event-emitter/node-event-emitter.mjs +0 -3
- package/esm/path/browser-path.mjs +0 -3
- package/esm/path/node-path.mjs +0 -3
- package/package.json +2 -2
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/async-context/overlap-error.ts
|
|
5
2
|
var AsyncContextOverlapError = class extends Error {
|
|
6
3
|
constructor(message) {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/async-context/node-async-context.ts
|
|
5
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
3
|
|
package/esm/crypto/browser.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/crypto/browser.ts
|
|
5
2
|
import { gcm } from "@noble/ciphers/aes.js";
|
|
6
3
|
import { hkdf } from "@noble/hashes/hkdf.js";
|
package/esm/crypto/node.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/crypto/node.ts
|
|
5
2
|
import crypto from "node:crypto";
|
|
6
3
|
|
package/esm/env/browser-env.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/env/edge-scope.ts
|
|
5
2
|
function hasEdgeGlobalScope() {
|
|
6
3
|
if (typeof globalThis === "undefined") return false;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/env/browser-runtime-context.ts
|
|
5
2
|
import { z } from "@frontmcp/lazy-zod";
|
|
6
3
|
|
package/esm/env/node-env.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/env/edge-scope.ts
|
|
5
2
|
function hasEdgeGlobalScope() {
|
|
6
3
|
if (typeof globalThis === "undefined") return false;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/event-emitter/browser-event-emitter.ts
|
|
5
2
|
var EventEmitter = class {
|
|
6
3
|
events = /* @__PURE__ */ new Map();
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/event-emitter/node-event-emitter.ts
|
|
5
2
|
import { EventEmitter } from "events";
|
|
6
3
|
export {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/path/browser-path.ts
|
|
5
2
|
function notAvailable(name) {
|
|
6
3
|
throw new Error(`path.${name}() is not available in browser environments`);
|
package/esm/path/node-path.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
-
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
-
// __frontmcpCreateRequire
|
|
4
1
|
// libs/utils/src/path/node-path.ts
|
|
5
2
|
import { resolve, join, basename, dirname, extname, isAbsolute, sep } from "path";
|
|
6
3
|
import { pathToFileURL } from "url";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Shared helpers for FrontMCP: URI templates, naming, cross-platform crypto and PKCE, key-value storage, file system and environment detection",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@noble/hashes": "^2.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@frontmcp/lazy-zod": "1.
|
|
36
|
+
"@frontmcp/lazy-zod": "1.10.0",
|
|
37
37
|
"@upstash/redis": "^1.34.0",
|
|
38
38
|
"@vercel/kv": "^2.0.0 || ^3.0.0",
|
|
39
39
|
"ioredis": "^5.0.0"
|