fdic-mcp-server 1.2.5 → 1.2.6
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/index.js +3 -4
- package/dist/server.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
|
|
|
32
32
|
var import_express = __toESM(require("express"));
|
|
33
33
|
|
|
34
34
|
// src/constants.ts
|
|
35
|
-
var VERSION = true ? "1.2.
|
|
35
|
+
var VERSION = true ? "1.2.6" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
36
36
|
var FDIC_API_BASE_URL = "https://banks.data.fdic.gov/api";
|
|
37
37
|
var CHARACTER_LIMIT = 5e4;
|
|
38
38
|
var DEFAULT_FDIC_MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
|
|
@@ -31242,10 +31242,9 @@ var QUERY_CACHE_MAX_ENTRIES = 500;
|
|
|
31242
31242
|
var queryCache = /* @__PURE__ */ new Map();
|
|
31243
31243
|
function pruneExpiredQueryCache(now) {
|
|
31244
31244
|
for (const [key, entry] of queryCache.entries()) {
|
|
31245
|
-
if (entry.expiresAt
|
|
31246
|
-
|
|
31245
|
+
if (entry.expiresAt <= now) {
|
|
31246
|
+
queryCache.delete(key);
|
|
31247
31247
|
}
|
|
31248
|
-
queryCache.delete(key);
|
|
31249
31248
|
}
|
|
31250
31249
|
}
|
|
31251
31250
|
function evictOverflowQueryCache() {
|
package/dist/server.js
CHANGED
|
@@ -46,7 +46,7 @@ var import_types = require("@modelcontextprotocol/sdk/types.js");
|
|
|
46
46
|
var import_express = __toESM(require("express"));
|
|
47
47
|
|
|
48
48
|
// src/constants.ts
|
|
49
|
-
var VERSION = true ? "1.2.
|
|
49
|
+
var VERSION = true ? "1.2.6" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
50
50
|
var FDIC_API_BASE_URL = "https://banks.data.fdic.gov/api";
|
|
51
51
|
var CHARACTER_LIMIT = 5e4;
|
|
52
52
|
var DEFAULT_FDIC_MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
|
|
@@ -31256,10 +31256,9 @@ var QUERY_CACHE_MAX_ENTRIES = 500;
|
|
|
31256
31256
|
var queryCache = /* @__PURE__ */ new Map();
|
|
31257
31257
|
function pruneExpiredQueryCache(now) {
|
|
31258
31258
|
for (const [key, entry] of queryCache.entries()) {
|
|
31259
|
-
if (entry.expiresAt
|
|
31260
|
-
|
|
31259
|
+
if (entry.expiresAt <= now) {
|
|
31260
|
+
queryCache.delete(key);
|
|
31261
31261
|
}
|
|
31262
|
-
queryCache.delete(key);
|
|
31263
31262
|
}
|
|
31264
31263
|
}
|
|
31265
31264
|
function evictOverflowQueryCache() {
|