Skip to content

Commit 3ddf152

Browse files
committed
refactor: use individual lodash packages
1 parent 34bf9de commit 3ddf152

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict';
22

3-
const {escapeRegExp, capitalize, isUndefined, isString, isPlainObject} = require('lodash');
3+
const escapeRegExp = require('lodash.escaperegexp');
4+
const capitalize = require('lodash.capitalize');
5+
const isString = require('lodash.isstring');
6+
const isPlainObject = require('lodash.isplainobject');
47
const hostConfig = require('./lib/hosts-config');
58

69
const FENCE_BLOCK_REGEXP = /^(([ \t]*`{3,4})([^\n]*)([\s\S]+?)(^[ \t]*\2))/gm;

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"url": "https://github.com/pvdlg/issue-parser/issues"
88
},
99
"dependencies": {
10-
"lodash": "^4.17.4"
10+
"lodash.capitalize": "^4.2.1",
11+
"lodash.escaperegexp": "^4.1.2",
12+
"lodash.isplainobject": "^4.0.6",
13+
"lodash.isstring": "^4.0.1"
1114
},
1215
"devDependencies": {
1316
"ava": "^0.25.0",

0 commit comments

Comments
 (0)