You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

date-fns-tz

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7-beta.1

2

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

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

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

// Type Aliases
declare module 'date-fns-tz' {
import { Locale } from 'date-fns'
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
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
}
}
type OptionsWithTZAliased = OptionsWithTZ
// Exported Type Aliases
// Regular Functions
declare module 'date-fns-tz' {
export type OptionsWithTZ = OptionsWithTZAliased
}
import { OptionsWithTZ } from 'date-fns-tz'
// Regular Functions
declare module 'date-fns-tz' {
function format(

@@ -152,2 +149,4 @@ date: Date | string | number,

declare module 'date-fns-tz/fp' {
import { OptionsWithTZ } from 'date-fns-tz'
const format: CurriedFn2<string, Date | string | number, string>

@@ -336,2 +335,4 @@ namespace format {

declare module 'date-fns-tz/esm' {
import { OptionsWithTZ } from 'date-fns-tz'
function format(

@@ -436,2 +437,4 @@ date: Date | string | number,

declare module 'date-fns-tz/esm/fp' {
import { OptionsWithTZ } from 'date-fns-tz'
const format: CurriedFn2<string, Date | string | number, string>

@@ -616,37 +619,1 @@ namespace format {

}
// Regular Locales
declare module 'date-fns-tz/locale' {
}
// ECMAScript Module Locales
declare module 'date-fns-tz/esm/locale' {
}
// dateFns Global Interface
interface dateFns {
format(
date: Date | string | number,
format: string,
options?: OptionsWithTZ
): string
toDate(argument: Date | string | number, options?: OptionsWithTZ): Date
utcToZonedTime(
date: Date | string | number,
timeZone: string,
options?: OptionsWithTZ
): Date
zonedTimeToUtc(
date: Date | string | number,
timeZone: string,
options?: OptionsWithTZ
): Date
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc