Socket
Socket
Sign inDemoInstall

unitimer

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.1 to 3.5.1

8

lib/index.js

@@ -32,3 +32,4 @@ var now = require('./now')

return {
start: function (id = 'default') {
start: function (id) {
id = id || 'default'
var time = now()

@@ -38,4 +39,5 @@ startTimes[id] = time

},
stop: function (id = 'default') {
const startTime = startTimes[id]
stop: function (id) {
id = id || 'default'
var startTime = startTimes[id]
if (!startTime) { return -1 }

@@ -42,0 +44,0 @@ tookTime = now() - startTime

{
"name": "unitimer",
"version": "3.4.1",
"version": "3.5.1",
"description": "Universal timer (Node.js and browser)",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc