Skip to content

Commit 6e9b227

Browse files
authored
Merge pull request #251 from tusharmath/update-deps-0
chore(package): update dependencies
2 parents bbdfc7c + 0f91e9c commit 6e9b227

File tree

5 files changed

+108
-168
lines changed

5 files changed

+108
-168
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
cache:
3+
yarn: true
34
directories:
45
- ~/.npm
56
- node_modules
@@ -8,8 +9,8 @@ notifications:
89
node_js:
910
- stable
1011
before_script:
11-
- npm run coverage
12-
- npm run lint
12+
- yarn coverage
13+
- yarn lint
1314
after_success:
1415
- npm run travis-deploy-once "npm run semantic-release"
1516
branches:

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
1111
"hydra": "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm ./benchmarks/run",
1212
"prepublish": "tsc -d && npm run build",
13-
"test": "tsc && mocha",
13+
"test": "tsc && mocha --reporter=min",
1414
"test:watch": "mocha --watch",
1515
"build": "rollup -c ./config/rollup.config.js",
1616
"lint": "git ls-files | grep '.ts$' | xargs tslint",
@@ -23,27 +23,27 @@
2323
"license": "ISC",
2424
"devDependencies": {
2525
"@types/benchmark": "^1.0.30",
26-
"@types/mocha": "^5.0.0",
27-
"@types/node": "^9.3.0",
26+
"@types/mocha": "^5.2.0",
27+
"@types/node": "^10.0.0",
2828
"benchmark": "^2.1.2",
2929
"cli-table2": "^0.2.0",
30-
"coveralls": "^3.0.0",
30+
"coveralls": "^3.0.1",
3131
"cz-conventional-changelog": "^2.0.0",
32-
"ghooks": "^2.0.0",
33-
"mocha": "^5.0.0",
34-
"nyc": "^11.0.3",
35-
"prettier": "^1.11.1",
32+
"ghooks": "^2.0.4",
33+
"mocha": "^5.1.1",
34+
"nyc": "^11.7.1",
35+
"prettier": "^1.12.1",
3636
"prettify": "^0.1.7",
3737
"request-promise": "^4.1.1",
38-
"rollup": "^0.57.1",
38+
"rollup": "^0.58.0",
3939
"rollup-plugin-babili": "^3.0.0",
40-
"rollup-plugin-commonjs": "^9.1.0",
40+
"rollup-plugin-commonjs": "^9.1.3",
4141
"rollup-plugin-uglify": "^3.0.0",
42-
"semantic-release": "^15.1.2",
43-
"travis-deploy-once": "^4.3.0",
44-
"ts-node": "5.0.1",
45-
"tslint": "^5.3.2",
46-
"typescript": "^2.0.3",
42+
"semantic-release": "^15.3.1",
43+
"travis-deploy-once": "^5.0.0",
44+
"ts-node": "^6.0.0",
45+
"tslint": "^5.10.0",
46+
"typescript": "^2.8.3",
4747
"uglify": "^0.1.5",
4848
"validate-commit-msg": "^2.8.2"
4949
},

src/sinks/ToNodeStream.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Created by tushar on 29/10/17.
33
*/
4-
import {Transform, Writable} from 'stream'
4+
import {Transform, TransformCallback, Writable} from 'stream'
55
import {IObservable} from '../internal/Observable'
66
import {IObserver} from '../internal/Observer'
77
import {ISubscription} from '../internal/Subscription'
@@ -36,12 +36,8 @@ class ToNodeStream extends Transform {
3636
this.sub.unsubscribe()
3737
}
3838

39-
_transform(
40-
chunk: any,
41-
encoding: any,
42-
callback: (err: Error | null, value: any) => void
43-
) {
44-
callback(null, chunk)
39+
_transform(chunk: any, encoding: string, callback: TransformCallback) {
40+
callback(undefined, chunk)
4541
}
4642
}
4743

test/test.ForEach.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ describe('forEach()', () => {
2020
})
2121
it('should unsubscribe from the source on error', () => {
2222
const sh = createTestScheduler()
23-
const expected = '^---!'
2423
const testObservable = sh.Hot('-123#')
24+
const expected = ' ^---!'
2525
assert.throws(
2626
() =>
2727
sh.startSubscription(() => forEach(() => void 0, testObservable, sh)),
28-
'#'
28+
(_: Error) => _.message === '#'
2929
)
3030

3131
const actual = testObservable.toString()
32-
assert.strictEqual(actual, expected)
32+
assert.strictEqual(actual, expected.trim())
3333
})
3434
})
3535

0 commit comments

Comments
 (0)