@loopback/core
Advanced tools
Comparing version 4.0.0-alpha.19 to 4.0.0-alpha.20
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="4.0.0-alpha.20"></a> | ||
# [4.0.0-alpha.20](https://github.com/strongloop/loopback-next/compare/@loopback/core@4.0.0-alpha.19...@loopback/core@4.0.0-alpha.20) (2017-11-06) | ||
### Features | ||
* **core:** allow controllers to be bound via constructor ([#668](https://github.com/strongloop/loopback-next/issues/668)) ([a9f0fac](https://github.com/strongloop/loopback-next/commit/a9f0fac)) | ||
<a name="4.0.0-alpha.19"></a> | ||
@@ -8,0 +19,0 @@ # [4.0.0-alpha.19](https://github.com/strongloop/loopback-next/compare/@loopback/core@4.0.0-alpha.18...@loopback/core@4.0.0-alpha.19) (2017-10-31) |
@@ -116,2 +116,3 @@ import { Context, Binding, Constructor } from '@loopback/context'; | ||
components?: Array<Constructor<Component>>; | ||
controllers?: Array<ControllerClass>; | ||
servers?: { | ||
@@ -118,0 +119,0 @@ [name: string]: Constructor<Server>; |
@@ -31,2 +31,7 @@ "use strict"; | ||
} | ||
if (options.controllers) { | ||
for (const ctor of options.controllers) { | ||
this.controller(ctor); | ||
} | ||
} | ||
} | ||
@@ -33,0 +38,0 @@ /** |
@@ -116,2 +116,3 @@ import { Context, Binding, Constructor } from '@loopback/context'; | ||
components?: Array<Constructor<Component>>; | ||
controllers?: Array<ControllerClass>; | ||
servers?: { | ||
@@ -118,0 +119,0 @@ [name: string]: Constructor<Server>; |
@@ -39,2 +39,7 @@ "use strict"; | ||
} | ||
if (options.controllers) { | ||
for (const ctor of options.controllers) { | ||
this.controller(ctor); | ||
} | ||
} | ||
} | ||
@@ -41,0 +46,0 @@ /** |
{ | ||
"name": "@loopback/core", | ||
"version": "4.0.0-alpha.19", | ||
"version": "4.0.0-alpha.20", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "engines": { | ||
"clean": "rm -rf loopback-core*.tgz dist* package", | ||
"prepublish": "npm run build && npm run build:apidocs", | ||
"prepare": "npm run build && npm run build:apidocs", | ||
"pretest": "npm run build:current", | ||
@@ -27,8 +27,8 @@ "integration": "lb-dist mocha --opts ../../test/mocha.opts 'DIST/test/integration/**/*.js'", | ||
"dependencies": { | ||
"@loopback/context": "^4.0.0-alpha.17", | ||
"@loopback/context": "^4.0.0-alpha.18", | ||
"lodash": "^4.17.4" | ||
}, | ||
"devDependencies": { | ||
"@loopback/build": "^4.0.0-alpha.3", | ||
"@loopback/testlab": "^4.0.0-alpha.12" | ||
"@loopback/build": "^4.0.0-alpha.4", | ||
"@loopback/testlab": "^4.0.0-alpha.13" | ||
}, | ||
@@ -41,3 +41,4 @@ "files": [ | ||
"dist6/src", | ||
"api-docs" | ||
"api-docs", | ||
"src" | ||
], | ||
@@ -44,0 +45,0 @@ "repository": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
514046
100
4697