Skip to content

Commit

Permalink
removes underscore dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Cowden committed Jan 29, 2017
1 parent bc73a31 commit 69b9b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/pluto.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const _ = require('underscore')
const co = require('co')
const memoize = require('lodash.memoize')

const MAX_CONSTRUCTOR_ARGUMENTS = 8

function isPromise(obj) {
Expand Down Expand Up @@ -88,7 +89,7 @@ function pluto() {
})
}

const get = _.memoize((name) => {
const get = memoize((name) => {
return new Promise((resolve, reject) => {
const resolver = namesToResolvers.get(name)
if (!resolver) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"co": "^4.6.0",
"underscore": "^1.8.3"
"lodash.memoize": "^4.1.2"
},
"devDependencies": {
"ava": "^0.17.0",
Expand Down

0 comments on commit 69b9b1c

Please sign in to comment.