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

@types/luxon

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/luxon - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

luxon/package.json
{
"name": "@types/luxon",
"version": "2.0.1",
"version": "2.0.2",
"description": "TypeScript definitions for luxon",

@@ -73,4 +73,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/luxon",

"dependencies": {},
"typesPublisherContentHash": "24da569cbf4e55448706a02323c6a8dd102e2c5c6bae1655cf543cfc37abf6a3",
"typesPublisherContentHash": "a0e87243f7289924b3a2e57472499f426df5c14f2ea0e4e8fb634458acfe23f2",
"typeScriptVersion": "3.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 26 Aug 2021 18:31:22 GMT
* Last updated: Sun, 29 Aug 2021 20:01:26 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `luxon`

@@ -106,2 +106,3 @@ import {

}
export type ResolvedLocaleOptions = Required<LocaleOptions>;

@@ -150,2 +151,15 @@ export interface DateTimeOptions extends LocaleOptions {

export type DateTimeFormatPresetValue = 'numeric' | 'short' | 'long';
export interface DateTimeFormatPreset {
year?: DateTimeFormatPresetValue;
month?: DateTimeFormatPresetValue;
day?: DateTimeFormatPresetValue;
weekday?: DateTimeFormatPresetValue;
hour?: DateTimeFormatPresetValue;
minute?: DateTimeFormatPresetValue;
second?: DateTimeFormatPresetValue;
timeZoneName?: DateTimeFormatPresetValue;
hourCycle?: 'h23';
}
export interface DiffOptions {

@@ -236,11 +250,33 @@ conversionAccuracy?: ConversionAccuracy | undefined;

static local(
year?: number,
month?: number,
day?: number,
hour?: number,
minute?: number,
second?: number,
millisecond?: number,
year: number,
month: number,
day: number,
hour: number,
minute: number,
second: number,
millisecond: number,
opts?: DateTimeJSOptions,
): DateTime;
static local(
year: number,
month: number,
day: number,
hour: number,
minute: number,
second: number,
opts?: DateTimeJSOptions,
): DateTime;
static local(
year: number,
month: number,
day: number,
hour: number,
minute: number,
opts?: DateTimeJSOptions,
): DateTime;
static local(year: number, month: number, day: number, hour: number, opts?: DateTimeJSOptions): DateTime;
static local(year: number, month: number, day: number, opts?: DateTimeJSOptions): DateTime;
static local(year: number, month: number, opts?: DateTimeJSOptions): DateTime;
static local(year: number, opts?: DateTimeJSOptions): DateTime;
static local(opts?: DateTimeJSOptions): DateTime;

@@ -282,11 +318,33 @@ /**

static utc(
year?: number,
month?: number,
day?: number,
hour?: number,
minute?: number,
second?: number,
millisecond?: number,
year: number,
month: number,
day: number,
hour: number,
minute: number,
second: number,
millisecond: number,
options?: LocaleOptions,
): DateTime;
static utc(
year: number,
month: number,
day: number,
hour: number,
minute: number,
second: number,
options?: LocaleOptions,
): DateTime;
static utc(
year: number,
month: number,
day: number,
hour: number,
minute: number,
options?: LocaleOptions,
): DateTime;
static utc(year: number, month: number, day: number, hour: number, options?: LocaleOptions): DateTime;
static utc(year: number, month: number, day: number, options?: LocaleOptions): DateTime;
static utc(year: number, month: number, options?: LocaleOptions): DateTime;
static utc(year: number, options?: LocaleOptions): DateTime;
static utc(options?: LocaleOptions): DateTime;

@@ -649,3 +707,3 @@ /**

*/
get ordinal(): number | DateTime;
get ordinal(): number;

@@ -767,3 +825,3 @@ /**

*/
resolvedLocaleOptions(opts?: LocaleOptions & DateTimeFormatOptions): Intl.ResolvedDateTimeFormatOptions;
resolvedLocaleOptions(opts?: LocaleOptions | DateTimeFormatOptions): ResolvedLocaleOptions;

@@ -952,3 +1010,3 @@ // TRANSFORM

*/
toLocaleString(formatOpts?: DateTimeFormatOptions, opts?: LocaleOptions): string;
toLocaleString(formatOpts?: DateTimeFormatPreset | DateTimeFormatOptions, opts?: LocaleOptions): string;

@@ -971,3 +1029,3 @@ /**

*/
toLocaleParts(opts: DateTimeFormatOptions): Intl.DateTimeFormat[];
toLocaleParts(opts?: DateTimeFormatPreset | DateTimeFormatOptions): Intl.DateTimeFormatPart[];

@@ -1298,3 +1356,3 @@ /**

*/
static get DATE_SHORT(): DateTimeFormatOptions;
static get DATE_SHORT(): DateTimeFormatPreset;

@@ -1304,3 +1362,3 @@ /**

*/
static get DATE_MED(): DateTimeFormatOptions;
static get DATE_MED(): DateTimeFormatPreset;

@@ -1310,3 +1368,3 @@ /**

*/
static get DATE_MED_WITH_WEEKDAY(): DateTimeFormatOptions;
static get DATE_MED_WITH_WEEKDAY(): DateTimeFormatPreset;

@@ -1316,3 +1374,3 @@ /**

*/
static get DATE_FULL(): DateTimeFormatOptions;
static get DATE_FULL(): DateTimeFormatPreset;

@@ -1322,3 +1380,3 @@ /**

*/
static get DATE_HUGE(): DateTimeFormatOptions;
static get DATE_HUGE(): DateTimeFormatPreset;

@@ -1328,3 +1386,3 @@ /**

*/
static get TIME_SIMPLE(): DateTimeFormatOptions;
static get TIME_SIMPLE(): DateTimeFormatPreset;

@@ -1334,3 +1392,3 @@ /**

*/
static get TIME_WITH_SECONDS(): DateTimeFormatOptions;
static get TIME_WITH_SECONDS(): DateTimeFormatPreset;

@@ -1340,3 +1398,3 @@ /**

*/
static get TIME_WITH_SHORT_OFFSET(): DateTimeFormatOptions;
static get TIME_WITH_SHORT_OFFSET(): DateTimeFormatPreset;

@@ -1346,3 +1404,3 @@ /**

*/
static get TIME_WITH_LONG_OFFSET(): DateTimeFormatOptions;
static get TIME_WITH_LONG_OFFSET(): DateTimeFormatPreset;

@@ -1352,3 +1410,3 @@ /**

*/
static get TIME_24_SIMPLE(): DateTimeFormatOptions;
static get TIME_24_SIMPLE(): DateTimeFormatPreset;

@@ -1358,3 +1416,3 @@ /**

*/
static get TIME_24_WITH_SECONDS(): DateTimeFormatOptions;
static get TIME_24_WITH_SECONDS(): DateTimeFormatPreset;

@@ -1364,3 +1422,3 @@ /**

*/
static get TIME_24_WITH_SHORT_OFFSET(): DateTimeFormatOptions;
static get TIME_24_WITH_SHORT_OFFSET(): DateTimeFormatPreset;

@@ -1370,3 +1428,3 @@ /**

*/
static get TIME_24_WITH_LONG_OFFSET(): DateTimeFormatOptions;
static get TIME_24_WITH_LONG_OFFSET(): DateTimeFormatPreset;

@@ -1376,3 +1434,3 @@ /**

*/
static get DATETIME_SHORT(): DateTimeFormatOptions;
static get DATETIME_SHORT(): DateTimeFormatPreset;

@@ -1382,3 +1440,3 @@ /**

*/
static get DATETIME_SHORT_WITH_SECONDS(): DateTimeFormatOptions;
static get DATETIME_SHORT_WITH_SECONDS(): DateTimeFormatPreset;

@@ -1388,3 +1446,3 @@ /**

*/
static get DATETIME_MED(): DateTimeFormatOptions;
static get DATETIME_MED(): DateTimeFormatPreset;

@@ -1394,3 +1452,3 @@ /**

*/
static get DATETIME_MED_WITH_SECONDS(): DateTimeFormatOptions;
static get DATETIME_MED_WITH_SECONDS(): DateTimeFormatPreset;

@@ -1400,3 +1458,3 @@ /**

*/
static get DATETIME_MED_WITH_WEEKDAY(): DateTimeFormatOptions;
static get DATETIME_MED_WITH_WEEKDAY(): DateTimeFormatPreset;

@@ -1406,3 +1464,3 @@ /**

*/
static get DATETIME_FULL(): DateTimeFormatOptions;
static get DATETIME_FULL(): DateTimeFormatPreset;

@@ -1412,3 +1470,3 @@ /**

*/
static get DATETIME_FULL_WITH_SECONDS(): DateTimeFormatOptions;
static get DATETIME_FULL_WITH_SECONDS(): DateTimeFormatPreset;

@@ -1418,3 +1476,3 @@ /**

*/
static get DATETIME_HUGE(): DateTimeFormatOptions;
static get DATETIME_HUGE(): DateTimeFormatPreset;

@@ -1424,3 +1482,3 @@ /**

*/
static get DATETIME_HUGE_WITH_SECONDS(): DateTimeFormatOptions;
static get DATETIME_HUGE_WITH_SECONDS(): DateTimeFormatPreset;
}
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