🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@types/moment-timezone

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/moment-timezone - npm Package Compare versions

Comparing version

to
0.5.13

1

moment-timezone/index.d.ts

@@ -7,2 +7,3 @@ // Type definitions for moment-timezone.js 0.5

// Borys Kupar <https://github.com/borys-kupar>
// Anthony Rainer <https://github.com/pristinesource>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,0 +10,0 @@

@@ -20,2 +20,7 @@ import moment = require('moment');

interface MomentZoneOffset {
name: string;
offset: number;
}
interface MomentTimezone {

@@ -46,5 +51,9 @@ (): moment.Moment;

names(): string[];
zonesForCountry<T extends true>(country: string, with_offset: T): T extends true ? MomentZoneOffset[] : never;
zonesForCountry<T extends false>(country: string, with_offset?: T): T extends false ? string[] : never;
zonesForCountry(country: string, with_offset?: boolean): MomentZoneOffset[] | string[];
countries(): string[];
guess(ignoreCache?: boolean): string;
setDefault(timezone?: string): MomentTimezone;
setDefault(timezone?: string): Moment;
}

@@ -51,0 +60,0 @@

13

moment-timezone/package.json
{
"name": "@types/moment-timezone",
"version": "0.5.12",
"version": "0.5.13",
"description": "TypeScript definitions for moment-timezone.js",

@@ -26,6 +26,11 @@ "license": "MIT",

"githubUsername": "borys-kupar"
},
{
"name": "Anthony Rainer",
"url": "https://github.com/pristinesource",
"githubUsername": "pristinesource"
}
],
"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -40,4 +45,4 @@ "type": "git",

},
"typesPublisherContentHash": "3047fe993176bbb61193a4ad59f18e3e0bbad099e7b55788e0e196f421a23ab5",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "db3b4fb08bfb3f2a9dd71a211046d5a8105d915ad026f5dd68b89b2b2d46bcef",
"typeScriptVersion": "2.8"
}

@@ -5,13 +5,13 @@ # Installation

# Summary
This package contains type definitions for moment-timezone.js ( http://momentjs.com/timezone/ ).
This package contains type definitions for moment-timezone.js (http://momentjs.com/timezone/).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-timezone
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-timezone.
Additional Details
* Last updated: Mon, 11 Mar 2019 18:03:38 GMT
* Dependencies: @types/moment
### Additional Details
* Last updated: Mon, 23 Mar 2020 16:21:32 GMT
* Dependencies: [@types/moment](https://npmjs.com/package/@types/moment)
* Global values: none
# Credits
These definitions were written by Michel Salib <https://github.com/michelsalib>, Alan Brazil Lins <https://github.com/alanblins>, Agustin Carrasco <https://github.com/asermax>, Borys Kupar <https://github.com/borys-kupar>.
These definitions were written by [Michel Salib](https://github.com/michelsalib), [Alan Brazil Lins](https://github.com/alanblins), [Agustin Carrasco](https://github.com/asermax), [Borys Kupar](https://github.com/borys-kupar), and [Anthony Rainer](https://github.com/pristinesource).