Files
klz-cables.com/.pnpm-store/v10/files/4b/60f0f0eea8ed42efdfca2f2f483a67eae3953bd8f6fe88e280319e8a4e36b558acac7f5f848f1b63f15d63c95f82cb1fbc0e450fdd89f82f12b2ba0a67d960
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

54 lines
1.7 KiB
Plaintext

import type { Request } from 'express';
import { Attributes } from '@opentelemetry/api';
/**
* This symbol is used to mark express layer as being already instrumented
* since its possible to use a given layer multiple times (ex: middlewares)
*/
export declare const kLayerPatched: unique symbol;
/**
* This const define where on the `request` object the Instrumentation will mount the
* current stack of express layer.
*
* It is necessary because express doesn't store the different layers
* (ie: middleware, router etc) that it called to get to the current layer.
* Given that, the only way to know the route of a given layer is to
* store the path of where each previous layer has been mounted.
*
* ex: bodyParser > auth middleware > /users router > get /:id
* in this case the stack would be: ["/users", "/:id"]
*
* ex2: bodyParser > /api router > /v1 router > /users router > get /:id
* stack: ["/api", "/v1", "/users", ":id"]
*
*/
export declare const _LAYERS_STORE_PROPERTY = "__ot_middlewares";
export type PatchedRequest = {
[_LAYERS_STORE_PROPERTY]?: string[];
} & Request;
export type PathParams = string | RegExp | Array<string | RegExp>;
export type ExpressRouter = {
params: {
[key: string]: string;
};
_params: string[];
caseSensitive: boolean;
mergeParams: boolean;
strict: boolean;
stack: ExpressLayer[];
};
export type ExpressLayer = {
handle: Function & Record<string, any>;
[kLayerPatched]?: boolean;
name: string;
params: {
[key: string]: string;
};
path: string;
regexp: RegExp;
route?: ExpressLayer;
};
export type LayerMetadata = {
attributes: Attributes;
name: string;
};
//# sourceMappingURL=internal-types.d.ts.map