@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.
- package/helpers/getUncommittedChanges.d.ts +1 -0
- package/helpers/isCurrentFolderAGitRepo.d.ts +1 -0
- package/helpers/isHavingUncommittedChanges.d.ts +1 -0
- package/index.cjs +12130 -50695
- package/index.d.ts +2 -3
- package/index.mjs +12855 -51422
- 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 +0,0 @@
|
|
|
1
|
-
export declare function registerAppCrashHandlers(): void;
|
package/helpers/cliClient.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { AxiosResponse } from 'axios';
|
|
2
|
-
import type { AppErrorObj } from '../../../ht-cli/src/server';
|
|
3
|
-
export declare function createCliClient({ HT_CLI_SERVER_HOST, HT_CLI_SERVER_PORT, }: {
|
|
4
|
-
HT_CLI_SERVER_HOST: string;
|
|
5
|
-
HT_CLI_SERVER_PORT: number;
|
|
6
|
-
}): void;
|
|
7
|
-
export type CliRequestResult<RequestBodyType, ResponseBodyType, CustomError> = {
|
|
8
|
-
err: null;
|
|
9
|
-
response: AxiosResponse<ResponseBodyType, RequestBodyType>;
|
|
10
|
-
} | {
|
|
11
|
-
err: CustomError;
|
|
12
|
-
response: null;
|
|
13
|
-
};
|
|
14
|
-
export declare const cliClient: {
|
|
15
|
-
SEND_UNCAUGHT_ERROR({ requestId, errorObj, }: {
|
|
16
|
-
requestId: string;
|
|
17
|
-
errorObj: AppErrorObj;
|
|
18
|
-
}): Promise<CliRequestResult<{
|
|
19
|
-
errorObj: typeof errorObj;
|
|
20
|
-
}, undefined, Error>>;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const killAppAfterTimeout: (timeoutInMinutes: number) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function markAppAsReady(): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AmqpRequestReplayResult, AmqpRequestReplayResultV2, GRPCRequestReplayResult, GRPCRequestReplayResultV2, GraphqlRequestReplayResult, GraphqlRequestReplayResultV2, HTTPRequestReplayResult, HTTPRequestReplayResultV2, KafkaRequestReplayResult, KafkaRequestReplayResultV2, ManualRequestReplayResult, ManualRequestReplayResultV2, ReplayMockSchemaMap } from '../../../utils/types';
|
|
2
|
-
export declare function removeUnicodeFromReplayResultHelper(value: unknown): unknown;
|
|
3
|
-
type ReplayResult = HTTPRequestReplayResult | GRPCRequestReplayResult | KafkaRequestReplayResult | AmqpRequestReplayResult | ManualRequestReplayResult | GraphqlRequestReplayResult;
|
|
4
|
-
type ReplayResultV2 = HTTPRequestReplayResultV2 | GRPCRequestReplayResultV2 | KafkaRequestReplayResultV2 | AmqpRequestReplayResultV2 | ManualRequestReplayResultV2 | GraphqlRequestReplayResultV2;
|
|
5
|
-
export declare function removeInvalidUnicodeFromReplayResult<T extends ReplayResult | ReplayResultV2>(replayResult: T): T;
|
|
6
|
-
export declare function removeInvalidUnicodeFromRootReplayMock(rootReplayMockObj: ReplayMockSchemaMap): ReplayMockSchemaMap;
|
|
7
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type RequestOptions = {
|
|
2
|
-
url: string;
|
|
3
|
-
headers?: Record<string, string>;
|
|
4
|
-
method: string;
|
|
5
|
-
data?: string | Record<string, unknown>;
|
|
6
|
-
query?: Record<string, string>;
|
|
7
|
-
bufferSizeMb?: number;
|
|
8
|
-
};
|
|
9
|
-
type Response = {
|
|
10
|
-
data: unknown;
|
|
11
|
-
status: number;
|
|
12
|
-
headers: unknown;
|
|
13
|
-
};
|
|
14
|
-
export declare function makeSyncHttpRequest({ url, headers, method, data, query, bufferSizeMb, }: RequestOptions): Response;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IS_INSTRUMENTATION_TESTING_ENABLED: boolean;
|
package/server/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type IsSdkReadyForTestResponse = {
|
|
2
|
-
isReady: boolean;
|
|
3
|
-
};
|
|
4
|
-
export type IsAppReadyForTestResponse = {
|
|
5
|
-
isReady: boolean;
|
|
6
|
-
PID: number;
|
|
7
|
-
PPID: number;
|
|
8
|
-
};
|
|
9
|
-
export type GetBeforeReplayHooksRegistrationStatusResponse = {
|
|
10
|
-
isHttpHookRegistered: boolean;
|
|
11
|
-
isGraphqlHookRegistered: boolean;
|
|
12
|
-
};
|
|
13
|
-
export default function startServer(port: number): void;
|