Skip to content

Commit 75dc146

Browse files
authored
Merge pull request #27 from geminiyellow/chore/lodash/import
chore(dependencies): remove lodash's pre-method packages
2 parents 2bd0d25 + cc2c068 commit 75dc146

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable vars-on-top, no-var, prefer-template */
2-
var isRegExp = require('lodash.isregexp');
3-
var escapeRegExp = require('lodash.escaperegexp');
4-
var isString = require('lodash.isstring');
5-
var flatten = require('lodash.flatten');
2+
var isRegExp = require('lodash/isRegExp');
3+
var escapeRegExp = require('lodash/escapeRegExp');
4+
var isString = require('lodash/isString');
5+
var flatten = require('lodash/flatten');
66

77
/**
88
* Given a string, replace every substring that is matched by the `match` regex

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@
3131
"replace"
3232
],
3333
"dependencies": {
34-
"lodash.escaperegexp": "^4.1.1",
35-
"lodash.flatten": "^4.2.0",
36-
"lodash.isregexp": "^4.0.1",
37-
"lodash.isstring": "^4.0.1"
34+
"lodash": "^4.17.4"
3835
},
3936
"devDependencies": {
4037
"ava": "^0.20.0",

0 commit comments

Comments
 (0)