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

@boulevard/duration-select

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boulevard/duration-select - npm Package Compare versions

Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8

2

package.json
{
"name": "@boulevard/duration-select",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "A component for intelligently selecting durations.",

@@ -5,0 +5,0 @@ "main": "index.ts",

@@ -123,2 +123,4 @@ export interface DurationSelectInterface {

let hourShortcut: string = noSpacesOrMinsReadoutArray[splitIndex - 1];
// Split the hours from the minutes on splitIndex character

@@ -129,4 +131,7 @@ const modelSplitOnHoursShortcut: string[] = noSpacesOrMinsReadoutArray.join('')

const hours: number = +(modelSplitOnHoursShortcut[0]) || 0;
const minutes: number = +(modelSplitOnHoursShortcut[1]) || 0;
let minutes: number = +(modelSplitOnHoursShortcut[1]) || 0;
if (hourShortcut === '.') {
minutes = 60 * parseFloat(`0.${minutes}`);
}
// Convert hours to minutes and add to minutes for total duration in minutes

@@ -133,0 +138,0 @@ durationInMinutes = (hours * 60) + minutes;

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