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

nuke-refresh-control

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-refresh-control - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

38

lib/index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
value: true
});
var _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; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -39,24 +37,22 @@

var RefreshControl = function (_Component) {
_inherits(RefreshControl, _Component);
_inherits(RefreshControl, _Component);
function RefreshControl() {
_classCallCheck(this, RefreshControl);
function RefreshControl() {
_classCallCheck(this, RefreshControl);
return _possibleConstructorReturn(this, (RefreshControl.__proto__ || Object.getPrototypeOf(RefreshControl)).apply(this, arguments));
}
_createClass(RefreshControl, [{
key: 'render',
value: function render() {
// temp
var extraConfigs = appInfo.appName === 'QN' ? { JDYHeaderStyle: "endAnamtionStyle" } : {};
if (isWeex) {
return (0, _rax.createElement)(_raxRefreshcontrol2.default, _extends({}, extraConfigs, this.props));
} else {
return (0, _rax.createElement)(_nukeView2.default, this.props);
}
return _possibleConstructorReturn(this, (RefreshControl.__proto__ || Object.getPrototypeOf(RefreshControl)).apply(this, arguments));
}
}]);
return RefreshControl;
_createClass(RefreshControl, [{
key: 'render',
value: function render() {
if (isWeex) {
return (0, _rax.createElement)(_raxRefreshcontrol2.default, this.props);
} else {
return (0, _rax.createElement)(_nukeView2.default, this.props);
}
}
}]);
return RefreshControl;
}(_rax.Component);

@@ -63,0 +59,0 @@

{
"name": "nuke-refresh-control",
"version": "0.0.5",
"version": "0.0.6",
"description": "含 h5 版本的下拉刷新组件",
"main": "lib/index",
"files": [
"lib",
"docs",
"theme",
"README.md",
"HISTORY.md"
],
"keywords": [
"nuke",
"pull-to-refresh",
"refresh-control"
],
"files": ["lib", "docs", "theme", "README.md", "HISTORY.md"],
"keywords": ["nuke", "pull-to-refresh", "refresh-control"],
"author": {

@@ -19,0 +9,0 @@ "name": "leanhunter",

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