Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.

Commit 53bb902

Browse files
committed
used lodash individual packages
1 parent 33907de commit 53bb902

File tree

3 files changed

+35
-11
lines changed

3 files changed

+35
-11
lines changed

compare-strings.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
var _forEach = require('lodash/forEach');
2-
var _map = require('lodash/map');
3-
var _every = require('lodash/every');
4-
var _maxBy = require('lodash/maxBy');
5-
var _flattenDeep = require('lodash/flattenDeep');
1+
var _forEach = require('lodash.foreach');
2+
var _map = require('lodash.map');
3+
var _every = require('lodash.every');
4+
var _maxBy = require('lodash.maxby');
5+
var _flattenDeep = require('lodash.flattendeep');
66

77
exports.compareTwoStrings = compareTwoStrings;
88
exports.findBestMatch = findBestMatch;

package-lock.json

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

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "string-similarity",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Finds degree of similarity between strings, based on Dice's Coefficient, which is mostly better than Levenshtein distance.",
55
"main": "compare-strings.js",
66
"scripts": {
@@ -32,6 +32,10 @@
3232
"jasmine": "^3.2.0"
3333
},
3434
"dependencies": {
35-
"lodash": "^4.13.1"
35+
"lodash.every": "^4.6.0",
36+
"lodash.flattendeep": "^4.4.0",
37+
"lodash.foreach": "^4.5.0",
38+
"lodash.map": "^4.6.0",
39+
"lodash.maxby": "^4.6.0"
3640
}
3741
}

0 commit comments

Comments
 (0)