@testring/http-api
Advanced tools
@@ -29,2 +29,5 @@ "use strict"; | ||
| } | ||
| send(options) { | ||
| return this.sendRequest(Object.assign({}, options)); | ||
| } | ||
| isValidData(data) { | ||
@@ -31,0 +34,0 @@ return (data !== null && data !== undefined); |
+6
-6
| { | ||
| "name": "@testring/http-api", | ||
| "version": "0.2.7", | ||
| "version": "0.2.8", | ||
| "main": "./dist/index.js", | ||
@@ -13,7 +13,7 @@ "types": "./src/index.ts", | ||
| "dependencies": { | ||
| "@testring/logger": "^0.2.7", | ||
| "@testring/pluggable-module": "^0.2.7", | ||
| "@testring/test-utils": "^0.2.7", | ||
| "@testring/transport": "^0.2.7", | ||
| "@testring/types": "^0.2.7", | ||
| "@testring/logger": "^0.2.8", | ||
| "@testring/pluggable-module": "^0.2.8", | ||
| "@testring/test-utils": "^0.2.8", | ||
| "@testring/transport": "^0.2.8", | ||
| "@testring/types": "^0.2.8", | ||
| "@types/nanoid": "^1.0.0", | ||
@@ -20,0 +20,0 @@ "@types/request-promise": "^4.1.42", |
@@ -37,2 +37,6 @@ import { OptionsWithUrl } from 'request-promise'; | ||
| public send(options: OptionsWithUrl): Promise<any> { | ||
| return this.sendRequest({ ...options }); | ||
| } | ||
| private isValidData(data: any): boolean { | ||
@@ -39,0 +43,0 @@ return (data !== null && data !== undefined); |
16912
1.2%399
1.53%Updated
Updated
Updated
Updated