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

alt-resolver

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alt-resolver - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

13

lib/resolver.js

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

this.state = this.resolveState();
this.state = this.resolveState(props);
}

@@ -64,3 +64,3 @@

value: function resolveState(nextProps) {
var resolve = this.config.resolve ? toResolverProps(this.call(this.config.resolve), nextProps) : {};
var resolve = this.config.resolve ? toResolverProps(this.call(this.config.resolve, nextProps), nextProps) : {};
return { resolve: resolve };

@@ -71,6 +71,13 @@ }

value: function componentWillReceiveProps(nextProps) {
if (this.config.willReceiveProps) this.call(this.config.willReceiveProps);
if (this.config.willReceiveProps) {
this.call(this.config.willReceiveProps, nextProps);
}
this.setState(this.resolveState(nextProps));
}
}, {
key: 'storeDidChange',
value: function storeDidChange() {
this.setState(this.resolveState(this.props));
}
}, {
key: 'render',

@@ -77,0 +84,0 @@ value: function render() {

{
"name": "alt-resolver",
"version": "0.0.1",
"version": "0.1.0",
"description": "A connect to stores that works with react resolver",

@@ -9,2 +9,3 @@ "main": "lib/resolver.js",

"clean": "rimraf lib",
"prepublish": "npm run build",
"pretest": "npm run clean && npm run transpile",

@@ -11,0 +12,0 @@ "test": "babel-node test/index.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