Skip to content

Commit

Permalink
Ends up _ is a function also... I hate JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed Jul 2, 2020
1 parent a0327dd commit 68796f0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/setup_node_env/harden/lodash_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,17 @@ var hook = require('require-in-the-middle');
var isIterateeCall = require('lodash/_isIterateeCall');

hook(['lodash'], function (lodash) {
return {
...lodash,
template: createProxy(lodash.template),
};
lodash.template = createProxy(lodash.template);
return lodash;
});

hook(['lodash/template'], function (template) {
return createProxy(template);
});

hook(['lodash/fp'], function (fp) {
return {
...fp,
template: createFpProxy(fp.template),
};
fp.template = createFpProxy(fp.template);
return fp;
});

hook(['lodash/fp/template'], function (template) {
Expand Down

0 comments on commit 68796f0

Please sign in to comment.