Skip to content

Commit

Permalink
fix(invokers): remove duplicate export name
Browse files Browse the repository at this point in the history
BREAKING CHANGE - It is extremely doubtful than anyone was using this
or even able to use it with the previous duplicate name in place. This
does change the factory invoker decorator’s name from factory to
invokeAsFactory so that it doesn’t collide with the factory decorator
resolver.
  • Loading branch information
EisenbergEffect committed Oct 14, 2016

Verified

This commit was signed with the committer’s verified signature.
paveloom Pavel Sobolev
1 parent 606dabb commit b8b0175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invokers.js
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ export function invoker(value: Invoker): any {
/**
* Decorator: Specifies that the decorated item should be called as a factory function, rather than a constructor.
*/
export function factory(potentialTarget?: any): any {
export function invokeAsFactory(potentialTarget?: any): any {
let deco = function(target) {
metadata.define(metadata.invoker, FactoryInvoker.instance, target);
};

0 comments on commit b8b0175

Please sign in to comment.