Skip to content

Commit 6e36211

Browse files
committed
add patch method
1 parent b6cc554 commit 6e36211

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

dist/please.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* please-ajax - A small and modern AJAX library.
3-
* @version v1.0.7
3+
* @version v1.0.8
44
* @author Dan Reeves <[email protected]> (http://danreev.es/)
55
* @link https://github.com/fffunction/please
66
* @license MIT
@@ -146,6 +146,11 @@
146146
return xhr('PUT', url, data, options);
147147
};
148148

149+
exports['patch'] = function patch (url, data, opts) {
150+
var options = opts || {};
151+
return xhr('PATCH', url, data, options);
152+
};
153+
149154
exports['post'] = function post (url, data, opts) {
150155
var options = opts || {};
151156
return xhr('POST', url, data, options);

dist/please.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "please-ajax",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "A small and modern AJAX library.",
55
"main": "dist/please.js",
66
"scripts": {

src/please.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@
139139
return xhr('PUT', url, data, options);
140140
};
141141

142+
exports['patch'] = function patch (url, data, opts) {
143+
var options = opts || {};
144+
return xhr('PATCH', url, data, options);
145+
};
146+
142147
exports['post'] = function post (url, data, opts) {
143148
var options = opts || {};
144149
return xhr('POST', url, data, options);

0 commit comments

Comments
 (0)