date-fns-tz
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -27,3 +27,3 @@ "use strict"; | ||
if (timezoneString === '') { | ||
if (!timezoneString) { | ||
return 0; | ||
@@ -30,0 +30,0 @@ } // Z |
@@ -20,3 +20,3 @@ import tzTokenizeDate from '../tzTokenizeDate/index.js' | ||
// Empty string | ||
if (timezoneString === '') { | ||
if (!timezoneString) { | ||
return 0 | ||
@@ -23,0 +23,0 @@ } |
@@ -275,3 +275,3 @@ import dateFnsFormat from 'date-fns/format/index.js' | ||
* | ||
* @param {Date|String|Number} date - the original date | ||
* @param {Date|Number} date - the original date | ||
* @param {String} format - the string of tokens | ||
@@ -278,0 +278,0 @@ * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options} |
@@ -285,3 +285,3 @@ "use strict"; | ||
* | ||
* @param {Date|String|Number} date - the original date | ||
* @param {Date|Number} date - the original date | ||
* @param {String} format - the string of tokens | ||
@@ -288,0 +288,0 @@ * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options} |
{ | ||
"name": "date-fns-tz", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"sideEffects": false, | ||
@@ -61,4 +61,4 @@ "description": "Time zone support for date-fns v2 with the Intl API", | ||
"clean": "rm -rf tmp/package && rm tmp/docs.json", | ||
"test": "karma start config/karma.js", | ||
"test:watch": "cross-env TEST_WATCH=true karma start config/karma.js", | ||
"test": "cross-env NODE_OPTIONS=\"--openssl-legacy-provider\" karma start config/karma.js", | ||
"test:watch": "cross-env TEST_WATCH=true NODE_OPTIONS=\"--openssl-legacy-provider\" karma start config/karma.js", | ||
"prettier": "prettier . --write", | ||
@@ -65,0 +65,0 @@ "lint": "eslint .", |
@@ -49,3 +49,3 @@ // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
function format(date: Date | string | number, format: string, options?: OptionsWithTZ): string | ||
function format(date: Date | number, format: string, options?: OptionsWithTZ): string | ||
namespace format {} | ||
@@ -177,3 +177,3 @@ | ||
const format: CurriedFn2<string, Date | string | number, string> | ||
const format: CurriedFn2<string, Date | number, string> | ||
namespace format {} | ||
@@ -193,3 +193,3 @@ | ||
const formatWithOptions: CurriedFn3<OptionsWithTZ, string, Date | string | number, string> | ||
const formatWithOptions: CurriedFn3<OptionsWithTZ, string, Date | number, string> | ||
namespace formatWithOptions {} | ||
@@ -389,3 +389,3 @@ | ||
function format(date: Date | string | number, format: string, options?: OptionsWithTZ): string | ||
function format(date: Date | number, format: string, options?: OptionsWithTZ): string | ||
namespace format {} | ||
@@ -517,3 +517,3 @@ | ||
const format: CurriedFn2<string, Date | string | number, string> | ||
const format: CurriedFn2<string, Date | number, string> | ||
namespace format {} | ||
@@ -533,3 +533,3 @@ | ||
const formatWithOptions: CurriedFn3<OptionsWithTZ, string, Date | string | number, string> | ||
const formatWithOptions: CurriedFn3<OptionsWithTZ, string, Date | number, string> | ||
namespace formatWithOptions {} | ||
@@ -536,0 +536,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
211452