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

server-socket-framework-jps

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

server-socket-framework-jps - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

dist/job/JobManager.js

@@ -54,10 +54,10 @@ "use strict";

if (config.isDailyJob) {
const now = parseInt((0, moment_1.default)().format('YYYYMMDDHHmm'));
nextExecuteTime = parseInt((0, moment_1.default)(`${(0, moment_1.default)().format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm'));
const now = parseFloat((0, moment_1.default)().format('YYYYMMDDHHmm'));
nextExecuteTime = parseFloat((0, moment_1.default)(`${(0, moment_1.default)().format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm'));
if (nextExecuteTime < now) {
nextExecuteTime = parseInt((0, moment_1.default)(`${(0, moment_1.default)().add(1, 'day').format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm'));
nextExecuteTime = parseFloat((0, moment_1.default)(`${(0, moment_1.default)().add(1, 'day').format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm'));
}
}
else {
nextExecuteTime = parseInt((0, moment_1.default)().add(config.executeEveryMinutes, 'minutes').format('YYYYMMDDHHmm'));
nextExecuteTime = parseFloat((0, moment_1.default)().add(config.executeEveryMinutes, 'minutes').format('YYYYMMDDHHmm'));
}

@@ -64,0 +64,0 @@ return nextExecuteTime;

{
"name": "server-socket-framework-jps",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple socket framework for persistent chat rooms and data messages",

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

Sorry, the diff of this file is not supported yet

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