timezone-js-ts
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -24,5 +24,5 @@ const fs = require('fs'); | ||
function getAllTimezones() { | ||
return fs.readFileSync('./all_timezone_lists.json').toLocaleString(); | ||
return fs.readFileSync('./assets/all_timezone_lists.json').toLocaleString(); | ||
} | ||
module.exports = { getCurrentTime, getAllTimezones }; |
{ | ||
"name": "timezone-js-ts", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -0,1 +1,3 @@ | ||
import * as AllTimezones from '../assets/all_timezone_lists.json'; | ||
export function getCurrentTime(timezone: string) { | ||
@@ -13,2 +15,6 @@ const date = new Date(); | ||
return new Intl.DateTimeFormat('en-US', configOptions).format(date); | ||
} | ||
export function getAllTimezones() { | ||
return AllTimezones.toLocaleString(); | ||
} |
@@ -7,3 +7,4 @@ { | ||
"outDir": "./dist", | ||
"strict": true | ||
"strict": true, | ||
"resolveJsonModule": true | ||
}, | ||
@@ -10,0 +11,0 @@ "include": ["src/**/*"] |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14643
666