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

bequest

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bequest - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

29

dist/ajax.js

@@ -92,4 +92,4 @@ var Bequest = (function () {

}, {
key: 'put',
value: function put(url) {
key: 'patch',
value: function patch(url) {
for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {

@@ -99,2 +99,11 @@ args[_key3 - 1] = arguments[_key3];

return Ajax.request.apply(Ajax, [url, 'PATCH'].concat(args));
}
}, {
key: 'put',
value: function put(url) {
for (var _len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
args[_key4 - 1] = arguments[_key4];
}
return Ajax.request.apply(Ajax, [url, 'PUT'].concat(args));

@@ -105,4 +114,4 @@ }

value: function head(url) {
for (var _len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
args[_key4 - 1] = arguments[_key4];
for (var _len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
args[_key5 - 1] = arguments[_key5];
}

@@ -115,4 +124,4 @@

value: function del(url) {
for (var _len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
args[_key5 - 1] = arguments[_key5];
for (var _len6 = arguments.length, args = Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {
args[_key6 - 1] = arguments[_key6];
}

@@ -125,4 +134,4 @@

value: function options(url) {
for (var _len6 = arguments.length, args = Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {
args[_key6 - 1] = arguments[_key6];
for (var _len7 = arguments.length, args = Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {
args[_key7 - 1] = arguments[_key7];
}

@@ -151,4 +160,4 @@

value: function request(url) {
for (var _len7 = arguments.length, args = Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {
args[_key7 - 1] = arguments[_key7];
for (var _len8 = arguments.length, args = Array(_len8 > 1 ? _len8 - 1 : 0), _key8 = 1; _key8 < _len8; _key8++) {
args[_key8 - 1] = arguments[_key8];
}

@@ -155,0 +164,0 @@

@@ -31,2 +31,6 @@ /* eslint-env browser */

static patch(url, ...args) {
return Ajax.request(url, 'PATCH', ...args);
}
static put(url, ...args) {

@@ -33,0 +37,0 @@ return Ajax.request(url, 'PUT', ...args);

{
"name": "bequest",
"version": "1.7.0",
"version": "1.8.0",
"description": "An ajax class",

@@ -37,3 +37,3 @@ "main": "dist/ajax.js",

"phantomjs-prebuilt": "2.1.15",
"scriptkit": "0.2.0",
"scriptkit": "0.4.0",
"tap-spec": "4.1.1",

@@ -40,0 +40,0 @@ "tape-rollup": "4.6.4",

@@ -65,3 +65,3 @@ import Ajax from '../index';

test('Generic', assert => {
const methods = ['get', 'post', 'put', 'head', 'del', 'options'];
const methods = ['get', 'patch', 'post', 'put', 'head', 'del', 'options'];
let response = null;

@@ -68,0 +68,0 @@ const callback = (e, a) => { response = a; };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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