@hypertestco/node-sdk-v3 0.0.1-8 → 0.0.1-80

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.
@@ -1,6 +1,6 @@
1
1
  import { type Span, SpanKind, type Tracer } from '@opentelemetry/api';
2
2
  import { type Debugger } from '../../../../../utils/commonPackages/debug';
3
- import { FunctionTypeEnum, type HtMockMemoryObj, type MockType, OutputStatus } from '../../../../../utils/types';
3
+ import { FunctionTypeEnum, type HtMockMemoryObj, MockType, OutputStatus } from '../../../../../utils/types';
4
4
  import type { Jsonable, JsonableMap } from '../../../../../utils/types/jsonableTypes';
5
5
  import type { HtInstrumentationBase } from './HtInstrumentationBase';
6
6
  export type InstrumentationMockReplayValue<RealOutput, OutputMeta> = {
@@ -77,7 +77,7 @@ export declare abstract class HtInstrumentationMockAbstract<InputMeta extends Js
77
77
  mockVersion: number;
78
78
  mockSymbol: symbol;
79
79
  });
80
- shouldRecordFurtherFn(): boolean;
80
+ shouldRecordFurtherFn(mockType: MockType): boolean;
81
81
  updateFunctionType(functionType: FunctionTypeEnum): void;
82
82
  updateMockImportance(_isImportantMock: boolean): void;
83
83
  getSpan(): Span | null;
@@ -1,8 +1,8 @@
1
1
  import { type Context, type Span, SpanKind, type TimeInput, type Tracer } from '@opentelemetry/api';
2
2
  import type { MockTypeCollector } from '../../../../../utils/types';
3
3
  export declare function defaultAttributesForSpan(mockType: MockTypeCollector): {
4
- mockType: MockTypeCollector;
5
- sdkType: any;
4
+ mockType: import("../../../../../utils/prismaSchema/collectorDb/generatedClient").$Enums.MockTypeCollector;
5
+ sdkType: "Node";
6
6
  serviceId: string;
7
7
  envName: string;
8
8
  };
@@ -6,7 +6,7 @@ import type { Jsonable } from '../../../../../utils/types/jsonableTypes';
6
6
  import type { HtInstrumentation, HtInstrumentationModuleDefinition, HtShimWrapped } from '../types';
7
7
  export declare function isUtf8(input: Buffer): boolean;
8
8
  export declare function isWrapped(func: unknown): func is HtShimWrapped;
9
- export declare const isServerMockType: (mockType: MockTypeCollector) => boolean;
9
+ export declare const isServerMockType: (mockType: MockTypeCollector) => mockType is "HTTP" | "GRAPHQL" | "GRPC" | "KAFKA" | "AMQP" | "MANUAL_REQUEST";
10
10
  export declare const HT_DO_NOT_MOCK: symbol;
11
11
  export declare const HT_SERVER_TYPE: symbol;
12
12
  export declare const IS_ROOT_TRACE_KEY: symbol;
@@ -8,3 +8,4 @@ export declare function remapCoverage(requestCoverage?: {
8
8
  export declare function extractCoverageData(coverage: CoverageMapData): {
9
9
  [filePathAbs: string]: FileCoverageData;
10
10
  };
11
+ export declare function getTotalExecutableLines(fileCoverage: FileCoverageData): any[];
@@ -1,5 +1,4 @@
1
1
  import type { Metadata } from '@grpc/grpc-js';
2
- import type { Metadata as MetadataOfDeprGrpc } from 'grpc';
3
2
  import type { BufferMap, GrpcClientInputMeta, GrpcClientReadableInput, GrpcReadableMetadata, GrpcServerInputMeta, GrpcServerReadableInput, JsonableStringMap } from '../../../../../utils/types/index';
4
3
  import { SamplingMode } from '../../helpers/samplingLogic';
5
4
  export declare const getReadableMetadata: (metadata: Metadata | undefined) => GrpcReadableMetadata;
@@ -25,7 +24,7 @@ export declare const getRealPayload: (readablePayload: unknown, bufferMap: Buffe
25
24
  export declare const setSamplingModeHeaderInServerMetadata: (metadata: Metadata, samplingMode: SamplingMode) => void;
26
25
  export type ClassStore = {
27
26
  Metadata: typeof Metadata;
28
- MetadataOfDeprGrpc: typeof MetadataOfDeprGrpc;
27
+ MetadataOfDeprGrpc: typeof Metadata;
29
28
  };
30
29
  declare const classStore: Map<string, Partial<ClassStore>>;
31
30
  export declare function insertInClassStore(version: string, classStoreObj: Partial<ClassStore>): void;
@@ -0,0 +1,3 @@
1
+ import type { TracerProvider } from '@opentelemetry/api';
2
+ export declare const setHtLiveCoverageTracer: (tracerProvider: TracerProvider) => void;
3
+ export declare function startLiveCodeCoverage(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypertestco/node-sdk-v3",
3
- "version": "0.0.1-8",
3
+ "version": "0.0.1-80",
4
4
  "description": "node-sdk-v3 for hypertest",
5
5
  "private": false,
6
6
  "publishConfig": {