Skip to content

Commit 513c75f

Browse files
committed
build: Update various dependencies to latest
argsparser 0.0.6 → 0.0.7 co 3.0.6 → 4.6.0 instalbul 0.3.9 → 0.4.5 [optional] timekeeper 0.0.4 → 1.0.0 [dev] The 'co()' function now returns a Promise. "Thunks" are still supported, though require using co.wrap() instead. Fixes #127
1 parent 5c0d8e8 commit 513c75f

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

lib/child.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ if (generators.support) {
124124
if (generators.isGeneratorFn(callback)) {
125125
fn = function(assert) {
126126
stop();
127-
co(callback).call(this, assert, function(err) {
128-
if (err) return console.log(err.stack)
127+
co.wrap(callback).call(this, assert).then(function() {
128+
start();
129+
}).catch(function (err) {
130+
console.log(err.stack);
129131
start();
130132
});
131133
};

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@
3838
"lint": "eslint ."
3939
},
4040
"dependencies": {
41-
"argsparser": "^0.0.6",
41+
"argsparser": "^0.0.7",
4242
"cli-table": "^0.3.0",
43-
"co": "^3.0.6",
43+
"co": "^4.6.0",
4444
"qunitjs": "1.23.1",
4545
"tracejs": "^0.1.8",
4646
"underscore": "^1.6.0"
4747
},
4848
"devDependencies": {
4949
"chainer": "^0.0.5",
5050
"eslint": "^3.17.1",
51-
"timekeeper": "^0.0.4"
51+
"timekeeper": "^1.0.0"
5252
},
5353
"optionalDependencies": {
54-
"istanbul": "0.3.9"
54+
"istanbul": "0.4.5"
5555
}
5656
}

test/fixtures/generators-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
/* global thunk */
33
test('generators', function* (assert) {
44
var data = yield thunk();
5-
assert.deepEqual(data, {a: 1}, 'woks');
5+
assert.deepEqual(data, {a: 1}, 'works');
66
});

0 commit comments

Comments
 (0)