@hypertestco/node-sdk-v3 0.0.1-8 → 0.0.1-81
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/helpers/getUncommittedChanges.d.ts +1 -0
- package/helpers/isCurrentFolderAGitRepo.d.ts +1 -0
- package/helpers/isHavingUncommittedChanges.d.ts +1 -0
- package/index.cjs +12135 -50698
- package/index.d.ts +2 -3
- package/index.mjs +12799 -51364
- package/instrumentation/core/baseClasses/HtInstrumentationMockAbstract.d.ts +2 -2
- package/instrumentation/core/helpers/createNewSpanHelper.d.ts +2 -2
- package/instrumentation/core/helpers/utils.d.ts +1 -1
- package/instrumentation/helpers/utils.d.ts +1 -0
- package/instrumentation/libraries/grpc/utils.d.ts +1 -2
- package/liveCoverage/index.d.ts +3 -0
- package/package.json +1 -1
- package/server/zodSchemaAndTypes.d.ts +962 -876
- package/helpers/appCrashHandlers.d.ts +0 -1
- package/helpers/cliClient.d.ts +0 -21
- package/helpers/generateMockMapForMemoryStore.d.ts +0 -4
- package/helpers/getRootMocks.d.ts +0 -6
- package/helpers/inMemorySpanExporter.d.ts +0 -3
- package/helpers/killAppUnderTest.d.ts +0 -1
- package/helpers/markAppAsReady.d.ts +0 -1
- package/helpers/removeUnicodeFromReplayResult.d.ts +0 -7
- package/helpers/syncWaitPort.d.ts +0 -6
- package/helpers/synchronousHttpCall.d.ts +0 -15
- package/instrumentation/core/helpers/instrumentationTestingMode.d.ts +0 -1
- package/server/index.d.ts +0 -13
|
@@ -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,
|
|
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:
|
|
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) =>
|
|
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;
|
|
@@ -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
|
|
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;
|