Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/net

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/net - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

6

package.json

@@ -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>;
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc