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

react-whereto

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-whereto - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

25

lib/DispatcherProvider.js

@@ -18,2 +18,14 @@ "use strict";

function _extends() { _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; }; return _extends.apply(this, arguments); }
const omit = (obj, excludeKey) => Object.keys(obj).reduce((memo, key) => {
if (excludeKey === key) {
return memo;
}
return _extends({}, memo, {
[key]: obj[key]
});
}, {});
class DispatcherProviderBase extends _react.default.Component {

@@ -37,10 +49,8 @@ constructor(...args) {

writable: true,
value: prevLocation => {
const {
location
} = this.props.history;
value: location => {
if (!(0, _lodash.default)(omit(location, 'key'), omit(this.lastLocation, 'key'))) {
this.props.dispatcher.getThunkForValidRoutes(location, this.lastLocation)(this.getDispatch());
}
if (!(0, _lodash.default)(location, prevLocation)) {
this.props.dispatcher.getThunkForValidRoutes(location, prevLocation)(this.getDispatch());
}
this.lastLocation = location;
}

@@ -54,2 +64,3 @@ }), _temp;

} = this.props;
this.lastLocation = history.location;
this.unsubHistory = history.listen(this.historyUpdate);

@@ -56,0 +67,0 @@ }

{
"name": "react-whereto",
"version": "0.0.6",
"version": "0.0.7",
"scripts": {

@@ -5,0 +5,0 @@ "clean": "rimraf lib",

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