synapi-client
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -319,3 +319,3 @@ 'use strict'; | ||
var _options = options || {}; | ||
_options.method = 'get'; | ||
_options.method = 'GET'; | ||
return this.fetch(path, _options); | ||
@@ -327,3 +327,3 @@ } | ||
var _options = this._buildOptionsWithBody('post', body, options); | ||
_options.method = 'post'; | ||
_options.method = 'POST'; | ||
return this.fetch(path, _options); | ||
@@ -335,3 +335,3 @@ } | ||
var _options = this._buildOptionsWithBody('put', body, options); | ||
_options.method = 'put'; | ||
_options.method = 'PUT'; | ||
return this.fetch(path, _options); | ||
@@ -343,3 +343,3 @@ } | ||
var _options = this._buildOptionsWithBody('patch', body, options); | ||
_options.method = 'patch'; | ||
_options.method = 'PATCH'; | ||
return this.fetch(path, _options); | ||
@@ -351,3 +351,3 @@ } | ||
var _options = options || {}; | ||
_options.method = 'delete'; | ||
_options.method = 'DELETE'; | ||
return this.fetch(path, _options); | ||
@@ -354,0 +354,0 @@ } |
{ | ||
"name": "synapi-client", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A wrapper for fetch to make things more easier", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# synapi-client | ||
Wrapper for fetch that adds shortcuts, middleware and events. This is written and maintained by the fine folks at [Synapse Studios](synapsestudios.com). Our goal is to maintain the fetch api while adding in sensible defaults and hooks to request lifecycle events. | ||
Wrapper for fetch that adds shortcuts, middleware and events. This is written and maintained by the fine folks at [Synapse Studios](http://www.synapsestudios.com). Our goal is to maintain the fetch api while adding in sensible defaults and hooks to request lifecycle events. | ||
@@ -5,0 +5,0 @@ This library is inspired by libraries like [Fetch+](https://github.com/RickWong/fetch-plus) and [http-client](https://github.com/mjackson/http-client). There are differences in the details of how our middleware and events work. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24672