@lensmcp/core 1.25.6 → 1.25.8
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/lib/thresholds.d.ts +5 -0
- package/lib/thresholds.js +1 -1
- package/package.json +2 -2
package/lib/thresholds.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export interface LensmcpThresholds {
|
|
|
15
15
|
renderStorm: number;
|
|
16
16
|
/** Server route durationMs at/above which it's "slow". Default 500. */
|
|
17
17
|
slowRouteMs: number;
|
|
18
|
+
/**
|
|
19
|
+
* A page visit's ready (ms from its navigation; a hard load from the app's entry) at/above which the page is
|
|
20
|
+
* "slow" — the Pages screen's Slow tab and the page review's budget. Default 1000.
|
|
21
|
+
*/
|
|
22
|
+
slowPageMs: number;
|
|
18
23
|
/** React render durationMs at/above which it's "slow". Default 16. */
|
|
19
24
|
slowRenderMs: number;
|
|
20
25
|
/** DB query durationMs at/above which its query shape is "slow" (`db://slow-queries`). Default 100. */
|
package/lib/thresholds.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var r=(e,s)=>n(e,"name",{value:s,configurable:!0});var l=Object.defineProperty,u=r((e,s)=>l(e,"name",{value:s,configurable:!0}),"n");export const DEFAULT_THRESHOLDS={dbInLoop:5,nPlusOne:3,renderStorm:5,slowRouteMs:500,slowRenderMs:16,slowQueryMs:100,duplicateRequestPeak:3,slowEgressMs:1e3};export function resolveThresholds(e){const s={...DEFAULT_THRESHOLDS};if(e)for(const t of Object.keys(DEFAULT_THRESHOLDS)){const o=e[t];typeof o=="number"&&Number.isFinite(o)&&o>=0&&(s[t]=o)}return s}r(resolveThresholds,"resolveThresholds"),u(resolveThresholds,"resolveThresholds");
|
|
1
|
+
"use strict";var n=Object.defineProperty;var r=(e,s)=>n(e,"name",{value:s,configurable:!0});var l=Object.defineProperty,u=r((e,s)=>l(e,"name",{value:s,configurable:!0}),"n");export const DEFAULT_THRESHOLDS={dbInLoop:5,nPlusOne:3,renderStorm:5,slowRouteMs:500,slowPageMs:1e3,slowRenderMs:16,slowQueryMs:100,duplicateRequestPeak:3,slowEgressMs:1e3};export function resolveThresholds(e){const s={...DEFAULT_THRESHOLDS};if(e)for(const t of Object.keys(DEFAULT_THRESHOLDS)){const o=e[t];typeof o=="number"&&Number.isFinite(o)&&o>=0&&(s[t]=o)}return s}r(resolveThresholds,"resolveThresholds"),u(resolveThresholds,"resolveThresholds");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lensmcp/core",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@lensmcp/protocol-types": "1.25.
|
|
67
|
+
"@lensmcp/protocol-types": "1.25.8",
|
|
68
68
|
"tslib": "^2.3.0"
|
|
69
69
|
},
|
|
70
70
|
"license": "Apache-2.0",
|