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.3 to 0.2.4

2

lib/container/DiodeContainer.js

@@ -81,3 +81,3 @@ 'use strict';

var containerName = 'Diode(' + componentName + ')';
var query = new _DiodeContainerQuery2.default(spec.queries, spec.children);
var query = new _DiodeContainerQuery2.default(componentName, spec.queries, spec.children);

@@ -84,0 +84,0 @@ var Container = void 0;

@@ -21,3 +21,3 @@ 'use strict';

function DiodeContainerQuery(queries, children) {
function DiodeContainerQuery(componentName, queries, children) {
_classCallCheck(this, DiodeContainerQuery);

@@ -28,2 +28,3 @@

this._componentName = componentName;
this._queries = queries;

@@ -85,4 +86,6 @@ this._children = children || [];

(0, _deepExtend2.default)(existingQueryType.params, query.params);
} else if (query.type) {
_this._queryTypeMap[query.type] = query;
} else {
_this._queryTypeMap[query.type] = query;
throw new Error('Invalid query type in query key ' + key + ' at component ' + _this._componentName);
}

@@ -165,3 +168,3 @@ });

return console.warn( // eslint-disable-line no-console
'Found same query key (%s) with different type (%s and %s)', key, existingQuery.type, childQuery.type);
'Different query type for same query key %s: %s (%s) and %s (%s)', key, _this3._componentName, existingQuery.type, child.componentName, childQuery.type);
}

@@ -168,0 +171,0 @@

{
"name": "react-diode",
"version": "0.2.3",
"version": "0.2.4",
"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