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.0.5 to 1.0.6-beta.1

5

esm/format/index.js

@@ -1,3 +0,2 @@

import dateFnsFormat from 'date-fns/format'
import utcToZonedTime from '../utcToZonedTime'
import dateFnsFormat from 'date-fns/esm/format'
import formatters from './formatters'

@@ -307,3 +306,3 @@ import toDate from '../toDate'

* // Represent 2 July 2014 in Esperanto:
* import { eoLocale } from 'date-fns/locale/eo'
* import { eoLocale } from 'date-fns/esm/locale/eo'
* var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {

@@ -310,0 +309,0 @@ * locale: eoLocale

4

esm/toDate/index.js

@@ -1,3 +0,3 @@

import toInteger from 'date-fns/_lib/toInteger/index.js'
import getTimezoneOffsetInMilliseconds from 'date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js'
import toInteger from 'date-fns/esm/_lib/toInteger/index.js'
import getTimezoneOffsetInMilliseconds from 'date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js'
import tzParseTimezone from '../_lib/tzParseTimezone'

@@ -4,0 +4,0 @@

import tzParseTimezone from '../_lib/tzParseTimezone'
import subMilliseconds from 'date-fns/subMilliseconds'
import subMilliseconds from 'date-fns/esm/subMilliseconds'
import toDate from '../toDate'

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

import cloneObject from 'date-fns/_lib/cloneObject'
import format from 'date-fns/format'
import cloneObject from 'date-fns/esm/_lib/cloneObject'
import format from 'date-fns/esm/format'
import toDate from '../toDate'

@@ -4,0 +4,0 @@

@@ -12,6 +12,2 @@ 'use strict';

var _utcToZonedTime = require('../utcToZonedTime');
var _utcToZonedTime2 = _interopRequireDefault(_utcToZonedTime);
var _formatters = require('./formatters');

@@ -18,0 +14,0 @@

{
"name": "date-fns-tz",
"version": "1.0.5",
"version": "1.0.6-beta.1",
"sideEffects": false,

@@ -5,0 +5,0 @@ "description": "Time zone support for date-fns v2 with the browser Intl API",

@@ -27,22 +27,15 @@ // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.

// Type Aliases
type OptionsWithTZ = {
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7
additionalDigits?: 0 | 1 | 2
timeZone?: string
locale?: import('date-fns').Locale
includeSeconds?: boolean
addSuffix?: boolean
unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year'
roundingMethod?: 'floor' | 'ceil' | 'round'
awareOfUnicodeTokens?: boolean
}
type OptionsWithTZAliased = OptionsWithTZ
// Exported Type Aliases
declare module 'date-fns-tz' {
export type OptionsWithTZ = OptionsWithTZAliased
export type OptionsWithTZ = {
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7
additionalDigits?: 0 | 1 | 2
timeZone?: string
locale?: Locale
includeSeconds?: boolean
addSuffix?: boolean
unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year'
roundingMethod?: 'floor' | 'ceil' | 'round'
awareOfUnicodeTokens?: boolean
}
}

@@ -614,14 +607,2 @@

// Regular Locales
declare module 'date-fns-tz/locale' {
}
// ECMAScript Module Locales
declare module 'date-fns-tz/esm/locale' {
}
// dateFns Global Interface

@@ -628,0 +609,0 @@

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