New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

timezone-mock

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-mock - npm Package Compare versions

Comparing version

to
1.0.9

2

index.js

@@ -27,3 +27,3 @@ var assert = require('assert');

} else if (typeof param === 'string') {
if (param.match(date_iso_8601_regex) || param.match(date_with_offset) || param.match(date_rfc_2822_regex)) {
if (param.match(date_iso_8601_regex) || param.match(date_with_offset) || param.match(date_rfc_2822_regex) || param === '') {
this.d = new _Date(param);

@@ -30,0 +30,0 @@ } else if (param.match(local_date_regex)) {

{
"name": "timezone-mock",
"version": "1.0.8",
"version": "1.0.9",
"description": "A JavaScript library to mock the local timezone.",

@@ -26,3 +26,7 @@ "main": "index.js",

},
"homepage": "https://github.com/Jimbly/timezone-mock"
"homepage": "https://github.com/Jimbly/timezone-mock",
"devDependencies": {},
"scripts": {
"test": "node tests/test-constructors.js"
}
}