Socket
Socket
Sign inDemoInstall

wreck

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wreck - npm Package Compare versions

Comparing version 6.1.0 to 6.2.0

5

lib/index.js

@@ -424,3 +424,8 @@

internals.Client.prototype.patch = function (uri, options, callback) {
return this._shortcutWrap('PATCH', uri, options, callback);
};
internals.Client.prototype.put = function (uri, options, callback) {

@@ -427,0 +432,0 @@

2

package.json
{
"name": "wreck",
"description": "HTTP Client Utilities",
"version": "6.1.0",
"version": "6.2.0",
"repository": "git://github.com/hapijs/wreck",

@@ -6,0 +6,0 @@ "main": "lib/index",

@@ -148,3 +148,17 @@ ![wreck Logo](https://raw.github.com/hapijs/wreck/master/images/wreck.png)

### `patch(uri, [options], callback)`
Convenience method for PATCH operations.
- `uri` - The URI of the requested resource.
- `options` - Optional config object containing settings for both `request` and
`read` operations.
- `callback` - The callback function using the signature `function (err, response, payload)` where:
- `err` - Any error that may have occurred during handling of the request.
- `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage)
object, which is also a readable stream.
- `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON).
Returns an instance of the node.js [ClientRequest](http://nodejs.org/api/http.html#http_class_http_clientrequest) object.
### `put(uri, [options], callback)`

@@ -151,0 +165,0 @@

Sorry, the diff of this file is too big to display

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