nuke-refresh-control
Advanced tools
Comparing version 1.0.1 to 2.0.0
# Changelog | ||
## 2.0.0 / 2018-03-22 | ||
* [[0f996fd](http://gitlab.alibaba-inc.com/nuke/refresh-control/commit/0f996fd5d6799cbeffaae684e6314ef11f6f6ce2)] - `feat` update dependencies | ||
## 1.0.1 / 2017-11-23 | ||
@@ -5,0 +9,0 @@ |
@@ -35,3 +35,4 @@ 'use strict'; | ||
var isWeex = _nukeEnv2.default.isWeex, | ||
isWeb = _nukeEnv2.default.isWeb; | ||
isWeb = _nukeEnv2.default.isWeb, | ||
appInfo = _nukeEnv2.default.appInfo; | ||
@@ -50,6 +51,8 @@ var RefreshControl = function (_Component) { | ||
value: function render() { | ||
// temp | ||
var extraConfigs = appInfo.appName === 'QN' ? { JDYHeaderStyle: "endAnamtionStyle" } : {}; | ||
if (isWeex) { | ||
return (0, _rax.createElement)(_raxRefreshcontrol2.default, this.props); | ||
return (0, _rax.createElement)(_raxRefreshcontrol2.default, _extends({}, extraConfigs, this.props)); | ||
} else { | ||
return (0, _rax.createElement)(_nukeView2.default, _extends({}, this.props, { refreshTag: 'webRefesh' })); | ||
return (0, _rax.createElement)(_nukeView2.default, this.props); | ||
} | ||
@@ -62,5 +65,3 @@ } | ||
RefreshControl.displayName = 'RefreshControl'; | ||
exports.default = RefreshControl; | ||
module.exports = exports['default']; |
{ | ||
"name": "nuke-refresh-control", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "含 h5 版本的下拉刷新组件", | ||
@@ -48,4 +48,4 @@ "main": "lib/index", | ||
"dependencies": { | ||
"nuke-view": "^1.x.x", | ||
"nuke-env": "^1.x.x", | ||
"nuke-view": "^2.x.x", | ||
"nuke-env": "^2.x.x", | ||
"rax-refreshcontrol": "^0.4.20" | ||
@@ -52,0 +52,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7905
57
0
+ Addednuke-env@2.3.12(transitive)
+ Addednuke-helper@2.3.12(transitive)
+ Addednuke-view@2.3.12(transitive)
- Removednuke-env@1.0.1(transitive)
- Removednuke-helper@0.0.11(transitive)
- Removednuke-view@1.0.7(transitive)
- Removedrax-view@0.4.20(transitive)
- Removedstyle-unit@0.4.20(transitive)
- Removedua-parser-js@0.7.39(transitive)
Updatednuke-env@^2.x.x
Updatednuke-view@^2.x.x