@testring/types
Advanced tools
| import * as request from 'request'; | ||
| import { OptionsWithUrl } from 'request-promise'; | ||
| export const enum HttpMessageType { | ||
| send = 'sendHttpRequest', | ||
| response = 'responseHttpRequest', | ||
| reject = 'rejectHttpRequest' | ||
| } | ||
| export const enum HttpServerPlugins { | ||
| beforeRequest = 'beforeRequest', | ||
| beforeResponse = 'beforeResponse' | ||
| } | ||
| export interface IHttpResponse { | ||
| response: request.Response; | ||
| uid: string; | ||
| } | ||
| export interface IHttpResponseReject { | ||
| error: request.Response; | ||
| uid: string; | ||
| } | ||
| export interface IHttpRequest { | ||
| request: OptionsWithUrl; | ||
| uid: string; | ||
| } | ||
| export interface IHttpClient { | ||
| post(options: OptionsWithUrl): Promise<any>; | ||
| get(options: OptionsWithUrl): Promise<any>; | ||
| delete(options: OptionsWithUrl): Promise<any>; | ||
| put(options: OptionsWithUrl): Promise<any>; | ||
| } |
+6
-2
| { | ||
| "name": "@testring/types", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "main": "./src/index.ts", | ||
@@ -11,3 +11,7 @@ "types": "./src/index.ts", | ||
| "author": "RingCentral", | ||
| "license": "MIT" | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "@types/request": "^2.47.1", | ||
| "@types/request-promise": "^4.1.41" | ||
| } | ||
| } |
+4
-3
@@ -1,5 +0,4 @@ | ||
| export * from './config'; | ||
| export * from './plugin'; | ||
| export * from './test-run-controller'; | ||
| export * from './pluggable-module'; | ||
| export * from './recorder-backend'; | ||
| export * from './browser-proxy'; | ||
@@ -9,3 +8,5 @@ export * from './test-finder'; | ||
| export * from './transport'; | ||
| export * from './http-api'; | ||
| export * from './logger'; | ||
| export * from './recorder-backend'; | ||
| export * from './config'; | ||
| export * from './plugin'; |
+4
-2
@@ -7,2 +7,3 @@ import { ILoggerServer } from './logger'; | ||
| import { IBrowserProxyController } from './browser-proxy'; | ||
| import { IHttpClient } from './http-api'; | ||
@@ -13,8 +14,9 @@ export type PluginConfig = object | null; | ||
| export interface IPluginDestinationMap { | ||
| export interface IPluginModules { | ||
| logger: ILoggerServer & IPluggableModule; | ||
| testFinder: ITestFinder & IPluggableModule; | ||
| testFinder?: ITestFinder & IPluggableModule; | ||
| testWorker: ITestWorker & IPluggableModule; | ||
| testRunController: ITestRunController & IPluggableModule; | ||
| browserProxy: IBrowserProxyController & IPluggableModule; | ||
| httpClientInstance: IHttpClient; | ||
| } |
13341
8.35%13
8.33%380
9.2%2
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added