Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-inappbrowser

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-inappbrowser - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

InAppBrowser.android.js

@@ -75,3 +75,3 @@ "use strict";

var keyHeaders = options[InAppBrowserModule.KEY_HEADERS];
if (keyHeaders && keyHeaders.length) {
if (keyHeaders) {
var headers = new Bundle();

@@ -78,0 +78,0 @@ for (var key in keyHeaders) {

@@ -13,4 +13,4 @@ export declare type RedirectEvent = {

export declare type AuthSessionResult = RedirectResult | BrowserResult;
export declare function getDefaultOptions(url: any, options: any): any;
export declare function getDefaultOptions(url: string, options: any): any;
export declare function openAuthSessionPolyfillAsync(startUrl: string, returnUrl: string, options: any, open: (url: string, options?: any) => Promise<BrowserResult>): Promise<AuthSessionResult>;
export declare function closeAuthSessionPolyfillAsync(): void;

@@ -5,3 +5,3 @@ "use strict";

function getDefaultOptions(url, options) {
return __assign(__assign({}, options), { url: url, dismissButtonStyle: options.dismissButtonStyle || 'close', readerMode: options.readerMode !== undefined ? options.readerMode : false, animated: options.animated !== undefined ? options.animated : true, modalEnabled: options.modalEnabled !== undefined ? options.modalEnabled : true });
return __assign(__assign({}, options), { url: url, dismissButtonStyle: options.dismissButtonStyle || 'close', readerMode: !!options.readerMode, animated: options.animated !== undefined ? options.animated : true, modalEnabled: options.modalEnabled !== undefined ? options.modalEnabled : true, enableBarCollapsing: !!options.enableBarCollapsing });
}

@@ -8,0 +8,0 @@ exports.getDefaultOptions = getDefaultOptions;

@@ -18,2 +18,4 @@ import { BrowserResult, AuthSessionResult } from './InAppBrowser.common';

prototype: UIAdaptivePresentationControllerDelegate;
} | {
prototype: ASWebAuthenticationPresentationContextProviding;
})[];

@@ -20,0 +22,0 @@ private safariVC;

@@ -31,9 +31,9 @@ "use strict";

};
var protocols = [
var DEFAULT_PROTOCOLS = [
SFSafariViewControllerDelegate,
UIAdaptivePresentationControllerDelegate
];
if (utils_1.ios.MajorVersion >= 13) {
protocols.push(ASWebAuthenticationPresentationContextProviding);
}
var protocols = utils_1.ios.MajorVersion >= 13 ? __spreadArrays(DEFAULT_PROTOCOLS, [
ASWebAuthenticationPresentationContextProviding
]) : DEFAULT_PROTOCOLS;
var InAppBrowserModule = (function (_super) {

@@ -101,2 +101,4 @@ __extends(InAppBrowserModule, _super);

safariHackVC.modalInPresentation = true;
if (safariHackVC['setModalInPresentation'])
safariHackVC['setModalInPresentation'](true);
}

@@ -148,3 +150,3 @@ safariHackVC.presentationController.delegate = _this;

if (utils_1.ios.MajorVersion >= 13) {
_this.authSession['presentationContextProvider'] = _this;
_this.authSession.presentationContextProvider = _this;
}

@@ -151,0 +153,0 @@ _this.authSession.start();

{
"name": "nativescript-inappbrowser",
"version": "2.1.0",
"version": "2.1.1",
"description": "InAppBrowser for NativeScript",

@@ -5,0 +5,0 @@ "main": "InAppBrowser",

@@ -51,6 +51,6 @@ <p align="center">

`open` | Opens the url with Safari in a modal on iOS using **SFSafariViewController**, and Chrome in a new custom tab on Android. On iOS, the modal Safari will not share cookies with the system Safari.
`close` | Dismisses the system's presented web browser
`openAuth` | Opens the url with Safari in a modal on iOS using **SFAuthenticationSession/ASWebAuthenticationSession**, and Chrome in a new custom tab on Android. On iOS, the user will be asked whether to allow the app to authenticate using the given url.
`closeAuth` | Dismisses the current authentication session
`isAvailable` | Detect if the device supports this plugin
`close` | Dismisses the system's presented web browser.
`openAuth` | Opens the url with Safari in a modal on iOS using **SFAuthenticationSession/ASWebAuthenticationSession**, and Chrome in a new custom tab on Android. On iOS, the user will be asked whether to allow the app to authenticate using the given url **(OAuth flow with deep linking redirection)**.
`closeAuth` | Dismisses the current authentication session.
`isAvailable` | Detect if the device supports this plugin.

@@ -57,0 +57,0 @@ ### iOS Options

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc