@globalbrain/sefirot
Advanced tools
Comparing version 0.52.0 to 0.53.0
@@ -0,1 +1,13 @@ | ||
# [0.53.0](https://github.com/globalbrain/sefirot/compare/v0.52.0...v0.53.0) (2021-05-11) | ||
### Bug Fixes | ||
* **input-date:** add z-index for popover of input-date ([#68](https://github.com/globalbrain/sefirot/issues/68)) ([09fbe6d](https://github.com/globalbrain/sefirot/commit/09fbe6d7bd95992818c36d82e0f8434f221a5914)) | ||
* **support:** improve `Time.delay` typing ([c90a305](https://github.com/globalbrain/sefirot/commit/c90a3056ec86588208f34255b0fbea7aa2d1ab09)) | ||
### Features | ||
* **input-number:** add action prop support ([3fe9a70](https://github.com/globalbrain/sefirot/commit/3fe9a70af808cea7e5e0033685474bb47ddd57bd)) | ||
* **input-text:** add `disabled` feature ([#69](https://github.com/globalbrain/sefirot/issues/69)) ([8071b33](https://github.com/globalbrain/sefirot/commit/8071b337cf4584bf54c6306f20b4b4d0cd17b98b)) | ||
# [0.52.0](https://github.com/globalbrain/sefirot/compare/v0.51.0...v0.52.0) (2021-05-07) | ||
@@ -2,0 +14,0 @@ |
@@ -1,9 +0,9 @@ | ||
export function sleep(ms: number = 500): Promise<void> { | ||
return new Promise<undefined>((resolve) => { | ||
setTimeout(resolve, ms) | ||
}) | ||
type Awaited<T> = T extends undefined ? T : T extends PromiseLike<infer U> ? U : T | ||
export function sleep(ms: number = 500): Promise<undefined> { | ||
return new Promise<undefined>(resolve => setTimeout(resolve, ms)) | ||
} | ||
export function delay(iterable: Promise<any>[], ms?: number): Promise<any[]> { | ||
return Promise.all([...iterable, sleep(ms)]) | ||
export function delay<T extends any[]>(iterable: T, ms?: number): Promise<{ [P in keyof T]: Awaited<T[P]> }> { | ||
return Promise.all([...iterable, sleep(ms)]) as any | ||
} |
{ | ||
"name": "@globalbrain/sefirot", | ||
"version": "0.52.0", | ||
"version": "0.53.0", | ||
"description": "Vue Components for Global Brain Design System.", | ||
@@ -38,3 +38,3 @@ "files": [ | ||
"devDependencies": { | ||
"@juggle/resize-observer": "^3.3.0", | ||
"@juggle/resize-observer": "^3.3.1", | ||
"@nuxt/types": "^2.15.4", | ||
@@ -48,4 +48,4 @@ "@nuxt/typescript-build": "^2.1.0", | ||
"@types/body-scroll-lock": "^2.6.1", | ||
"@types/escape-html": "^1.0.0", | ||
"@types/jest": "^26.0.22", | ||
"@types/escape-html": "^1.0.1", | ||
"@types/jest": "^26.0.23", | ||
"@types/lodash-es": "^4.17.4", | ||
@@ -58,7 +58,7 @@ "@types/markdown-it": "^12.0.1", | ||
"body-scroll-lock": "^3.1.5", | ||
"codecov": "^3.8.1", | ||
"codecov": "^3.8.2", | ||
"conventional-changelog-cli": "^2.1.1", | ||
"dayjs": "^1.10.4", | ||
"escape-html": "^1.0.3", | ||
"eslint": "^7.23.0", | ||
"eslint": "^7.26.0", | ||
"fuse.js": "^6.4.6", | ||
@@ -78,4 +78,4 @@ "jest": "^26.6.3", | ||
"push-dir": "^0.4.1", | ||
"simplebar-vue": "^1.6.0", | ||
"ts-jest": "^26.5.4", | ||
"simplebar-vue": "^1.6.3", | ||
"ts-jest": "^26.5.6", | ||
"ts-loader": "^8.1.0", | ||
@@ -82,0 +82,0 @@ "typescript": "^4.2.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
294479
199
1985