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

@naturalcycles/time-lib

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/time-lib - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.9.0](https://github.com/NaturalCycles/time-lib/compare/v1.8.0...v1.9.0) (2020-02-24)
### Features
* ms() to round hours after 24h ([4716cc3](https://github.com/NaturalCycles/time-lib/commit/4716cc3c4b5e937bee77367de5b116bacbfbfd0d))
# [1.8.0](https://github.com/NaturalCycles/time-lib/compare/v1.7.0...v1.8.0) (2020-02-10)

@@ -2,0 +9,0 @@

7

dist-esm/time.util.js

@@ -34,5 +34,8 @@ export const TS_2018_06_21 = 1529539200;

}
// >= 1hr
return `${hrs}h${min}m${sec}s`;
if (hrs < 24) {
return `${hrs}h${min}m`;
}
// >= 24h
return `${Math.round(hrs + min / 60)}h`;
}
//# sourceMappingURL=time.util.js.map

@@ -37,6 +37,9 @@ "use strict";

}
// >= 1hr
return `${hrs}h${min}m${sec}s`;
if (hrs < 24) {
return `${hrs}h${min}m`;
}
// >= 24h
return `${Math.round(hrs + min / 60)}h`;
}
exports.ms = ms;
//# sourceMappingURL=time.util.js.map

@@ -10,3 +10,3 @@ {

"devDependencies": {
"@naturalcycles/dev-lib": "^9.0.2",
"@naturalcycles/dev-lib": "^10.2.0",
"@naturalcycles/js-lib": "^8.2.1",

@@ -43,3 +43,3 @@ "@naturalcycles/test-lib": "^1.0.0",

},
"version": "1.8.0",
"version": "1.9.0",
"description": "Date/time related API, based on DayJS",

@@ -46,0 +46,0 @@ "keywords": [

@@ -38,4 +38,8 @@ export const TS_2018_06_21 = 1529539200

// >= 1hr
return `${hrs}h${min}m${sec}s`
if (hrs < 24) {
return `${hrs}h${min}m`
}
// >= 24h
return `${Math.round(hrs + min / 60)}h`
}

Sorry, the diff of this file is not supported yet

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