azure-common
Advanced tools
Comparing version 0.9.13 to 0.9.14
@@ -121,2 +121,15 @@ // | ||
/** | ||
* Creates a new patch request web resource. | ||
* | ||
* @param {string} path The path for the patch operation. | ||
* @return {WebResource} A new webresource with a patch operation for the given path. | ||
*/ | ||
WebResource.patch = function (path) { | ||
var webResource = new WebResource(); | ||
webResource.path = path ? encodeSpecialCharacters(path) : null; | ||
webResource.method = HttpConstants.HttpVerbs.PATCH; | ||
return webResource; | ||
}; | ||
/** | ||
* Specifies a custom property in the web resource. | ||
@@ -123,0 +136,0 @@ * |
@@ -2687,3 +2687,4 @@ // | ||
MERGE: 'MERGE', | ||
HEAD: 'HEAD' | ||
HEAD: 'HEAD', | ||
PATCH: 'PATCH' | ||
}, | ||
@@ -2690,0 +2691,0 @@ |
@@ -11,5 +11,6 @@ { | ||
"Rodrigues, Andre <andrerod@microsoft.com>", | ||
"Tavares, Chris <ctavares@microsoft.com>" | ||
"Tavares, Chris <ctavares@microsoft.com>", | ||
"Kulshrestha, Ankur <ankurkul@microsoft.com>" | ||
], | ||
"version": "0.9.13", | ||
"version": "0.9.14", | ||
"description": "Microsoft Azure Common Client Library for node", | ||
@@ -16,0 +17,0 @@ "tags": [ |
292050
8385