Skip to content

Commit

Permalink
fix(node): support node >= 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Nov 13, 2016
1 parent 629690e commit af929e8
Show file tree
Hide file tree
Showing 5 changed files with 869 additions and 243 deletions.
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ node_js:
- "0.12"
- "0.10"

matrix:
fast_finish: true
allow_failures:
- node_js: "4"
- node_js: "0.12"
- node_js: "0.10"

notifications:
email: false

Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

'use strict'

const util = require('util')
const utils = require('./utils')
var util = require('util')
var utils = require('./utils')

/**
* > Creates an instance of `MiniBase` with optional `options`
Expand Down Expand Up @@ -236,7 +236,7 @@ utils.delegate(MiniBase.prototype, {
utils.tryCatchCallback.call(this, fn, {
passCallback: true,
args: [this]
}, (err, res) => {
}, function (err, res) {
if (err) {
var anon = 'anonymous ' + (this._anonymousPluginsCount + 1)
err.fn = fn
Expand All @@ -245,7 +245,7 @@ utils.delegate(MiniBase.prototype, {
return
}
this.emit('use', fn, res)
})
}.bind(this))
return this
}
})
Expand Down Expand Up @@ -342,7 +342,7 @@ utils.delegate(MiniBase, {
* @api public
*/

extend: utils.staticExtend(MiniBase, (Child) => {
extend: utils.staticExtend(MiniBase, function (Child) {
utils.delegate(Child, {
delegate: utils.delegate,
define: utils.define
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"try-catch-callback": "^2.0.0"
},
"devDependencies": {
"commitizen": "^2.8.6",
"coveralls": "^2.11.12",
"commitizen": "~2.7.0",
"coveralls": "^2.11.15",
"cz-conventional-changelog": "^1.2.0",
"mukla": "^0.4.1",
"mukla": "^0.4.8",
"nyc": "^8.1.0",
"pre-commit": "^1.1.3",
"standard": "^8.4.0",
"standard": "^8.5.0",
"standard-version": "^3.0.0"
},
"files": [
Expand Down Expand Up @@ -128,7 +128,6 @@
}
},
"engines": {
"node": ">=4",
"npm": ">=3"
"node": ">=0.10.0"
}
}
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

'use strict'

let MiniBase = require('./index').MiniBase
let app = new MiniBase({
var MiniBase = require('./index').MiniBase
var app = new MiniBase({
silent: true
})

Expand Down
Loading

0 comments on commit af929e8

Please sign in to comment.