adonis-fold
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,1 +1,23 @@ | ||
<a name="3.0.2"></a> | ||
## 3.0.2 (2016-06-26) | ||
### Bug Fixes | ||
* **Ioc:** do not transform output after calling hooks([8bc17ef](https://github.com/poppinss/adonis-fold/commit/8bc17ef)) | ||
### Features | ||
* **ioc:** add support for makePlain property([33ab0bf](https://github.com/poppinss/adonis-fold/commit/33ab0bf)) | ||
* **ioc:** Ioc.extend to pass all args to manager extend method([082060c](https://github.com/poppinss/adonis-fold/commit/082060c)) | ||
* **package.json:** Added commitizen([8a8fd3c](https://github.com/poppinss/adonis-fold/commit/8a8fd3c)) | ||
### Performance Improvements | ||
* **ioc,registerar:** triming namespaces and providers, improved var initialization for v8([c5e04ad](https://github.com/poppinss/adonis-fold/commit/c5e04ad)) | ||
<a name="3.0.1"></a> | ||
@@ -2,0 +24,0 @@ ## 3.0.1 (2016-04-30) |
{ | ||
"name": "adonis-fold", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Dependency manager and ioc container for your next NodeJs application", | ||
@@ -10,5 +10,5 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "npm run standard && istanbul cover _mocha --report lcovonly -- -R spec test/unit && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", | ||
"test": "npm run lint && istanbul cover _mocha --report lcovonly -- -R spec test/unit && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", | ||
"coverage": "istanbul cover _mocha test/unit --bail", | ||
"standard": "standard src/**/*.js test/**/*.spec.js" | ||
"lint": "standard src/**/*.js test/**/*.spec.js" | ||
}, | ||
@@ -15,0 +15,0 @@ "author": "adonisjs", |
@@ -124,6 +124,7 @@ 'use strict' | ||
_.each(extender, function (item) { | ||
const closure = item.closure | ||
const key = item.key | ||
const defination = closure(Ioc) | ||
manager.extend(key, defination) | ||
const args = item.args | ||
const closureOutput = item.closure(Ioc) | ||
const methodArgs = [key, closureOutput].concat(args) | ||
manager.extend.apply(manager, methodArgs) | ||
}) | ||
@@ -301,5 +302,6 @@ providerExtenders[namespace] = [] | ||
} | ||
const args = _.drop(_.toArray(arguments), 3) | ||
log.verbose('extending %s', namespace) | ||
providerExtenders[namespace] = providerExtenders[namespace] || [] | ||
providerExtenders[namespace].push({key, closure}) | ||
providerExtenders[namespace].push({key, closure, args}) | ||
} | ||
@@ -306,0 +308,0 @@ |
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
23650
525