timezone-mock
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -167,11 +167,11 @@ var assert = require('assert'); | ||
function register(new_timezone) { | ||
function register(new_timezone, glob = global) { | ||
timezone = new_timezone || 'US/Pacific'; | ||
global.Date = MockDate; | ||
glob.Date = MockDate; | ||
} | ||
exports.register = register; | ||
function unregister() { | ||
global.Date = _Date; | ||
function unregister(glob = global) { | ||
glob.Date = _Date; | ||
} | ||
exports.unregister = unregister; |
{ | ||
"name": "timezone-mock", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A JavaScript library to mock the local timezone.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
29709