Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.7 to 1.3.8

2

_lib/tzParseTimezone/index.js

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

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