Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
No EOL
1.4 KiB
Text
35 lines
No EOL
1.4 KiB
Text
import type { OnRequireFn } from 'require-in-the-middle';
|
|
export declare type Hooked = {
|
|
moduleName: string;
|
|
onRequire: OnRequireFn;
|
|
};
|
|
/**
|
|
* Singleton class for `require-in-the-middle`
|
|
* Allows instrumentation plugins to patch modules with only a single `require` patch
|
|
* WARNING: Because this class will create its own `require-in-the-middle` (RITM) instance,
|
|
* we should minimize the number of new instances of this class.
|
|
* Multiple instances of `@opentelemetry/instrumentation` (e.g. multiple versions) in a single process
|
|
* will result in multiple instances of RITM, which will have an impact
|
|
* on the performance of instrumentation hooks being applied.
|
|
*/
|
|
export declare class RequireInTheMiddleSingleton {
|
|
private _moduleNameTrie;
|
|
private static _instance?;
|
|
private constructor();
|
|
private _initialize;
|
|
/**
|
|
* Register a hook with `require-in-the-middle`
|
|
*
|
|
* @param {string} moduleName Module name
|
|
* @param {OnRequireFn} onRequire Hook function
|
|
* @returns {Hooked} Registered hook
|
|
*/
|
|
register(moduleName: string, onRequire: OnRequireFn): Hooked;
|
|
/**
|
|
* Get the `RequireInTheMiddleSingleton` singleton
|
|
*
|
|
* @returns {RequireInTheMiddleSingleton} Singleton of `RequireInTheMiddleSingleton`
|
|
*/
|
|
static getInstance(): RequireInTheMiddleSingleton;
|
|
}
|
|
//# sourceMappingURL=RequireInTheMiddleSingleton.d.ts.map |