mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: update repo to be compiled with TS ^2.6.1 (#5020)
This commit is contained in:
@@ -22,6 +22,6 @@
|
||||
"lazy": "1.0.11",
|
||||
"nativescript-dev-typescript": "^0.5.0",
|
||||
"tns-platform-declarations": "*",
|
||||
"typescript": "~2.5.1"
|
||||
"typescript": "^2.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"tslint": "^5.4.3",
|
||||
"typedoc": "^0.5.10",
|
||||
"typedoc-plugin-external-module-name": "git://github.com/PanayotCankov/typedoc-plugin-external-module-name.git#with-js",
|
||||
"typescript": "^2.5.2"
|
||||
"typescript": "^2.6.1"
|
||||
},
|
||||
"scripts": {
|
||||
"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",
|
||||
|
||||
@@ -102,7 +102,7 @@ export var test_fetch_response_headers = function (done) {
|
||||
export var test_fetch_headers_sent = function (done) {
|
||||
fetch("https://httpbin.org/get", {
|
||||
method: "GET",
|
||||
headers: { "Content-Type": "application/json" }
|
||||
headers: new Headers({ "Content-Type": "application/json" }),
|
||||
}).then(function (response) {
|
||||
var result = response.headers;
|
||||
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) {
|
||||
|
||||
fetch("https://httpbin.org/post", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
||||
headers: new Headers({ "Content-Type": "application/x-www-form-urlencoded" }),
|
||||
body: data
|
||||
}).then(r => {
|
||||
return r.formData();
|
||||
@@ -131,7 +131,7 @@ export var test_fetch_post_json = function (done) {
|
||||
// >> fetch-post-json
|
||||
fetch("https://httpbin.org/post", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
headers: new Headers({ "Content-Type": "application/json" }),
|
||||
body: JSON.stringify({ MyVariableOne: "ValueOne", MyVariableTwo: "ValueTwo" })
|
||||
}).then(r => { return r.json(); }).then(function (r) {
|
||||
// >> (hide)
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
"filewalker": "0.1.2",
|
||||
"lazy": "1.0.11",
|
||||
"tns-platform-declarations": "*",
|
||||
"typescript": "~2.2.1"
|
||||
"typescript": "^2.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/NativeScript/NativeScript#readme",
|
||||
"devDependencies": {
|
||||
"typescript": "~2.2.1"
|
||||
"typescript": "^2.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user