Skip to content

Commit 6e9a99a

Browse files
authored
chore: update repo to be compiled with TS ^2.6.1 (NativeScript#5020)
1 parent f1c33d2 commit 6e9a99a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

apps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"lazy": "1.0.11",
2323
"nativescript-dev-typescript": "^0.5.0",
2424
"tns-platform-declarations": "*",
25-
"typescript": "~2.5.1"
25+
"typescript": "^2.6.1"
2626
}
2727
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"tslint": "^5.4.3",
4444
"typedoc": "^0.5.10",
4545
"typedoc-plugin-external-module-name": "git://github.com/PanayotCankov/typedoc-plugin-external-module-name.git#with-js",
46-
"typescript": "^2.5.2"
46+
"typescript": "^2.6.1"
4747
},
4848
"scripts": {
4949
"setup": "npm run dev-link-tns-platform-declarations && npm run dev-link-tns-core-modules && npm run dev-link-tests && npm run dev-link-apps",

tests/app/fetch/fetch-tests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export var test_fetch_response_headers = function (done) {
102102
export var test_fetch_headers_sent = function (done) {
103103
fetch("https://httpbin.org/get", {
104104
method: "GET",
105-
headers: { "Content-Type": "application/json" }
105+
headers: new Headers({ "Content-Type": "application/json" }),
106106
}).then(function (response) {
107107
var result = response.headers;
108108
TKUnit.assert(result.get("Content-Type") === "application/json", "Headers not sent/received properly! Actual result is: " + result);
@@ -117,7 +117,7 @@ export var test_fetch_post_form_data = function (done) {
117117

118118
fetch("https://httpbin.org/post", {
119119
method: "POST",
120-
headers: { "Content-Type": "application/x-www-form-urlencoded" },
120+
headers: new Headers({ "Content-Type": "application/x-www-form-urlencoded" }),
121121
body: data
122122
}).then(r => {
123123
return r.formData();
@@ -131,7 +131,7 @@ export var test_fetch_post_json = function (done) {
131131
// >> fetch-post-json
132132
fetch("https://httpbin.org/post", {
133133
method: "POST",
134-
headers: { "Content-Type": "application/json" },
134+
headers: new Headers({ "Content-Type": "application/json" }),
135135
body: JSON.stringify({ MyVariableOne: "ValueOne", MyVariableTwo: "ValueTwo" })
136136
}).then(r => { return r.json(); }).then(function (r) {
137137
// >> (hide)

tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"filewalker": "0.1.2",
2323
"lazy": "1.0.11",
2424
"tns-platform-declarations": "*",
25-
"typescript": "~2.2.1"
25+
"typescript": "^2.6.1"
2626
}
2727
}

tns-platform-declarations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
},
3333
"homepage": "https://github.com/NativeScript/NativeScript#readme",
3434
"devDependencies": {
35-
"typescript": "~2.2.1"
35+
"typescript": "^2.6.1"
3636
}
3737
}

0 commit comments

Comments
 (0)