Skip to content

Commit 98f01e8

Browse files
committed
chore: migration to @nativescript/core
1 parent 57eea0c commit 98f01e8

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/https.android.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { isDefined } from "tns-core-modules/utils/types";
2-
import { HttpResponseEncoding } from "tns-core-modules/http";
3-
import { ImageSource } from "tns-core-modules/image-source";
1+
import { isDefined } from "@nativescript/core/utils/types";
2+
import { HttpResponseEncoding } from "@nativescript/core/http";
3+
import { ImageSource } from "@nativescript/core/image-source";
44
import * as Https from "./https.common";
5-
import { File } from "tns-core-modules/file-system";
5+
import { File } from "@nativescript/core/file-system";
66

77
interface Ipeer {
88
enabled: boolean;

src/https.common.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Headers, HttpRequestOptions } from "tns-core-modules/http";
2-
import { ImageSource } from "tns-core-modules/image-source";
3-
import { File } from "tns-core-modules/file-system";
1+
import { Headers, HttpRequestOptions } from "@nativescript/core/http";
2+
import { ImageSource } from "@nativescript/core/image-source";
3+
import { File } from "@nativescript/core/file-system";
44
export interface HttpsSSLPinningOptions {
55
host: string;
66
certificate: string;
@@ -31,6 +31,7 @@ export interface HttpsRequestOptions extends HttpRequestOptions {
3131
body?: HttpsRequestObject | HttpsFormDataParam[];
3232
content?: string;
3333
timeout?: number;
34+
allowLargeResponse?: boolean;
3435
onProgress?: (current: number, total: number) => void;
3536
cachePolicy?: CachePolicy;
3637
useLegacy?: boolean;

src/https.common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Headers, HttpRequestOptions } from "tns-core-modules/http";
2-
import { ImageSource } from "tns-core-modules/image-source";
3-
import { File, knownFolders, path } from "tns-core-modules/file-system";
1+
import { Headers, HttpRequestOptions } from "@nativescript/core/http";
2+
import { ImageSource } from "@nativescript/core/image-source";
3+
import { File, knownFolders, path } from "@nativescript/core/file-system";
44

55
export interface HttpsSSLPinningOptions {
66
host: string;

src/https.ios.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import {
22
isDefined,
33
isNullOrUndefined,
44
isObject,
5-
} from "tns-core-modules/utils/types";
5+
} from "@nativescript/core/utils/types";
66
import * as Https from "./https.common";
7-
import { HttpResponseEncoding } from "tns-core-modules/http";
8-
import { ImageSource } from "tns-core-modules/image-source";
9-
import { File } from "tns-core-modules/file-system";
7+
import { File } from "@nativescript/core/file-system";
8+
import { ImageSource } from "@nativescript/core/image-source";
109

1110
let cache: NSURLCache;
1211

src/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
},
3030
"dependencies": {},
3131
"devDependencies": {
32-
"tns-core-modules": "~6.4.0",
33-
"tns-platform-declarations": "~6.4.0",
34-
"typescript": "3.4.5",
32+
"@nativescript/core": "~6.5.1",
33+
"tns-platform-declarations": "~6.5.1",
34+
"typescript": "3.8.3",
3535
"prompt": "^1.0.0",
36-
"rimraf": "^2.6.2",
37-
"tslint": "^5.11.0",
38-
"semver": "^5.6.0"
36+
"rimraf": "^3.0.2",
37+
"tslint": "^6.1.1",
38+
"semver": "^7.3.2"
3939
},
4040
"author": "Eddy Verbruggen <eddyverbruggen@gmail.com> (https://github.com/EddyVerbruggen)",
4141
"contributors": [

0 commit comments

Comments
 (0)