You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

bare-hrtime

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-hrtime - npm Package Compare versions

Comparing version
2.0.10
to
2.0.11
+9
index.d.ts
declare function hrtime(
prev?: ArrayLike<number>
): [seconds: number, nanoseconds: number]
declare namespace hrtime {
export function bigint(): bigint
}
export = hrtime
+1
-1

@@ -5,3 +5,3 @@ const binding = require('./binding')

module.exports = exports = function hrtime (prev = EMPTY) {
module.exports = exports = function hrtime(prev = EMPTY) {
if (prev instanceof Uint32Array === false) prev = Uint32Array.from(prev)

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

{
"name": "bare-hrtime",
"version": "2.0.10",
"version": "2.0.11",
"description": "High-resolution timers for JavaScript",
"main": "index.js",
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./package": "./package.json"
},
"files": [
"index.js",
"index.d.ts",
"binding.c",

@@ -15,3 +22,3 @@ "binding.js",

"scripts": {
"test": "standard && bare test.js"
"test": "prettier . --check && bare test.js"
},

@@ -31,4 +38,5 @@ "repository": {

"cmake-bare": "^1.1.6",
"standard": "^17.0.0"
"prettier": "^3.4.2",
"prettier-config-standard": "^7.0.0"
}
}

@@ -11,3 +11,3 @@ # bare-hrtime

``` js
```js
const hrtime = require('bare-hrtime')

@@ -14,0 +14,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display