New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-diode

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-diode - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

7

lib/network-layer/DiodeDefaultNetworkLayer.js

@@ -5,2 +5,4 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -49,3 +51,6 @@

var apiUrl = '' + _this._baseApiEndpoint + url;
var fetchParams = { method: method, headers: headers };
var fetchParams = {
method: method,
headers: _extends({}, headers, query.headers)
};

@@ -52,0 +57,0 @@ /* istanbul ignore else */

5

lib/query/DiodeQueryRequest.js

@@ -36,2 +36,4 @@ 'use strict';

function createQueryRequest(url, method, payload) {
var headers = arguments.length <= 3 || arguments[3] === undefined ? {} : arguments[3];
return {

@@ -41,3 +43,4 @@ pending: false,

method: method,
payload: payload
payload: payload,
headers: headers
};

@@ -44,0 +47,0 @@ }

{
"name": "react-diode",
"version": "0.2.2",
"version": "0.2.3",
"description": "Endpoint agnostic, unidirectional data fetching for React applications",

@@ -5,0 +5,0 @@ "main": "lib/DiodePublic.js",

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