Comparing version 6.1.0 to 7.0.0
@@ -1,17 +0,2 @@ | ||
export interface Elapsor { | ||
startedAt: () => number; | ||
(): number; | ||
seconds(): number; | ||
s(): number; | ||
milliseconds(): number; | ||
ms(): number; | ||
microseconds(): number; | ||
us(): number; | ||
nanoseconds(): number; | ||
ns(): number; | ||
} | ||
export declare const hirestimeNode: () => Elapsor; | ||
export declare const hiresTimeBrowserPerformance: () => Elapsor; | ||
export declare const hiresTimeBrowserDate: () => Elapsor; | ||
declare const hirestime: () => Elapsor; | ||
declare const hirestime: () => import("./getElapsor").Elapsor; | ||
export default hirestime; |
{ | ||
"name": "hirestime", | ||
"version": "6.1.0", | ||
"version": "7.0.0", | ||
"type": "module", | ||
"description": "thin wrapper around process.hrtime", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.esm.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.esm.js", | ||
"umd:main": "./dist/index.umd.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"build": "tsc", | ||
"build": "microbundle --no-sourcemap", | ||
"test": "ts-mocha --require test/windowMock.js --paths test/**/*.ts", | ||
@@ -37,13 +45,16 @@ "test:watch": "ts-mocha --require test/windowMock.js --paths test/**/*.ts -w --watch-extensions ts" | ||
"@types/expect": "^24.3.0", | ||
"@types/mocha": "^8.0.0", | ||
"@types/node": "^14.0.27", | ||
"@types/sinon": "^9.0.4", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^17.0.35", | ||
"@types/sinon": "^10.0.11", | ||
"chai": "^4.2.0", | ||
"mocha": "^8.0.1", | ||
"sinon": "^9.0.2", | ||
"ts-mocha": "^7.0.0", | ||
"ts-node": "^8.10.2", | ||
"tsconfig-paths": "^3.9.0", | ||
"typescript": "^3.9.7" | ||
"microbundle": "^0.15.1", | ||
"mocha": "^10.0.0", | ||
"sinon": "^14.0.0", | ||
"ts-mocha": "^10.0.0", | ||
"ts-node": "^10.7.0", | ||
"tsconfig-paths": "^4.0.0" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"engines": { | ||
@@ -50,0 +61,0 @@ "node": ">=6.0" |
# hirestime [![Build Status](https://api.travis-ci.org/seriousManual/hirestime.png)](https://travis-ci.org/seriousManual/hirestime) | ||
*Please note that as of 5.0 we switched to typescript. Default CJS imports won't work as usual* | ||
`hirestime` is a thin wrapper around the common time measuring APIs (node and the browser). | ||
@@ -6,0 +4,0 @@ Uses `process.hrtime()` on node, the [performance API](https://developer.mozilla.org/de/docs/Web/API/Performance/now) in the browser and falls back to `Date` if neither is available. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11
Yes
7283
35
53