зеркало из https://github.com/Azure/git-rest-api.git
fix rxjs issue (#89)
* fix rxjs issue * fix tests * fix param decorator
This commit is contained in:
Родитель
73dc083932
Коммит
9810ed1ecc
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -46,14 +46,14 @@
|
||||||
"concurrently": "^6.2.1",
|
"concurrently": "^6.2.1",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"cross-var": "^1.1.0",
|
"cross-var": "^1.1.0",
|
||||||
"jest": "^24.8.0",
|
"jest": "^27.4.4",
|
||||||
"jest-junit": "^6.4.0",
|
"jest-junit": "^6.4.0",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
"ts-jest": "^24.0.2",
|
"ts-jest": "^27.1.1",
|
||||||
"tslint": "^5.17.0",
|
"tslint": "^5.17.0",
|
||||||
"tslint-config-prettier": "^1.18.0",
|
"tslint-config-prettier": "^1.18.0",
|
||||||
"tslint-plugin-prettier": "^2.0.1",
|
"tslint-plugin-prettier": "^2.0.1",
|
||||||
"typescript": "^3.5.1"
|
"typescript": "^4.5.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/common": "^8.0.7",
|
"@nestjs/common": "^8.0.7",
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
"nodegit": "^0.26.4",
|
"nodegit": "^0.26.4",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rimraf": "^2.6.3",
|
"rimraf": "^2.6.3",
|
||||||
"rxjs": "^6.5.2",
|
"rxjs": "^7.4.0",
|
||||||
"sqlite3": "^4.0.9",
|
"sqlite3": "^4.0.9",
|
||||||
"swagger-ui-express": "^4.1.2",
|
"swagger-ui-express": "^4.1.2",
|
||||||
"triple-beam": "^1.3.0",
|
"triple-beam": "^1.3.0",
|
||||||
|
|
|
@ -7,7 +7,8 @@ import { AUTH_HEADERS, RepoAuth } from "./repo-auth";
|
||||||
* Auth param decorator for controller to inject the repo auth object
|
* Auth param decorator for controller to inject the repo auth object
|
||||||
*/
|
*/
|
||||||
export const Auth = createParamDecorator(
|
export const Auth = createParamDecorator(
|
||||||
(_, req): RepoAuth => {
|
(_, ctx): RepoAuth => {
|
||||||
|
const req = ctx.switchToHttp().getRequest();
|
||||||
const repoAuth = RepoAuth.fromHeaders(req.headers);
|
const repoAuth = RepoAuth.fromHeaders(req.headers);
|
||||||
if (repoAuth) {
|
if (repoAuth) {
|
||||||
return repoAuth;
|
return repoAuth;
|
||||||
|
|
|
@ -50,7 +50,7 @@ export class DiskUsageService {
|
||||||
try {
|
try {
|
||||||
return await diskusage.check(this.config.dataDir);
|
return await diskusage.check(this.config.dataDir);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.error("Failed to get disk usage", error);
|
this.logger.error("Failed to get disk usage", error as any);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ export class LocalRepo {
|
||||||
this.refs.complete();
|
this.refs.complete();
|
||||||
}
|
}
|
||||||
if (!this.onDestroy.closed) {
|
if (!this.onDestroy.closed) {
|
||||||
this.onDestroy.next();
|
this.onDestroy.next(null);
|
||||||
this.onDestroy.complete();
|
this.onDestroy.complete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"tsBuildInfoFile": "./buildcache/backend.tsbuildinfo",
|
"tsBuildInfoFile": "./buildcache/backend.tsbuildinfo",
|
||||||
|
"skipDefaultLibCheck": true,
|
||||||
|
|
||||||
/* Additional Checks */
|
/* Additional Checks */
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче