From 0f75d967d02a97423cd193467d3a7673908c4156 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 2 Apr 2016 10:59:48 -0700 Subject: [PATCH] Add `convert` method to modules that pass thru. --- lib/fp/template/modules/thru.jst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/fp/template/modules/thru.jst b/lib/fp/template/modules/thru.jst index de0b105e7..2fd000f83 100644 --- a/lib/fp/template/modules/thru.jst +++ b/lib/fp/template/modules/thru.jst @@ -1 +1,12 @@ -module.exports = require('../<%= name %>'); +var convert = require('./convert'); + +var func = convert('<%= name %>', require('../<%= _.result(mapping.remap, name, name) %>'), { + 'cap': false, + 'curry': false, + 'fixed': false, + 'immutable': false, + 'rearg': false +}); + +func.placeholder = require('./placeholder'); +module.exports = func;