Skip to content

Commit

Permalink
feat: Remove lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk authored and phated committed Nov 22, 2021
1 parent 6d155b4 commit 9fd2985
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const EE = require('events').EventEmitter;
const extend = require('extend');
const resolve = require('resolve');
const flaggedRespawn = require('flagged-respawn');
const isPlainObject = require('lodash.isplainobject');
const mapValues = require('lodash.mapvalues');
const isPlainObject = require('is-plain-object');
const mapValues = require('object.map');
const fined = require('fined');

const findCwd = require('./lib/find_cwd');
Expand Down
3 changes: 1 addition & 2 deletions lib/register_loader.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const rechoir = require('rechoir');
const isString = require('lodash.isstring');

module.exports = function(eventEmitter, extensions, configPath, cwd) {
extensions = extensions || {};

if (!isString(configPath)) {
if (typeof configPath !== 'string') {
return;
}

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@
"findup-sync": "^0.4.2",
"fined": "^1.0.1",
"flagged-respawn": "^0.3.2",
"lodash.isplainobject": "^4.0.4",
"lodash.isstring": "^4.0.1",
"lodash.mapvalues": "^4.4.0",
"is-plain-object": "^2.0.4",
"object.map": "^1.0.0",
"rechoir": "^0.6.2",
"resolve": "^1.1.7"
}
Expand Down

0 comments on commit 9fd2985

Please sign in to comment.