From 9703dc1e256986832a2db400a3d41fd545981439 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Sun, 26 Feb 2017 22:44:30 -0500 Subject: [PATCH] Upgrade to typescript 2.2.1 --- package.json | 2 +- .../promises/test.ts.lint | 10 ++++----- yarn.lock | 21 ++++++++++--------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 5c52a5d0e28..3987176ea6c 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "rimraf": "^2.5.4", "tslint": "latest", "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", - "typescript": "^2.1.6" + "typescript": "^2.2.1" }, "license": "Apache-2.0", "engines": { diff --git a/test/rules/no-floating-promises/promises/test.ts.lint b/test/rules/no-floating-promises/promises/test.ts.lint index baeb2b5c3dd..115fc066f27 100644 --- a/test/rules/no-floating-promises/promises/test.ts.lint +++ b/test/rules/no-floating-promises/promises/test.ts.lint @@ -1,16 +1,16 @@ -class Promise { - then(): Promise; +class Promise { + then(): Promise; } function returnsPromiseFunction() { - return new Promise(); + return new Promise(); } -const returnsPromiseVariable = () => new Promise(); +const returnsPromiseVariable = () => new Promise(); class ReturnsPromiseClass { returnsPromiseMemberFunction() { - return new Promise(); + return new Promise(); } returnsPromiseMemberVariable = () => new Promise(); diff --git a/yarn.lock b/yarn.lock index 8beda8980be..f1996647356 100644 --- a/yarn.lock +++ b/yarn.lock @@ -374,9 +374,6 @@ event-stream@~3.3.0: stream-combiner "~0.0.4" through "~2.3.1" -extend@3, extend@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" execa@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/execa/-/execa-0.4.0.tgz#4eb6467a36a095fabb2970ff9d5e3fb7bce6ebc3" @@ -388,6 +385,10 @@ execa@^0.4.0: path-key "^1.0.0" strip-eof "^1.0.0" +extend@3, extend@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" + filled-array@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/filled-array/-/filled-array-1.1.0.tgz#c3c4f6c663b923459a9aa29912d2d031f1507f84" @@ -428,6 +429,10 @@ function-bind@^1.0.2, function-bind@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + github@^8.1.1: version "8.1.1" resolved "https://registry.yarnpkg.com/github/-/github-8.1.1.tgz#a078c61669b4d4b588bf1b2e2a591eb7c49feb36" @@ -436,10 +441,6 @@ github@^8.1.1: https-proxy-agent "^1.0.0" mime "^1.2.11" netrc "^0.1.4" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" glob@7.0.5: version "7.0.5" @@ -1196,9 +1197,9 @@ type-detect@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" -typescript@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.1.6.tgz#40c7e6e9e5da7961b7718b55505f9cac9487a607" +typescript@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.2.1.tgz#4862b662b988a4c8ff691cc7969622d24db76ae9" unique-string@^1.0.0: version "1.0.0"