🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mockdate

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockdate - npm Package Compare versions

Comparing version

to
3.0.4

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 3.0.4
- Properly exposed window.MockDate when loaded in the browser.
## 3.0.3

@@ -2,0 +6,0 @@

7

lib/mockdate.js

@@ -76,5 +76,2 @@ var __extends = (this && this.__extends) || (function () {

Date = MockDate;
if (date.valueOf) {
date = date.valueOf();
}
now = dateObj.valueOf();

@@ -91,3 +88,7 @@ }

};
if (typeof window !== 'undefined') {
// @ts-ignore
window.MockDate = MockDate;
}
});
//# sourceMappingURL=mockdate.js.map
{
"name": "mockdate",
"version": "3.0.3",
"version": "3.0.4",
"description": "A JavaScript mock Date object that can be used to change when \"now\" is.",

@@ -5,0 +5,0 @@ "main": "lib/mockdate.js",

@@ -66,6 +66,2 @@ const RealDate = Date;

if (date.valueOf) {
date = date.valueOf();
}
now = dateObj.valueOf();

@@ -81,2 +77,8 @@ }

reset,
}
}
if (typeof window !== 'undefined') {
// @ts-ignore
window.MockDate = MockDate;
}

Sorry, the diff of this file is not supported yet