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

nuke-theme-provider

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-theme-provider - npm Package Compare versions

Comparing version 2.1.4 to 2.1.6

lib/connect-style.js

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

<a name="2.1.6"></a>
## [2.1.6](https://gitlab.alibaba-inc.com/nuke/theme-provider/compare/v2.1.4...v2.1.6) (2018-08-15)
### Bug Fixes
* theme-provider should check if root component exist ([cdba547](https://gitlab.alibaba-inc.com/nuke/theme-provider/commit/cdba547))
<a name="2.1.4"></a>

@@ -8,0 +20,0 @@ ## [2.1.4](https://gitlab.alibaba-inc.com/nuke/theme-provider/compare/v2.1.3...v2.1.4) (2018-08-15)

14

package.json
{
"name": "nuke-theme-provider",
"version": "2.1.4",
"version": "2.1.6",
"description": "主题换肤",

@@ -43,3 +43,3 @@ "main": "lib/index",

"hoist-non-react-statics": "^2.3.0",
"nuke-core": "^2.1.3"
"nuke-core": "^2.1.6"
},

@@ -53,6 +53,6 @@ "devDependencies": {

"eslint-plugin-react": "7.1.0",
"nuke-button": "^2.1.4",
"nuke-dialog": "^2.1.4",
"nuke-env": "^2.1.3",
"nuke-page": "^2.1.4",
"nuke-button": "^2.1.6",
"nuke-dialog": "^2.1.6",
"nuke-env": "^2.1.6",
"nuke-page": "^2.1.6",
"rax-text": "^0.x.x"

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

"license": "Apache",
"gitHead": "8b2a213253ed6cdf6d613a10bea387e80043fa6a"
"gitHead": "9b72a52f7ba75032458a88b2e3beaeb29059b939"
}

@@ -132,7 +132,3 @@ /** @jsx createElement */

const style = nextProps.style;
const finalStyle = this.getFinalStyle(
componentStyle,
nextContext,
style
);
const finalStyle = this.getFinalStyle(componentStyle, nextContext, style);
this.setState({

@@ -182,7 +178,8 @@ style: finalStyle,

this.wrappedInstance = this._root;
Object.keys(this.wrappedInstance).forEach((attr) => {
if (!this[attr]) {
this[attr] = this.wrappedInstance[attr];
}
});
this.wrappedInstance &&
Object.keys(this.wrappedInstance).forEach((attr) => {
if (!this[attr]) {
this[attr] = this.wrappedInstance[attr];
}
});
}

@@ -200,10 +197,3 @@

const { addedProps, style } = this.state;
return (
<WrappedComponent
{...this.props}
{...addedProps}
themeStyle={style}
ref={this.setWrappedInstance}
/>
);
return <WrappedComponent {...this.props} {...addedProps} themeStyle={style} ref={this.setWrappedInstance} />;
}

@@ -210,0 +200,0 @@ }

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