From 1770ac4188c9cb4a92af6535683b6a3c8330b38f Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sun, 6 May 2018 10:33:30 +0530 Subject: [PATCH 1/4] chore(package): update dependencies --- package.json | 22 ++++---- src/sinks/ToNodeStream.ts | 10 +--- yarn.lock | 113 ++++++++++++++++++++------------------ 3 files changed, 74 insertions(+), 71 deletions(-) diff --git a/package.json b/package.json index fd2d93d..52f2c11 100644 --- a/package.json +++ b/package.json @@ -23,27 +23,27 @@ "license": "ISC", "devDependencies": { "@types/benchmark": "^1.0.30", - "@types/mocha": "^5.0.0", - "@types/node": "^9.3.0", + "@types/mocha": "^5.2.0", + "@types/node": "^9.6.12", "benchmark": "^2.1.2", "cli-table2": "^0.2.0", - "coveralls": "^3.0.0", + "coveralls": "^3.0.1", "cz-conventional-changelog": "^2.0.0", - "ghooks": "^2.0.0", - "mocha": "^5.0.0", - "nyc": "^11.0.3", - "prettier": "^1.11.1", + "ghooks": "^2.0.4", + "mocha": "^5.1.1", + "nyc": "^11.7.1", + "prettier": "^1.12.1", "prettify": "^0.1.7", "request-promise": "^4.1.1", "rollup": "^0.57.1", "rollup-plugin-babili": "^3.0.0", - "rollup-plugin-commonjs": "^9.1.0", + "rollup-plugin-commonjs": "^9.1.3", "rollup-plugin-uglify": "^3.0.0", - "semantic-release": "^15.1.2", + "semantic-release": "^15.3.1", "travis-deploy-once": "^4.3.0", "ts-node": "5.0.1", - "tslint": "^5.3.2", - "typescript": "^2.0.3", + "tslint": "^5.10.0", + "typescript": "^2.8.3", "uglify": "^0.1.5", "validate-commit-msg": "^2.8.2" }, diff --git a/src/sinks/ToNodeStream.ts b/src/sinks/ToNodeStream.ts index baa11c3..7c5fb55 100644 --- a/src/sinks/ToNodeStream.ts +++ b/src/sinks/ToNodeStream.ts @@ -1,7 +1,7 @@ /** * Created by tushar on 29/10/17. */ -import {Transform, Writable} from 'stream' +import {Transform, TransformCallback, Writable} from 'stream' import {IObservable} from '../internal/Observable' import {IObserver} from '../internal/Observer' import {ISubscription} from '../internal/Subscription' @@ -36,12 +36,8 @@ class ToNodeStream extends Transform { this.sub.unsubscribe() } - _transform( - chunk: any, - encoding: any, - callback: (err: Error | null, value: any) => void - ) { - callback(null, chunk) + _transform(chunk: any, encoding: string, callback: TransformCallback) { + callback(undefined, chunk) } } diff --git a/yarn.lock b/yarn.lock index f2e529f..22cce37 100644 --- a/yarn.lock +++ b/yarn.lock @@ -104,13 +104,13 @@ version "0.0.38" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.38.tgz#c1be40aa933723c608820a99a373a16d215a1ca2" -"@types/mocha@^5.0.0": - version "5.0.0" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.0.0.tgz#a3014921991066193f6c8e47290d4d598dfd19e6" +"@types/mocha@^5.2.0": + version "5.2.0" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.0.tgz#b3c8e69f038835db1a7fdc0b3d879fc50506e29e" -"@types/node@^9.3.0": - version "9.4.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.7.tgz#57d81cd98719df2c9de118f2d5f3b1120dcd7275" +"@types/node@^9.6.12": + version "9.6.12" + resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.12.tgz#ab2d716505858ebc8ee94b347b5c9d311eb81b72" JSONStream@^1.0.4: version "1.3.2" @@ -1389,18 +1389,17 @@ core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" -cosmiconfig@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-4.0.0.tgz#760391549580bbd2df1e562bc177b13c290972dc" +cosmiconfig@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.1.tgz#1467d4b6010116a3adcc1d8cbcc126d993a5afa9" dependencies: is-directory "^0.3.1" js-yaml "^3.9.0" parse-json "^4.0.0" - require-from-string "^2.0.1" -coveralls@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.0.tgz#22ef730330538080d29b8c151dc9146afde88a99" +coveralls@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.1.tgz#12e15914eaa29204e56869a5ece7b9e1492d2ae2" dependencies: js-yaml "^3.6.1" lcov-parse "^0.0.10" @@ -1604,9 +1603,9 @@ electron-to-chromium@^1.3.30: version "1.3.39" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.39.tgz#d7a4696409ca0995e2750156da612c221afad84d" -env-ci@^1.0.0: - version "1.4.2" - resolved "https://registry.yarnpkg.com/env-ci/-/env-ci-1.4.2.tgz#e26c09d0f6a2142f900a8adac91281fcb748e1f1" +env-ci@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/env-ci/-/env-ci-2.1.0.tgz#615fc08b386c41f30c9ae567b6b30703e4ce9caa" dependencies: execa "^0.10.0" java-properties "^0.2.9" @@ -1923,9 +1922,9 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -ghooks@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/ghooks/-/ghooks-2.0.2.tgz#b01aee524eb9d6ee7339efc29cda954519f12556" +ghooks@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/ghooks/-/ghooks-2.0.4.tgz#fd50e040ff548906ae42cb51793a01bfe24567b9" dependencies: findup "0.1.5" lodash.clone "4.5.0" @@ -1952,12 +1951,19 @@ git-up@^2.0.0: is-ssh "^1.3.0" parse-url "^1.3.0" -git-url-parse@^8.0.0, git-url-parse@^8.1.0: +git-url-parse@^8.0.0: version "8.2.0" resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-8.2.0.tgz#74969b0105f805df58873ee5b96bc1a4dc0573b1" dependencies: git-up "^2.0.0" +git-url-parse@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-9.0.0.tgz#a82a36acc3544c77ed0984d6488b37fbcfbec24d" + dependencies: + git-up "^2.0.0" + parse-domain "^2.0.0" + glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -2681,9 +2687,9 @@ istanbul-lib-source-maps@^1.2.3: rimraf "^2.6.1" source-map "^0.5.3" -istanbul-reports@^1.1.4: - version "1.3.0" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.3.0.tgz#2f322e81e1d9520767597dca3c20a0cce89a3554" +istanbul-reports@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.4.0.tgz#3d7b44b912ecbe7652a603662b962120739646a1" dependencies: handlebars "^4.0.3" @@ -3106,7 +3112,7 @@ minimatch@0.3: lru-cache "2" sigmund "~1.0.0" -minimatch@^3.0.4: +minimatch@3.0.4, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: @@ -3155,9 +3161,9 @@ mkdirp@0.5.1, mkdirp@^0.5.0, mkdirp@^0.5.1: dependencies: minimist "0.0.8" -mocha@^5.0.0: - version "5.0.4" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.0.4.tgz#6b7aa328472da1088e69d47e75925fd3a3bb63c6" +mocha@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.1.1.tgz#b774c75609dac05eb48f4d9ba1d827b97fde8a7b" dependencies: browser-stdout "1.3.1" commander "2.11.0" @@ -3167,6 +3173,7 @@ mocha@^5.0.0: glob "7.1.2" growl "1.10.3" he "1.1.1" + minimatch "3.0.4" mkdirp "0.5.1" supports-color "4.4.0" @@ -3258,9 +3265,9 @@ number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" -nyc@^11.0.3: - version "11.6.0" - resolved "https://registry.yarnpkg.com/nyc/-/nyc-11.6.0.tgz#d9c7b51ffceb6bba099a4683a6adc1b331b98853" +nyc@^11.7.1: + version "11.7.1" + resolved "https://registry.yarnpkg.com/nyc/-/nyc-11.7.1.tgz#7cb0a422e501b88ff2c1634341dec2560299d67b" dependencies: archy "^1.0.0" arrify "^1.0.1" @@ -3277,7 +3284,7 @@ nyc@^11.0.3: istanbul-lib-instrument "^1.10.0" istanbul-lib-report "^1.1.3" istanbul-lib-source-maps "^1.2.3" - istanbul-reports "^1.1.4" + istanbul-reports "^1.4.0" md5-hex "^1.2.0" merge-source-map "^1.0.2" micromatch "^2.3.11" @@ -3416,6 +3423,10 @@ package-json@^4.0.0: registry-url "^3.0.3" semver "^5.1.0" +parse-domain@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/parse-domain/-/parse-domain-2.0.0.tgz#e9f42f697c30f7c2051dc5c55ff4d8a80da7943c" + parse-github-url@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395" @@ -3555,9 +3566,9 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@^1.11.1: - version "1.11.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.11.1.tgz#61e43fc4cd44e68f2b0dfc2c38cd4bb0fccdcc75" +prettier@^1.12.1: + version "1.12.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325" prettify@^0.1.7: version "0.1.7" @@ -3816,10 +3827,6 @@ require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" -require-from-string@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.1.tgz#c545233e9d7da6616e9d59adfb39fc9f588676ff" - require-main-filename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" @@ -3892,9 +3899,9 @@ rollup-plugin-babili@^3.0.0: babel-core "^6.21.0" babel-preset-babili "^0.1.3" -rollup-plugin-commonjs@^9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.1.0.tgz#468341aab32499123ee9a04b22f51d9bf26fdd94" +rollup-plugin-commonjs@^9.1.3: + version "9.1.3" + resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.1.3.tgz#37bfbf341292ea14f512438a56df8f9ca3ba4d67" dependencies: estree-walker "^0.5.1" magic-string "^0.22.4" @@ -3940,9 +3947,9 @@ safe-regex@^1.1.0: dependencies: ret "~0.1.10" -semantic-release@^15.1.2: - version "15.1.2" - resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-15.1.2.tgz#ba55d0cd182f3077bc9f10342c58a28c878d67ed" +semantic-release@^15.3.1: + version "15.3.1" + resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-15.3.1.tgz#5acc4ae55aaed68c89d69056bfad3698e671083e" dependencies: "@semantic-release/commit-analyzer" "^5.0.0" "@semantic-release/error" "^2.2.0" @@ -3951,13 +3958,13 @@ semantic-release@^15.1.2: "@semantic-release/release-notes-generator" "^6.0.0" aggregate-error "^1.0.0" chalk "^2.3.0" - cosmiconfig "^4.0.0" + cosmiconfig "^5.0.1" debug "^3.1.0" - env-ci "^1.0.0" + env-ci "^2.0.0" execa "^0.10.0" get-stream "^3.0.0" git-log-parser "^1.2.0" - git-url-parse "^8.1.0" + git-url-parse "^9.0.0" hook-std "^0.4.0" hosted-git-info "^2.6.0" lodash "^4.17.4" @@ -4431,9 +4438,9 @@ tslib@^1.8.0, tslib@^1.8.1: version "1.9.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" -tslint@^5.3.2: - version "5.9.1" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae" +tslint@^5.10.0: + version "5.10.0" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.10.0.tgz#11e26bccb88afa02dd0d9956cae3d4540b5f54c3" dependencies: babel-code-frame "^6.22.0" builtin-modules "^1.1.1" @@ -4464,9 +4471,9 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" -typescript@^2.0.3: - version "2.7.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836" +typescript@^2.8.3: + version "2.8.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170" uglify-es@^3.3.7: version "3.3.9" From 46038a73242455a27470f4790e9f374c2158b017 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sun, 6 May 2018 10:39:04 +0530 Subject: [PATCH 2/4] chore(script): update test reporter --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 52f2c11..ba8badc 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls", "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", "prepublish": "tsc -d && npm run build", - "test": "tsc && mocha", + "test": "tsc && mocha --reporter=min", "test:watch": "mocha --watch", "build": "rollup -c ./config/rollup.config.js", "lint": "git ls-files | grep '.ts$' | xargs tslint", From f7c416bd7d5e3532ebacf3ee32f81077470a9368 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sun, 6 May 2018 10:44:12 +0530 Subject: [PATCH 3/4] chore(package): enable yarn and update major versions --- .travis.yml | 5 ++- package.json | 8 ++-- yarn.lock | 118 ++++++++++++--------------------------------------- 3 files changed, 34 insertions(+), 97 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7feb2d7..d648818 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: node_js cache: + yarn: true directories: - ~/.npm - node_modules @@ -8,8 +9,8 @@ notifications: node_js: - stable before_script: - - npm run coverage - - npm run lint + - yarn coverage + - yarn lint after_success: - npm run travis-deploy-once "npm run semantic-release" branches: diff --git a/package.json b/package.json index ba8badc..bd198bf 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "devDependencies": { "@types/benchmark": "^1.0.30", "@types/mocha": "^5.2.0", - "@types/node": "^9.6.12", + "@types/node": "^10.0.0", "benchmark": "^2.1.2", "cli-table2": "^0.2.0", "coveralls": "^3.0.1", @@ -35,13 +35,13 @@ "prettier": "^1.12.1", "prettify": "^0.1.7", "request-promise": "^4.1.1", - "rollup": "^0.57.1", + "rollup": "^0.58.0", "rollup-plugin-babili": "^3.0.0", "rollup-plugin-commonjs": "^9.1.3", "rollup-plugin-uglify": "^3.0.0", "semantic-release": "^15.3.1", - "travis-deploy-once": "^4.3.0", - "ts-node": "5.0.1", + "travis-deploy-once": "^5.0.0", + "ts-node": "^6.0.0", "tslint": "^5.10.0", "typescript": "^2.8.3", "uglify": "^0.1.5", diff --git a/yarn.lock b/yarn.lock index 22cce37..99d5947 100644 --- a/yarn.lock +++ b/yarn.lock @@ -90,17 +90,11 @@ version "0.7.0" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd" -"@types/acorn@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@types/acorn/-/acorn-4.0.3.tgz#d1f3e738dde52536f9aad3d3380d14e448820afd" - dependencies: - "@types/estree" "*" - "@types/benchmark@^1.0.30": version "1.0.31" resolved "https://registry.yarnpkg.com/@types/benchmark/-/benchmark-1.0.31.tgz#2dd3514e93396f362ba5551a7c9ff0da405c1d38" -"@types/estree@*", "@types/estree@0.0.38": +"@types/estree@0.0.38": version "0.0.38" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.38.tgz#c1be40aa933723c608820a99a373a16d215a1ca2" @@ -108,9 +102,9 @@ version "5.2.0" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.0.tgz#b3c8e69f038835db1a7fdc0b3d879fc50506e29e" -"@types/node@^9.6.12": - version "9.6.12" - resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.12.tgz#ab2d716505858ebc8ee94b347b5c9d311eb81b72" +"@types/node@*", "@types/node@^10.0.0": + version "10.0.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.4.tgz#130598ee56e9a1210a53f557d64935571f05390d" JSONStream@^1.0.4: version "1.3.2" @@ -123,16 +117,6 @@ abbrev@1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" -acorn-dynamic-import@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278" - dependencies: - acorn "^5.0.0" - -acorn@^5.0.0, acorn@^5.5.3: - version "5.5.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.5.3.tgz#f473dd47e0277a08e28e9bec5aeeb04751f0b8c9" - agent-base@4, agent-base@^4.1.0: version "4.2.0" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.0.tgz#9838b5c3392b962bad031e6a4c5e1024abec45ce" @@ -1470,12 +1454,6 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -date-time@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/date-time/-/date-time-2.1.0.tgz#0286d1b4c769633b3ca13e1e62558d2dbdc2eba2" - dependencies: - time-zone "^1.0.0" - dateformat@1.0.2-1.2.3: version "1.0.2-1.2.3" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.2-1.2.3.tgz#b0220c02de98617433b72851cf47de3df2cdbee9" @@ -2383,10 +2361,6 @@ invert-kv@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" -irregular-plurals@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-1.4.0.tgz#2ca9b033651111855412f16be5d77c62a458a766" - is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -2576,12 +2550,6 @@ is-redirect@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" -is-reference@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.1.0.tgz#50e6ef3f64c361e2c53c0416cdc9420037f2685b" - dependencies: - "@types/estree" "0.0.38" - is-retry-allowed@^1.0.0, is-retry-allowed@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" @@ -2854,10 +2822,6 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" -locate-character@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/locate-character/-/locate-character-2.0.5.tgz#f2d2614d49820ecb3c92d80d193b8db755f74c0f" - locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" @@ -3404,6 +3368,12 @@ p-retry@^1.0.0: dependencies: retry "^0.10.0" +p-retry@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-2.0.0.tgz#b97f1f4d6d81a3c065b2b40107b811e995c1bfba" + dependencies: + retry "^0.12.0" + p-timeout@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-2.0.1.tgz#d8dd1979595d2dc0139e1fe46b8b646cb3cdf038" @@ -3453,10 +3423,6 @@ parse-json@^4.0.0: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" -parse-ms@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-1.0.1.tgz#56346d4749d78f23430ca0c713850aef91aa361d" - parse-url@^1.3.0: version "1.3.11" resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-1.3.11.tgz#57c15428ab8a892b1f43869645c711d0e144b554" @@ -3544,12 +3510,6 @@ platform@^1.3.3: version "1.3.5" resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.5.tgz#fb6958c696e07e2918d2eeda0f0bc9448d733444" -plur@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/plur/-/plur-2.1.2.tgz#7482452c1a0f508e3e344eaec312c91c29dc655a" - dependencies: - irregular-plurals "^1.0.0" - posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" @@ -3577,13 +3537,6 @@ prettify@^0.1.7: js-prettify "~1.4.0" lodash "~1.3.1" -pretty-ms@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-3.1.0.tgz#e9cac9c76bf6ee52fe942dd9c6c4213153b12881" - dependencies: - parse-ms "^1.0.0" - plur "^2.1.2" - private@^0.1.6, private@^0.1.7: version "0.1.8" resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" @@ -3831,10 +3784,6 @@ require-main-filename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" -require-relative@^0.8.7: - version "0.8.7" - resolved "https://registry.yarnpkg.com/require-relative/-/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" - resolve-from@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57" @@ -3871,6 +3820,10 @@ retry@^0.10.0: version "0.10.1" resolved "https://registry.yarnpkg.com/retry/-/retry-0.10.1.tgz#e76388d217992c252750241d3d3956fed98d8ff4" +retry@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" + right-align@^0.1.1: version "0.1.3" resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" @@ -3921,21 +3874,12 @@ rollup-pluginutils@^2.0.1: estree-walker "^0.3.0" micromatch "^2.3.11" -rollup@^0.57.1: - version "0.57.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.57.1.tgz#0bb28be6151d253f67cf4a00fea48fb823c74027" - dependencies: - "@types/acorn" "^4.0.3" - acorn "^5.5.3" - acorn-dynamic-import "^3.0.0" - date-time "^2.1.0" - is-reference "^1.1.0" - locate-character "^2.0.5" - pretty-ms "^3.1.0" - require-relative "^0.8.7" - rollup-pluginutils "^2.0.1" - signal-exit "^3.0.2" - sourcemap-codec "^1.4.1" +rollup@^0.58.0: + version "0.58.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.58.2.tgz#2feddea8c0c022f3e74b35c48e3c21b3433803ce" + dependencies: + "@types/estree" "0.0.38" + "@types/node" "*" safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.1" @@ -4124,10 +4068,6 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" -sourcemap-codec@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz#c8fd92d91889e902a07aee392bdd2c5863958ba2" - spawn-command@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2.tgz#9544e1a43ca045f8531aac1a48cb29bdae62338e" @@ -4349,10 +4289,6 @@ through@2, "through@>=2.2.7 <3": version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" -time-zone@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/time-zone/-/time-zone-1.0.0.tgz#99c5bf55958966af6d06d83bdf3800dc82faec5d" - timed-out@^4.0.0, timed-out@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" @@ -4393,9 +4329,9 @@ traverse@~0.6.6: version "0.6.6" resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" -travis-deploy-once@^4.3.0: - version "4.4.1" - resolved "https://registry.yarnpkg.com/travis-deploy-once/-/travis-deploy-once-4.4.1.tgz#6a49e005dbb03321f5530db94eba3bf924d35f33" +travis-deploy-once@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/travis-deploy-once/-/travis-deploy-once-5.0.0.tgz#5fd23709db3104d18f48778df969409340b583d1" dependencies: babel-polyfill "^6.26.0" babel-preset-env "^1.6.1" @@ -4403,7 +4339,7 @@ travis-deploy-once@^4.3.0: chalk "^2.1.0" execa "^0.10.0" got "^8.0.1" - p-retry "^1.0.0" + p-retry "^2.0.0" semver "^5.4.1" update-notifier "^2.3.0" url-join "^4.0.0" @@ -4421,9 +4357,9 @@ trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" -ts-node@5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-5.0.1.tgz#78e5d1cb3f704de1b641e43b76be2d4094f06f81" +ts-node@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.2.tgz#e132d530e53173bc6a8c21ea65f64d8b47bc573e" dependencies: arrify "^1.0.0" chalk "^2.3.0" From 0f91e9c1216ea97cdbdfdf0594070e079f4ff691 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sun, 6 May 2018 10:51:10 +0530 Subject: [PATCH 4/4] test(forEach): update test for node 10 --- test/test.ForEach.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.ForEach.ts b/test/test.ForEach.ts index a2d7c95..9593e84 100644 --- a/test/test.ForEach.ts +++ b/test/test.ForEach.ts @@ -20,16 +20,16 @@ describe('forEach()', () => { }) it('should unsubscribe from the source on error', () => { const sh = createTestScheduler() - const expected = '^---!' const testObservable = sh.Hot('-123#') + const expected = ' ^---!' assert.throws( () => sh.startSubscription(() => forEach(() => void 0, testObservable, sh)), - '#' + (_: Error) => _.message === '#' ) const actual = testObservable.toString() - assert.strictEqual(actual, expected) + assert.strictEqual(actual, expected.trim()) }) })