date-fns-tz
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -10,4 +10,5 @@ import cloneObject from 'date-fns/esm/_lib/cloneObject' | ||
* | ||
* @param {Date|Number} date - the date representing the local time / real UTC time | ||
* @param {Date|String|Number} date - the date representing the local time / real UTC time | ||
* @param {String} timeZone - the time zone this date should be formatted for; can be an offset or IANA time zone | ||
* @param {String} formatStr - the string of tokens | ||
* @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options} | ||
@@ -14,0 +15,0 @@ * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link |
@@ -6,4 +6,4 @@ // This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. | ||
var formatInTimeZone = convertToFP(fn, 2) | ||
var formatInTimeZone = convertToFP(fn, 3) | ||
export default formatInTimeZone |
@@ -6,4 +6,4 @@ // This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. | ||
var formatInTimeZoneWithOptions = convertToFP(fn, 3) | ||
var formatInTimeZoneWithOptions = convertToFP(fn, 4) | ||
export default formatInTimeZoneWithOptions |
@@ -21,4 +21,5 @@ "use strict"; | ||
* | ||
* @param {Date|Number} date - the date representing the local time / real UTC time | ||
* @param {Date|String|Number} date - the date representing the local time / real UTC time | ||
* @param {String} timeZone - the time zone this date should be formatted for; can be an offset or IANA time zone | ||
* @param {String} formatStr - the string of tokens | ||
* @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options} | ||
@@ -25,0 +26,0 @@ * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link |
@@ -15,5 +15,5 @@ "use strict"; | ||
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. | ||
var formatInTimeZone = (0, _index2.default)(_index.default, 2); | ||
var formatInTimeZone = (0, _index2.default)(_index.default, 3); | ||
var _default = formatInTimeZone; | ||
exports.default = _default; | ||
module.exports = exports.default; |
@@ -15,5 +15,5 @@ "use strict"; | ||
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. | ||
var formatInTimeZoneWithOptions = (0, _index2.default)(_index.default, 3); | ||
var formatInTimeZoneWithOptions = (0, _index2.default)(_index.default, 4); | ||
var _default = formatInTimeZoneWithOptions; | ||
exports.default = _default; | ||
module.exports = exports.default; |
{ | ||
"name": "date-fns-tz", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "Time zone support for date-fns v2 with the Intl API", |
@@ -52,3 +52,8 @@ // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
function formatInTimeZone(date: Date | number, timeZone: string, options?: OptionsWithTZ): string | ||
function formatInTimeZone( | ||
date: Date | string | number, | ||
timeZone: string, | ||
formatStr: string, | ||
options?: OptionsWithTZ | ||
): string | ||
namespace formatInTimeZone {} | ||
@@ -175,6 +180,12 @@ | ||
const formatInTimeZone: CurriedFn2<string, Date | number, string> | ||
const formatInTimeZone: CurriedFn3<string, string, Date | string | number, string> | ||
namespace formatInTimeZone {} | ||
const formatInTimeZoneWithOptions: CurriedFn3<OptionsWithTZ, string, Date | number, string> | ||
const formatInTimeZoneWithOptions: CurriedFn4< | ||
OptionsWithTZ, | ||
string, | ||
string, | ||
Date | string | number, | ||
string | ||
> | ||
namespace formatInTimeZoneWithOptions {} | ||
@@ -380,3 +391,8 @@ | ||
function formatInTimeZone(date: Date | number, timeZone: string, options?: OptionsWithTZ): string | ||
function formatInTimeZone( | ||
date: Date | string | number, | ||
timeZone: string, | ||
formatStr: string, | ||
options?: OptionsWithTZ | ||
): string | ||
namespace formatInTimeZone {} | ||
@@ -503,6 +519,12 @@ | ||
const formatInTimeZone: CurriedFn2<string, Date | number, string> | ||
const formatInTimeZone: CurriedFn3<string, string, Date | string | number, string> | ||
namespace formatInTimeZone {} | ||
const formatInTimeZoneWithOptions: CurriedFn3<OptionsWithTZ, string, Date | number, string> | ||
const formatInTimeZoneWithOptions: CurriedFn4< | ||
OptionsWithTZ, | ||
string, | ||
string, | ||
Date | string | number, | ||
string | ||
> | ||
namespace formatInTimeZoneWithOptions {} | ||
@@ -509,0 +531,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
205555
3402