From b35209e98ebd87a196512a84b68b67c79ffb1341 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Sat, 26 Feb 2022 16:56:22 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20completely=20broken=20release=20?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request.android.ts | 4 ++-- src/request.d.ts | 4 ++++ src/request.ios.ts | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/request.android.ts b/src/request.android.ts index 73fab41..fcb573d 100644 --- a/src/request.android.ts +++ b/src/request.android.ts @@ -1,7 +1,7 @@ import { File, HttpResponseEncoding, ImageSource, Utils } from '@nativescript/core'; -import { CacheOptions, HttpsFormDataParam, HttpsRequest, HttpsRequestOptions, HttpsResponseLegacy, HttpsSSLPinningOptions, getFilenameFromUrl, parseJSON } from '.'; +import { CacheOptions, HttpsFormDataParam, HttpsRequest, HttpsRequestOptions, HttpsResponseLegacy, HttpsSSLPinningOptions } from '.'; -import { interceptors, networkInterceptors } from './request.common'; +import { getFilenameFromUrl, interceptors, networkInterceptors, parseJSON } from './request.common'; export { addNetworkInterceptor, addInterceptor } from './request.common'; interface Ipeer { diff --git a/src/request.d.ts b/src/request.d.ts index 80f520c..05f21ac 100644 --- a/src/request.d.ts +++ b/src/request.d.ts @@ -26,6 +26,10 @@ export interface HttpsRequestObject { [key: string]: string | number | boolean | HttpsRequestObject | any[] | HttpsFormDataParam; } +export interface Headers { + [k: string]: string; +} + export type CachePolicy = 'noCache' | 'onlyCache' | 'ignoreCache'; export interface HttpsRequestOptions extends HttpRequestOptions { url: string; diff --git a/src/request.ios.ts b/src/request.ios.ts index f3e7767..efdad2b 100644 --- a/src/request.ios.ts +++ b/src/request.ios.ts @@ -1,5 +1,6 @@ import { File, ImageSource, Utils } from '@nativescript/core'; -import { CacheOptions, HttpsFormDataParam, HttpsRequest, HttpsRequestOptions, HttpsResponse, HttpsResponseLegacy, HttpsSSLPinningOptions, getFilenameFromUrl, parseJSON } from '.'; +import { CacheOptions, HttpsFormDataParam, HttpsRequest, HttpsRequestOptions, HttpsResponse, HttpsResponseLegacy, HttpsSSLPinningOptions } from '.'; +import { getFilenameFromUrl, parseJSON } from './request.common'; export { addInterceptor, addNetworkInterceptor } from './request.common'; let cache: NSURLCache; @@ -307,7 +308,7 @@ export function cancelRequest(tag: string) { } export function createRequest(opts: HttpsRequestOptions, useLegacy: boolean = true): HttpsRequest { - const type = opts.headers && opts.headers['Content-Type'] ? (opts.headers['Content-Type'] as string) : 'application/json'; + const type = opts.headers && opts.headers['Content-Type'] ? opts.headers['Content-Type'] : 'application/json'; if (type.startsWith('application/json')) { manager.requestSerializer = AFJSONRequestSerializer.serializer(); manager.responseSerializer = AFJSONResponseSerializer.serializerWithReadingOptions(NSJSONReadingOptions.AllowFragments); From b53d201910fc92b25366e29bbeace3949a6f959f Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Sat, 26 Feb 2022 18:33:45 +0100 Subject: [PATCH 2/2] v3.4.2 --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 8 ++++++++ plugin/package.json | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4078ce8..5be7b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.4.2](https://github.com/nativescript-community/https/compare/v3.4.1...v3.4.2) (2022-02-26) + + +### Bug Fixes + +* completely broken release … ([b35209e](https://github.com/nativescript-community/https/commit/b35209e98ebd87a196512a84b68b67c79ffb1341)) + + + + + ## [3.4.1](https://github.com/nativescript-community/https/compare/v3.4.0...v3.4.1) (2022-02-26) diff --git a/lerna.json b/lerna.json index dbe5f5e..1485893 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "3.4.1", + "version": "3.4.2", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index 953f7e6..9f6074e 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.4.2](https://github.com/nativescript-community/https/compare/v3.4.1...v3.4.2) (2022-02-26) + +**Note:** Version bump only for package @nativescript-community/https + + + + + ## [3.4.1](https://github.com/nativescript-community/https/compare/v3.4.0...v3.4.1) (2022-02-26) **Note:** Version bump only for package @nativescript-community/https diff --git a/plugin/package.json b/plugin/package.json index d6f3bee..a84128a 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/https", - "version": "3.4.1", + "version": "3.4.2", "description": "Nativescript plugin for gestures", "main": "index", "sideEffects": false,