timekeeper
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "timekeeper", | ||
"description": "Easy testing of time-dependent code.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fake date", |
@@ -157,2 +157,6 @@ /** | ||
if (freeze) { | ||
timekeeper.freeze(date) | ||
} | ||
travel = date.getTime(); | ||
@@ -159,0 +163,0 @@ started = NativeDate.now(); |
{ | ||
"name": "timekeeper", | ||
"description": "Easy testing of time-dependent code.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fake date", |
@@ -17,3 +17,3 @@ # timekeeper | ||
- Please note, that if you are using time freezing, `setTimeout` and | ||
`setInteval` won't work as expected, since they are using the `Date` | ||
`setInterval` won't work as expected, since they are using the `Date` | ||
class, but the time will not change until you call `timekeeper#reset`. | ||
@@ -65,2 +65,4 @@ | ||
Note: If traveling when time is frozen, the time will be frozen to the new traveled time. | ||
### Reflection: | ||
@@ -96,3 +98,3 @@ | ||
$ mversion <patch | minor | major> | ||
$ git push && git push --tags | ||
$ git push --follow-tags | ||
$ npm publish | ||
@@ -99,0 +101,0 @@ ``` |
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
127
9688
7
210