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

onix-core

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onix-core - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

15

dist/fn/date/formatTimer.js

@@ -25,5 +25,14 @@ "use strict";

const f = (interval.h === 0) && (interval.i === 0) && (interval.s < 10) && (interval.f > 0) ? "." + padStart_1.default(interval.f.toString(), 3, "0") : "";
result.push(padStart_1.default(interval.h.toString(), 2, "0") + ":" +
padStart_1.default(interval.i.toString(), 2, "0") + ":" +
padStart_1.default(interval.s.toString(), 2, "0") + f);
if (interval.h > 0) {
result.push(padStart_1.default(interval.h.toString(), 2, "0") + ":" +
padStart_1.default(interval.i.toString(), 2, "0") + ":" +
padStart_1.default(interval.s.toString(), 2, "0") + f);
}
else if (interval.i > 0) {
result.push(padStart_1.default(interval.i.toString(), 2, "0") + ":" +
padStart_1.default(interval.s.toString(), 2, "0") + f);
}
else {
result.push(padStart_1.default(interval.s.toString(), 2, "0") + f);
}
}

@@ -30,0 +39,0 @@ }

2

package.json
{
"name": "onix-core",
"version": "3.1.0",
"version": "3.1.1",
"description": "Onix library core",

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

@@ -31,8 +31,18 @@ import padStart from 'lodash-es/padStart';

const f = (interval.h === 0) && (interval.i === 0) && (interval.s < 10) && (interval.f > 0) ? "." + padStart(interval.f.toString(), 3, "0") : "";
result.push(
padStart(interval.h.toString(), 2, "0") + ":" +
padStart(interval.i.toString(), 2, "0") + ":" +
padStart(interval.s.toString(), 2, "0") + f
);
if (interval.h > 0) {
result.push(
padStart(interval.h.toString(), 2, "0") + ":" +
padStart(interval.i.toString(), 2, "0") + ":" +
padStart(interval.s.toString(), 2, "0") + f
);
} else if (interval.i > 0) {
result.push(
padStart(interval.i.toString(), 2, "0") + ":" +
padStart(interval.s.toString(), 2, "0") + f
);
} else {
result.push(
padStart(interval.s.toString(), 2, "0") + f
);
}
}

@@ -39,0 +49,0 @@ }

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