Skip to content

Commit

Permalink
fix(deps): use minibase-create-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Nov 8, 2016
1 parent 26fb442 commit f27d6e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'use strict'

var collectionVisit = require('collection-visit')
var isRegistered = require('minibase-is-registered')
var createPlugin = require('minibase-create-plugin')

/**
* > Adds `.visit` method to your application. That
Expand Down Expand Up @@ -37,11 +37,7 @@ var isRegistered = require('minibase-is-registered')
*/

module.exports = function minibaseVisit (opts) {
return function minibaseVisit (self) {
self.use(isRegistered())
/* istanbul ignore next */
if (self.isRegistered('visit')) return

return createPlugin('minibase-visit', function minibaseVisit (self) {
/**
* > Visit `method` over the properties in the [base][]/[minibase][]
* instance or map visit over the object-elements in an array.
Expand Down Expand Up @@ -85,5 +81,5 @@ module.exports = function minibaseVisit (opts) {
collectionVisit(self, method, value)
return self
})
}
})
}
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": {
"collection-visit": "^0.2.3",
"minibase-is-registered": "^1.1.0"
"minibase-create-plugin": "^1.0.0"
},
"devDependencies": {
"commitizen": "^2.8.6",
Expand Down

0 comments on commit f27d6e6

Please sign in to comment.