@travetto/net
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -7,3 +7,3 @@ { | ||
"dependencies": { | ||
"@travetto/base": "^0.4.3" | ||
"@travetto/base": "^0.4.4" | ||
}, | ||
@@ -23,4 +23,4 @@ "description": "Network utilities of the travetto framework", | ||
}, | ||
"version": "0.4.3", | ||
"gitHead": "0e54fb6234288aef21ee43d845cec90e1a966a8f" | ||
"version": "0.4.4", | ||
"gitHead": "cd17462f7331b7a5a74181cfa9a1573b7cd26f9e" | ||
} |
travetto: Net | ||
=== | ||
**Install: primary** | ||
```bash | ||
$ npm install @travetto/net | ||
``` | ||
Network utilities used by the framework. | ||
@@ -9,6 +14,10 @@ | ||
**Code: Structure of request commands** | ||
```typescript | ||
request(opts: http.RequestOptions & { url: string }, data?: any): Promise<string>; | ||
request(opts: http.RequestOptions & { url: string, pipeTo: any }, data?: any): Promise<http.IncomingMessage>; | ||
requestJSON<T, U>(opts: http.RequestOptions & { url: string }, data?: U): Promise<T>; | ||
class HttpRequest { | ||
static async exec(opts: ExecArgs, payload?: any): Promise<string>; | ||
static async exec(opts: ExecArgs & { pipeTo: NodeJS.WritableStream }, payload?: any): Promise<http.IncomingMessage>; | ||
static async exec(opts: ExecArgs & { pipeTo?: NodeJS.WritableStream }, payload?: any): Promise<string | http.IncomingMessage>; | ||
static async execJSON<T, U = any>(opts: ExecArgs, payload?: U): Promise<T>; | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7874
22
Updated@travetto/base@^0.4.4