bare-console 3.1.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  const inspect = require('bare-inspect')
2
+ const hrtime = require('bare-hrtime')
2
3
 
3
4
  module.exports = class Console {
4
5
  constructor (opts = {}) {
@@ -31,7 +32,7 @@ module.exports = class Console {
31
32
  return
32
33
  }
33
34
 
34
- this._timers.set(label, process.hrtime())
35
+ this._timers.set(label, hrtime())
35
36
  }
36
37
 
37
38
  timeEnd (label = 'default') {
@@ -42,7 +43,7 @@ module.exports = class Console {
42
43
  return
43
44
  }
44
45
 
45
- const d = process.hrtime(started)
46
+ const d = hrtime(started)
46
47
  const ms = d[0] * 1e3 + d[1] / 1e6
47
48
  this._timers.delete(label)
48
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-console",
3
- "version": "3.1.1",
3
+ "version": "4.0.0",
4
4
  "description": "Simple debugging console for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "homepage": "https://github.com/holepunchto/bare-console#readme",
22
22
  "dependencies": {
23
+ "bare-hrtime": "^2.0.0",
23
24
  "bare-inspect": "^1.1.0"
24
25
  },
25
26
  "devDependencies": {