Skip to content

Commit

Permalink
fix: Bad dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Feb 19, 2018
1 parent 4a5b266 commit 5fefd16
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 27 deletions.
2 changes: 2 additions & 0 deletions src/common/jsonschema/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from "./decorators";
export * from "./class/JsonSchema";
export * from "./class/PropertyMetadata";
export * from "./registries/PropertyRegistry";
export * from "./services/JsonSchemesService";
1 change: 0 additions & 1 deletion src/common/mvc/decorators/class/controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Type, isArrayOrArrayClass} from "@tsed/core";
import {} from "../../../core/utils/index";
import {IControllerOptions} from "../../interfaces/IControllerOptions";
import {PathParamsType} from "../../interfaces/PathParamsType";
import {ControllerRegistry} from "../../registries/ControllerRegistry";
Expand Down
4 changes: 2 additions & 2 deletions src/multipartfiles/filters/MultipartFileFilter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Filter} from "../../common/filters/decorators/filter";
import {IFilter} from "../../common/filters/interfaces";
import {Filter, IFilter} from "@tsed/common";

/**
* @private
* @filter
Expand Down
3 changes: 1 addition & 2 deletions src/multipartfiles/filters/MultipartFilesFilter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Filter} from "../../common/filters/decorators/filter";
import {IFilter} from "../../common/filters/interfaces";
import {Filter, IFilter} from "@tsed/common";

/**
* @private
Expand Down
18 changes: 10 additions & 8 deletions src/multipartfiles/middlewares/MultipartFileMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {
EndpointInfo,
EndpointMetadata,
IMiddleware,
Middleware,
Next,
Req,
Res,
ServerSettingsService
} from "@tsed/common";
import {$log} from "ts-log-debug";
import {ServerSettingsService} from "../../common/config/services/ServerSettingsService";
import {EndpointInfo} from "../../common/filters/decorators/endpointInfo";
import {Next} from "../../common/filters/decorators/next";
import {Req} from "../../common/filters/decorators/request";
import {Res} from "../../common/filters/decorators/response";
import {EndpointMetadata} from "../../common/mvc/class/EndpointMetadata";
import {Middleware} from "../../common/mvc/decorators";
import {IMiddleware} from "../../common/mvc/interfaces";

/**
* @private
Expand Down
4 changes: 1 addition & 3 deletions src/swagger/class/OpenApiPropertiesBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {JsonSchema, PropertyMetadata, PropertyRegistry} from "@tsed/common";
import {deepExtends, nameOf, Storable, Store, Type} from "@tsed/core";
import {Response, Schema} from "swagger-schema-official";
import {JsonSchema} from "../../common/jsonschema/class/JsonSchema";
import {PropertyMetadata} from "../../common/jsonschema/class/PropertyMetadata";
import {PropertyRegistry} from "../../common/jsonschema/registries/PropertyRegistry";
import {swaggerType} from "../utils";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/swagger/decorators/description.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {getDecoratorType, Store} from "@tsed/core";
import {Schema} from "../../common/jsonschema/decorators/schema";
import {Schema} from "@tsed/common";
import {BaseParameter} from "./baseParameter";
import {Operation} from "./operation";

Expand Down
2 changes: 1 addition & 1 deletion src/swagger/decorators/example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Schema} from "../../common/jsonschema/decorators/schema";
import {Schema} from "@tsed/common";

/**
* Add a example metadata on the decorated element.
Expand Down
2 changes: 1 addition & 1 deletion src/swagger/decorators/title.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {getDecoratorType} from "@tsed/core";
import * as mod from "../../common/jsonschema/decorators/title";
import * as mod from "@tsed/common";
import {BaseParameter} from "./baseParameter";
import {Operation} from "./operation";

Expand Down
2 changes: 1 addition & 1 deletion src/testing/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ServerLoader} from "@tsed/common";
import {$log} from "ts-log-debug";
import {ServerLoader} from "../common/server/components/ServerLoader";

/**
* Load the server silently without listening port and configure it on test profile.
Expand Down
2 changes: 1 addition & 1 deletion src/testing/inject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {InjectorService} from "../common/di/services/InjectorService";
import {InjectorService} from "@tsed/common";
import {Done} from "./done";
import {loadInjector} from "./loadInjector";

Expand Down
2 changes: 1 addition & 1 deletion src/testing/invoke.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {InjectorService} from "@tsed/common";
import {Type} from "@tsed/core";
import {InjectorService} from "../common/di/services/InjectorService";
import {loadInjector} from "./loadInjector";

export function invoke(target: Type<any>, providers: { provide: any | symbol, use: any }[]) {
Expand Down
6 changes: 1 addition & 5 deletions src/testing/loadInjector.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import {ExpressApplication, globalServerSettings, HttpServer, HttpsServer, InjectorService} from "@tsed/common";
import {Env} from "@tsed/core";
import {globalServerSettings} from "../common/config";
import {InjectorService} from "../common/di/services/InjectorService";
import {ExpressApplication} from "../common/mvc/decorators";
import {HttpServer} from "../common/server/decorators/httpServer";
import {HttpsServer} from "../common/server/decorators/httpsServer";

export function loadInjector() {
if (!InjectorService.has(ExpressApplication)) {
Expand Down

0 comments on commit 5fefd16

Please sign in to comment.