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

@xxskyy/zh

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xxskyy/zh - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

1

lib/helpers/timerCalc.d.ts
export declare const timerCalc: {
countDownTo: (time: number, timeNow?: number) => string;
currentTime: () => number;

@@ -3,0 +4,0 @@ getLastFullHour: (time?: number) => number;

@@ -44,3 +44,19 @@ "use strict";

};
var countDownTo = function (time, timeNow) {
if (timeNow === void 0) { timeNow = currentTime(); }
// , timeNow = this.currentTime()
var timeLeft = time - timeNow;
if (timeLeft > 0) {
var minutes = Math.floor(timeLeft / 60);
var seconds = timeLeft % 60;
var showM = minutes < 10 ? "0".concat(minutes) : minutes;
var showS = seconds < 10 ? "0".concat(seconds) : seconds;
return "".concat(showM, ":").concat(showS);
}
else {
return "00:00";
}
};
exports.timerCalc = {
countDownTo: countDownTo,
currentTime: currentTime,

@@ -47,0 +63,0 @@ getLastFullHour: getLastFullHour,

2

package.json
{
"name": "@xxskyy/zh",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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