New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hcode-core

Package Overview
Dependencies
Maintainers
2
Versions
633
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hcode-core - npm Package Compare versions

Comparing version 0.0.61 to 0.0.62

5

lib/functions/humanSeconds/index.js

@@ -6,3 +6,6 @@ "use strict";

const date = new Date(seconds * 1000).toISOString();
if (seconds < 3600) {
if (seconds < 600) {
return date.substr(15, 4);
}
else if (seconds < 3600) {
return date.substr(14, 5);

@@ -9,0 +12,0 @@ }

2

package.json
{
"name": "hcode-core",
"version": "0.0.61",
"version": "0.0.62",
"description": "Hcode Core",

@@ -5,0 +5,0 @@ "types": "typings.d.ts",

export function humanSeconds(seconds: number): string {
const date = new Date(seconds * 1000).toISOString();
if (seconds < 3600) {
if (seconds < 600) {
return date.substr(15, 4);
} else if (seconds < 3600) {
return date.substr(14, 5);

@@ -6,0 +8,0 @@ } else {

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