fix: fix time-delta locale loading

This commit is contained in:
Amin Yahyaabadi 2022-04-18 05:27:28 -07:00
parent 4484aa3ba6
commit e7a90d7c46
5 changed files with 8 additions and 8 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,7 @@
"msvc-dev-cmd": "github:aminya/msvc-dev-cmd#9f672c1", "msvc-dev-cmd": "github:aminya/msvc-dev-cmd#9f672c1",
"semver": "7.3.7", "semver": "7.3.7",
"setup-python": "github:actions/setup-python#7f80679172b057fc5e90d70d197929d454754a5a", "setup-python": "github:actions/setup-python#7f80679172b057fc5e90d70d197929d454754a5a",
"time-delta": "github:aminya/time-delta#a6f84237aa249d246488d06439acbe0e6e364fd5", "time-delta": "github:aminya/time-delta#b8d65be65af2ad348ae21f4e0e2fd2ee7430c299",
"untildify": "^4.0.0", "untildify": "^4.0.0",
"which": "^2.0.2" "which": "^2.0.2"
}, },

View File

@ -38,7 +38,7 @@ specifiers:
setup-python: github:actions/setup-python#7f80679172b057fc5e90d70d197929d454754a5a setup-python: github:actions/setup-python#7f80679172b057fc5e90d70d197929d454754a5a
shx: 0.3.4 shx: 0.3.4
terser-config-atomic: ^0.1.1 terser-config-atomic: ^0.1.1
time-delta: github:aminya/time-delta#a6f84237aa249d246488d06439acbe0e6e364fd5 time-delta: github:aminya/time-delta#b8d65be65af2ad348ae21f4e0e2fd2ee7430c299
ts-jest: ^27.1.4 ts-jest: ^27.1.4
typescript: ^4.6.3 typescript: ^4.6.3
untildify: ^4.0.0 untildify: ^4.0.0
@ -54,7 +54,7 @@ dependencies:
msvc-dev-cmd: github.com/aminya/msvc-dev-cmd/9f672c1 msvc-dev-cmd: github.com/aminya/msvc-dev-cmd/9f672c1
semver: 7.3.7 semver: 7.3.7
setup-python: github.com/actions/setup-python/7f80679172b057fc5e90d70d197929d454754a5a setup-python: github.com/actions/setup-python/7f80679172b057fc5e90d70d197929d454754a5a
time-delta: github.com/aminya/time-delta/a6f84237aa249d246488d06439acbe0e6e364fd5 time-delta: github.com/aminya/time-delta/b8d65be65af2ad348ae21f4e0e2fd2ee7430c299
untildify: 4.0.0 untildify: 4.0.0
which: 2.0.2 which: 2.0.2
@ -8256,8 +8256,8 @@ packages:
sort-object-keys: 1.1.3 sort-object-keys: 1.1.3
dev: true dev: true
github.com/aminya/time-delta/a6f84237aa249d246488d06439acbe0e6e364fd5: github.com/aminya/time-delta/b8d65be65af2ad348ae21f4e0e2fd2ee7430c299:
resolution: {tarball: https://codeload.github.com/aminya/time-delta/tar.gz/a6f84237aa249d246488d06439acbe0e6e364fd5} resolution: {tarball: https://codeload.github.com/aminya/time-delta/tar.gz/b8d65be65af2ad348ae21f4e0e2fd2ee7430c299}
name: time-delta name: time-delta
version: 1.0.0 version: 1.0.0
engines: {node: '>=12'} engines: {node: '>=12'}

View File

@ -128,7 +128,7 @@ export async function main(args: string[]): Promise<number> {
const successMessages: string[] = [] const successMessages: string[] = []
const errorMessages: string[] = [] const errorMessages: string[] = []
const timeFormatter = timeDelta.create() const timeFormatter = timeDelta.create({ autoloadLocales: true })
timeDelta.addLocale(enLocale as timeDelta.Locale) timeDelta.addLocale(enLocale as timeDelta.Locale)
let time1: number let time1: number
let time2: number let time2: number