UNPKG

@oaklean/profiler-core

Version:

Part of the @oaklean suite. It provides all basic functions to work with the `.oak` file format. It allows parsing the `.oak` file format as well as tools for analyzing the measurement values. It also provides all necessary capabilities required for prec

28 lines (27 loc) 1.59 kB
/// <reference types="node" /> import { BaseModel } from './BaseModel'; import { UnifiedPath } from '../system/UnifiedPath'; import { NodeModuleIdentifier_string, INodeModule } from '../types'; export declare const NodeModuleNameRegexString = "(?:@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*"; export declare const NodeModuleVersionRegexString = "(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?:[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?"; export declare const NodeModuleIdentifierRegexString = "(?:@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*@(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?:[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?"; export declare const NodeModuleIdentifierRegex: RegExp; export declare class NodeModule extends BaseModel { name: string; version: string; constructor(name: string, version: string); static currentEngineModule(): NodeModule; get identifier(): NodeModuleIdentifier_string; static fromIdentifier(identifier: NodeModuleIdentifier_string): NodeModule; toJSON(): { name: string; version: string; }; static fromJSON(json: string | INodeModule): NodeModule; static fromNodeModulePath(path: UnifiedPath): NodeModule | undefined; toBuffer(): Buffer; static consumeFromBuffer(buffer: Buffer): { instance: NodeModule; remainingBuffer: Buffer; }; }