Socket
Socket
Sign inDemoInstall

date-fns-tz

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-fns-tz - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

2

esm/format/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc