diff --git a/libs/shared/src/lib/rxjs/finalize-with-value.ts b/libs/shared/src/lib/rxjs/finalize-with-value.ts index d7fdb30d..48b835ef 100644 --- a/libs/shared/src/lib/rxjs/finalize-with-value.ts +++ b/libs/shared/src/lib/rxjs/finalize-with-value.ts @@ -1,11 +1,11 @@ -// https://github.com/ReactiveX/rxjs/issues/4803#issuecomment-496711335 import { defer, Observable, ObservedValueOf } from 'rxjs'; import { finalize, tap } from 'rxjs/operators'; +// https://github.com/ReactiveX/rxjs/issues/4803#issuecomment-496711335 export function finalizeWithValue( callback: (value: T) => void, ): (source: Observable) => Observable>> { - return (source: Observable) => + return (source: Observable): Observable => defer(() => { let lastValue: T; return source.pipe( diff --git a/package.json b/package.json index aa9c9cf9..3d76791f 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "@types/socket.io": "2.1.4", "@types/socket.io-client": "1.4.32", "@typescript-eslint/eslint-plugin": "2.24.0", - "@typescript-eslint/parser": "2.24.0", + "@typescript-eslint/parser": "2.23.0", "babel-loader": "8.0.6", "babylonjs": "4.1.0", "benchmark": "2.1.4", diff --git a/yarn.lock b/yarn.lock index 6f98df24..7b6a0f55 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3246,6 +3246,15 @@ regexpp "^3.0.0" tsutils "^3.17.1" +"@typescript-eslint/experimental-utils@2.23.0": + version "2.23.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.23.0.tgz#5d2261c8038ec1698ca4435a8da479c661dc9242" + integrity sha512-OswxY59RcXH3NNPmq+4Kis2CYZPurRU6mG5xPcn24CjFyfdVli5mySwZz/g/xDbJXgDsYqNGq7enV0IziWGXVQ== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "2.23.0" + eslint-scope "^5.0.0" + "@typescript-eslint/experimental-utils@2.24.0": version "2.24.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.24.0.tgz#a5cb2ed89fedf8b59638dc83484eb0c8c35e1143" @@ -3264,14 +3273,14 @@ "@typescript-eslint/typescript-estree" "2.22.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.24.0": - version "2.24.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.24.0.tgz#2cf0eae6e6dd44d162486ad949c126b887f11eb8" - integrity sha512-H2Y7uacwSSg8IbVxdYExSI3T7uM1DzmOn2COGtCahCC3g8YtM1xYAPi2MAHyfPs61VKxP/J/UiSctcRgw4G8aw== +"@typescript-eslint/parser@2.23.1": + version "2.23.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.23.0.tgz#f3d4e2928ff647fe77fc2fcef1a3534fee6a3212" + integrity sha512-k61pn/Nepk43qa1oLMiyqApC6x5eP5ddPz6VUYXCAuXxbmRLqkPYzkFRKl42ltxzB2luvejlVncrEpflgQoSUg== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.24.0" - "@typescript-eslint/typescript-estree" "2.24.0" + "@typescript-eslint/experimental-utils" "2.23.0" + "@typescript-eslint/typescript-estree" "2.23.0" eslint-visitor-keys "^1.1.0" "@typescript-eslint/typescript-estree@2.22.0": @@ -3287,6 +3296,19 @@ semver "^6.3.0" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@2.23.0": + version "2.23.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.23.0.tgz#d355960fab96bd550855488dcc34b9a4acac8d36" + integrity sha512-pmf7IlmvXdlEXvE/JWNNJpEvwBV59wtJqA8MLAxMKLXNKVRC3HZBXR/SlZLPWTCcwOSg9IM7GeRSV3SIerGVqw== + dependencies: + debug "^4.1.1" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^6.3.0" + tsutils "^3.17.1" + "@typescript-eslint/typescript-estree@2.24.0": version "2.24.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.24.0.tgz#38bbc8bb479790d2f324797ffbcdb346d897c62a" @@ -13288,7 +13310,7 @@ request@^2.83.0, request@^2.87.0, request@^2.88.0: tunnel-agent "^0.6.0" uuid "^3.3.2" -"request@github:cypress-io/request#b5af0d1fa47eec97ba980cde90a13e69a2afcd16": +request@cypress-io/request#b5af0d1fa47eec97ba980cde90a13e69a2afcd16: version "2.88.1" resolved "https://codeload.github.com/cypress-io/request/tar.gz/b5af0d1fa47eec97ba980cde90a13e69a2afcd16" dependencies: