Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timekeeper

Package Overview
Dependencies
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timekeeper - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

readme.md

6

index.d.ts
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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc