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.33 to 1.0.34

6

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

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

return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var item, buttonVisible, buttonText, start, currentTime, issue_start_time, issue_end_time, statue, end;
var item, buttonVisible, buttonText, start, currentTime, issue_start_time, issue_end_time, statue, stock_num, end;
return regeneratorRuntime.wrap(function _callee$(_context) {

@@ -51,3 +51,3 @@ while (1) {

currentTime = _context.sent;
issue_start_time = item.issue_start_time, issue_end_time = item.issue_end_time, statue = item.statue;
issue_start_time = item.issue_start_time, issue_end_time = item.issue_end_time, statue = item.statue, stock_num = item.stock_num;
start = dateToTime(issue_start_time);

@@ -57,3 +57,3 @@ end = dateToTime(issue_end_time);

buttonText = buttonVisible ? '立即领取' : buttonText;
buttonText = end.time < currentTime ? '已抢完' : buttonText;
buttonText = end.time < currentTime || !stock_num ? '已抢完' : buttonText;
buttonText = statue === '1001' ? '去使用' : buttonText;

@@ -60,0 +60,0 @@ buttonText = statue === '1002' ? '已使用' : buttonText;

{
"name": "big-white-calendar",
"description": "big-white-calendar",
"version": "1.0.33",
"version": "1.0.34",
"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