date-fns-tz
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -337,3 +337,3 @@ import dateFnsFormat from 'date-fns/format/index.js' | ||
// If the replacement results in two adjoining quoted strings, the back to back quotes | ||
// are removed so it doesn't look like an escaped quote. | ||
// are removed, so it doesn't look like an escaped quote. | ||
return precededByQuotedSection | ||
@@ -340,0 +340,0 @@ ? replaced.substring(0, pos - 1) + replaced.substring(pos + 1) |
@@ -35,3 +35,3 @@ import tzParseTimezone from '../_lib/tzParseTimezone/index.js' | ||
const resultDate = new Date(0) | ||
var resultDate = new Date(0) | ||
@@ -38,0 +38,0 @@ resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate()) |
@@ -345,3 +345,3 @@ "use strict"; | ||
var replaced = result.replace(token, "'" + _index2.default[token[0]](date, token, null, options) + "'"); // If the replacement results in two adjoining quoted strings, the back to back quotes | ||
// are removed so it doesn't look like an escaped quote. | ||
// are removed, so it doesn't look like an escaped quote. | ||
@@ -348,0 +348,0 @@ return precededByQuotedSection ? replaced.substring(0, pos - 1) + replaced.substring(pos + 1) : replaced; |
{ | ||
"name": "date-fns-tz", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "Time zone support for date-fns v2 with the Intl API", |
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