api-testing
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -44,3 +44,3 @@ 'use strict'; | ||
*/ | ||
async request(endpoint, method, params = {}, headers = {}) { | ||
request(endpoint, method, params = {}, headers = {}) { | ||
let req; | ||
@@ -92,3 +92,3 @@ endpoint = this.pathPrefix + endpoint; | ||
*/ | ||
async get(endpoint, params = {}, headers = {}) { | ||
get(endpoint, params = {}, headers = {}) { | ||
return this.request(endpoint, 'GET', params, headers); | ||
@@ -106,3 +106,3 @@ } | ||
*/ | ||
async post(endpoint, params = {}, headers = {}) { | ||
post(endpoint, params = {}, headers = {}) { | ||
const updatedHeaders = this._objectKeysToLowerCase(headers); | ||
@@ -121,3 +121,3 @@ return this.request(endpoint, 'POST', params, Object.assign({ 'content-type': 'application/json' }, updatedHeaders)); | ||
*/ | ||
async put(endpoint, params = {}, headers = {}) { | ||
put(endpoint, params = {}, headers = {}) { | ||
const updatedHeaders = this._objectKeysToLowerCase(headers); | ||
@@ -136,3 +136,3 @@ return this.request(endpoint, 'PUT', params, Object.assign({ 'content-type': 'application/json' }, updatedHeaders)); | ||
*/ | ||
async del(endpoint, params = {}, headers = {}) { | ||
del(endpoint, params = {}, headers = {}) { | ||
return this.request(endpoint, 'DELETE', params, headers); | ||
@@ -139,0 +139,0 @@ } |
{ | ||
"name": "api-testing", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62244
1