timekeeper
Advanced tools
Comparing version 2.3.0 to 2.3.1
export as namespace timekeeper; | ||
interface Timekeeper { | ||
freeze(date: Date | number | string): void; | ||
travel(date: Date | number | string): void; | ||
freeze(date?: Date | number | string): void; | ||
travel(date?: Date | number | string): void; | ||
reset(): void; | ||
isKeepingTime(): boolean; | ||
withFreeze<T>(date: Date | number | string, callback: ()=>T): T; | ||
withFreeze<T>(date: Date | number | string | undefined, callback: ()=>T): T; | ||
} | ||
@@ -10,0 +10,0 @@ |
{ | ||
"name": "timekeeper", | ||
"version": "2.3.1", | ||
"description": "Easy testing of time-dependent code.", | ||
"version": "2.3.0", | ||
"keywords": [ | ||
@@ -10,2 +10,4 @@ "fake date", | ||
], | ||
"repository": "vesln/timekeeper", | ||
"license": "MIT", | ||
"author": "Veselin Todorov <hi@vesln.com>", | ||
@@ -16,25 +18,13 @@ "contributors": [ | ||
], | ||
"dependencies": {}, | ||
"main": "./lib/timekeeper.js", | ||
"scripts": { | ||
"test": "npm run test:browser && npm run test:node", | ||
"test:browser": "mocha-phantomjs test/index.html", | ||
"test:node": "mocha --require test/node.support.js test/*.test.js" | ||
}, | ||
"devDependencies": { | ||
"chai": "^1.9.2", | ||
"mocha": "^2.0.1", | ||
"mocha-phantomjs": "^4.0.2", | ||
"mversion": "^1.10.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/vesln/timekeeper.git" | ||
}, | ||
"homepage": "http://github.com/vesln/timekeeper", | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"main": "./lib/timekeeper.js", | ||
"bugs": { | ||
"url": "https://github.com/vesln/timekeeper/issues" | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"license": "MIT" | ||
"mocha-phantomjs": "^4.0.2" | ||
} | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
3
14533
7
390
1
1
89
1