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

synapi-client

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synapi-client - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

10

lib/client.js

@@ -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.

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