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

big-white-calendar

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-white-calendar - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

2

es/components/template-user-discount/index.js

@@ -22,3 +22,3 @@ import regeneratorRuntime from "regenerator-runtime";

didUpdate: function didUpdate(prevProps) {
if (prevProps.show !== this.props.show) {
if (prevProps.show !== this.props.show || this.props.dataArr !== prevProps.dataArr) {
this.onInitData();

@@ -25,0 +25,0 @@ }

@@ -25,3 +25,3 @@ import regeneratorRuntime from "regenerator-runtime";

didUpdate: function didUpdate(prevProps) {
if (this.props.dataArr !== prevProps.dataArr) {
if (prevProps.show !== this.props.show || this.props.dataArr !== prevProps.dataArr) {
this.onInitData();

@@ -28,0 +28,0 @@ }

@@ -25,10 +25,15 @@ import regeneratorRuntime from "regenerator-runtime";

didMount: function didMount() {
this.initData();
this.init();
},
didUpdate: function didUpdate(prevProps) {
if (this.props.data !== prevProps.data) {
this.updateData();
}
},
methods: {
initData: function initData() {
getData: function getData() {
var _this = this;
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var currentTime, activeKey, data, header, left;
var currentTime, data, header;
return regeneratorRuntime.wrap(function _callee$(_context) {

@@ -43,3 +48,2 @@ while (1) {

currentTime = _context.sent;
activeKey = '';
data = _this.props.data;

@@ -65,2 +69,37 @@ header = data.map(function (arr) {

});
return _context.abrupt("return", {
currentTime: currentTime,
header: header,
couponData: data.filter(function (c) {
return c.length;
})
});
case 6:
case "end":
return _context.stop();
}
}
}, _callee);
}))();
},
init: function init() {
var _this2 = this;
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var _yield$_this2$getData, header, currentTime, couponData, activeKey, left;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return _this2.getData();
case 2:
_yield$_this2$getData = _context2.sent;
header = _yield$_this2$getData.header;
currentTime = _yield$_this2$getData.currentTime;
couponData = _yield$_this2$getData.couponData;
activeKey = '';
activeKey = header.findIndex(function (c) {

@@ -73,20 +112,51 @@ return dateToTime(c.item.issue_end_time).time > currentTime;

_this.setData({
_this2.setData({
activeKey: activeKey,
left: left,
header: header,
currentTime: currentTime,
activeKey: activeKey,
left: left,
couponData: data.filter(function (c) {
return c.length;
})
couponData: couponData
});
case 11:
case 12:
case "end":
return _context.stop();
return _context2.stop();
}
}
}, _callee);
}, _callee2);
}))();
},
updateData: function updateData() {
var _this3 = this;
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var _yield$_this3$getData, header, currentTime, couponData;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return _this3.getData();
case 2:
_yield$_this3$getData = _context3.sent;
header = _yield$_this3$getData.header;
currentTime = _yield$_this3$getData.currentTime;
couponData = _yield$_this3$getData.couponData;
_this3.setData({
header: header,
currentTime: currentTime,
couponData: couponData
});
case 7:
case "end":
return _context3.stop();
}
}
}, _callee3);
}))();
},
onTabTap: function onTabTap(e) {

@@ -93,0 +163,0 @@ var dataset = e.target.dataset;

{
"name": "big-white-calendar",
"description": "big-white-calendar",
"version": "1.0.28",
"version": "1.0.29",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

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