timezone-js-ts
Advanced tools
Comparing version 1.1.21 to 1.1.22
export declare function getCurrentTime(timezone: string): string; | ||
export declare function getAllZones(): { | ||
zones: { | ||
id: number; | ||
name: string; | ||
}[]; | ||
}; | ||
id: number; | ||
name: string; | ||
}[]; |
@@ -38,3 +38,3 @@ "use strict"; | ||
exports.getAllZones = getAllZones; | ||
const zones = __importStar(require("./all_timezone_lists.json")); | ||
const zoneData = __importStar(require("./all_timezone_lists.json")); | ||
function getCurrentTime(timezone) { | ||
@@ -54,3 +54,3 @@ const date = new Date(); | ||
function getAllZones() { | ||
return zones; | ||
return zoneData.zones; | ||
} |
@@ -27,5 +27,5 @@ const fs = require('fs'); | ||
const data = fs.readFileSync(actualPath, 'utf-8'); | ||
return JSON.parse(data); | ||
return JSON.parse(data).zones; | ||
} | ||
module.exports = { getCurrentTime, getAllZones }; |
{ | ||
"name": "timezone-js-ts", | ||
"version": "1.1.21", | ||
"version": "1.1.22", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -1,2 +0,2 @@ | ||
import * as zones from './all_timezone_lists.json'; | ||
import * as zoneData from './all_timezone_lists.json'; | ||
@@ -19,3 +19,3 @@ | ||
export function getAllZones() { | ||
return zones; | ||
return zoneData.zones; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88088
4896