From b8b017516e5861e9af4d7ab4674c3a4da76a67e9 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Thu, 13 Oct 2016 21:13:59 -0700 Subject: [PATCH] fix(invokers): remove duplicate export name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/invokers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invokers.js b/src/invokers.js index 2f773c4..afd3a96 100644 --- a/src/invokers.js +++ b/src/invokers.js @@ -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); };