node-date-now 1.0.1-3 source package in Ubuntu
Changelog
node-date-now (1.0.1-3) unstable; urgency=medium * Team upload * Patch to fix test flakyness (Closes: #920538) -- Jérémy Lal <email address hidden> Sat, 26 Jan 2019 23:25:39 +0100
Upload details
- Uploaded by:
- Debian Javascript Maintainers
- Uploaded to:
- Sid
- Original maintainer:
- Debian Javascript Maintainers
- Architectures:
- all
- Section:
- javascript
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Focal | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
node-date-now_1.0.1-3.dsc | 2.0 KiB | 52aabd3a757cf33e586b1d66ef81225220ff7e6489de0dbd8a4c30e65662ada7 |
node-date-now_1.0.1.orig.tar.gz | 2.8 KiB | d07fcd816bb6237d8a8693f599e3d827f2693d998b2405beaf80f076018268f0 |
node-date-now_1.0.1-3.debian.tar.xz | 3.3 KiB | 37b778e9a00dab9c82a0b9813f7343a4a0b5e51217638058a1f311c6e1ef1b13 |
Available diffs
- diff from 1.0.1-1 to 1.0.1-3 (2.4 KiB)
No changes file available.
Binary packages built by this source
- node-date-now: requirable version of Date.now()
Use-case is to be able to mock out Date.now() using require interception.
For example
var now = require("date-now")
var ts = now()
var ts2 = Date.now()
assert.equal(ts, ts2)
Example of seed:
var now = require("date-now/ seed")( timeStampFromSe rver)
// ts is in "sync" with the seed value from the server
// useful if your users have their local time being a few minutes
// out of your server time.
var ts = now()
.
Node.js is an event-based server-side JavaScript engine.