w3c-hr-time
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Change log | ||
## 1.0.2 (2020-03-05) | ||
* Do not allow infinite loops when calculating `hrtime()`'s offset relative to UNIX time. ([#9]) | ||
* Add a LICENSE file. ([#3]) | ||
* Add Tidelift sponsorship link to README. | ||
## 1.0.1 (2018-01-03) | ||
@@ -12,1 +18,3 @@ | ||
[heycam/webidl#505]: https://github.com/heycam/webidl/pull/505 | ||
[#3]: https://github.com/jsdom/w3c-hr-time/issues/3 | ||
[#9]: https://github.com/jsdom/w3c-hr-time/issues/9 |
@@ -17,3 +17,5 @@ "use strict"; | ||
let cur = start; | ||
while (cur === start) { | ||
// Limit the iterations, just in case we're running in an environment where Date.now() has been mocked and is | ||
// constant. | ||
for (let i = 0; i < 1e6 && cur === start; i++) { | ||
cur = Date.now(); | ||
@@ -20,0 +22,0 @@ } |
{ | ||
"name": "w3c-hr-time", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An implementation of the W3C High Resolution Time Level 2 specification.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"browser-process-hrtime": "^0.1.2" | ||
"browser-process-hrtime": "^1.0.0" | ||
}, | ||
@@ -17,3 +17,3 @@ "devDependencies": { | ||
"eslint-plugin-jest": "^21.5.0", | ||
"jest": "^22.0.4" | ||
"jest": "^24.1.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
@@ -101,2 +101,13 @@ # w3c-hr-time | ||
## Supporting w3c-hr-time | ||
The jsdom project (including w3c-hr-time) is a community-driven project maintained by a team of [volunteers](https://github.com/orgs/jsdom/people). You could support us by: | ||
- [Getting professional support for w3c-hr-time](https://tidelift.com/subscription/pkg/npm-w3c-hr-time?utm_source=npm-w3c-hr-time&utm_medium=referral&utm_campaign=readme) as part of a Tidelift subscription. Tidelift helps making open source sustainable for us while giving teams assurances for maintenance, licensing, and security. | ||
- Contributing directly to the project. | ||
## License | ||
This software is licensed under the MIT license. See LICENSE.md file for more detail. | ||
[HR-TIME]: https://w3c.github.io/hr-time/ | ||
@@ -103,0 +114,0 @@ [NAVIGATION-TIMING]: https://w3c.github.io/navigation-timing/ |
16806
10
148
131
+ Addedbrowser-process-hrtime@1.0.0(transitive)
- Removedbrowser-process-hrtime@0.1.3(transitive)