Skip to content

Commit bd7360a

Browse files
Removing lodash.template dependency as per the component Governance Alert (#70)
Co-authored-by: Brahmini Paleti (INFOSYS LIMITED) <[email protected]>
1 parent 003643c commit bd7360a

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const Concat = require('concat-with-sourcemaps');
66
const through = require('through2');
7-
const lodashTemplate = require('lodash.template');
7+
const _ = require('lodash');
88
const stream = require('stream');
99
const path = require('path');
1010

@@ -21,7 +21,7 @@ module.exports = (headerText, data) => {
2121
const template =
2222
data === false
2323
? headerText
24-
: lodashTemplate(headerText)(
24+
: _.template(headerText)(
2525
Object.assign({}, file.data || {}, { file: file, filename: filename }, data)
2626
);
2727

package-lock.json

Lines changed: 3 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"dependencies": {
5858
"concat-with-sourcemaps": "^1.1.0",
5959
"jest": "^25.1.0",
60-
"lodash.template": "^4.5.0",
60+
"lodash": "^4.17.21",
6161
"map-stream": "0.0.7",
6262
"through2": "^2.0.0"
6363
},

0 commit comments

Comments
 (0)