Socket
Socket
Sign inDemoInstall

nativescript-barcodescanner

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-barcodescanner - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

4

barcodescanner.android.d.ts

@@ -8,4 +8,4 @@ import { ScanOptions, ScanResult } from "./barcodescanner-common";

constructor();
private wasCameraPermissionGranted();
private requestCameraPermissionInternal(onPermissionGranted, reject);
private wasCameraPermissionGranted;
private requestCameraPermissionInternal;
available(): Promise<boolean>;

@@ -12,0 +12,0 @@ hasCameraPermission(): Promise<boolean>;

@@ -21,8 +21,8 @@ import { BarcodeScannerView as BarcodeScannerBaseView, ScanOptions, ScanResult } from "./barcodescanner-common";

constructor();
private _hasCameraPermission();
private _hasDeniedCameraPermission();
private _addVolumeObserver();
private _removeVolumeObserver();
private _enableTorch();
private _disableTorch();
private _hasCameraPermission;
private _hasDeniedCameraPermission;
private _addVolumeObserver;
private _removeVolumeObserver;
private _enableTorch;
private _disableTorch;
available(): Promise<boolean>;

@@ -33,4 +33,4 @@ hasCameraPermission(): Promise<boolean>;

scan(arg: ScanOptions): Promise<ScanResult>;
private isPresentingModally();
private getViewControllerToPresentFrom();
private isPresentingModally;
private getViewControllerToPresentFrom;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var barcodescanner_common_1 = require("./barcodescanner-common");
var utils = require("tns-core-modules/utils/utils");
var BarcodeScannerView = (function (_super) {

@@ -87,3 +86,3 @@ __extends(BarcodeScannerView, _super);

}
this._audioSession = utils.ios.getter(AVAudioSession, AVAudioSession.sharedInstance);
this._audioSession = AVAudioSession.sharedInstance();
this._audioSession.setActiveError(true);

@@ -170,3 +169,3 @@ this._currentVolume = this._audioSession.outputVolume;

if (arg.openSettingsIfPermissionWasPreviouslyDenied) {
utils.ios.getter(UIApplication, UIApplication.sharedApplication).openURL(NSURL.URLWithString(UIApplicationOpenSettingsURLString));
UIApplication.sharedApplication.openURL(NSURL.URLWithString(UIApplicationOpenSettingsURLString));
}

@@ -428,3 +427,3 @@ reject("The user previously denied permission to access the camera.");

if (path === "outputVolume") {
var volumeLevel = utils.ios.getter(MPMusicPlayerController, MPMusicPlayerController.applicationMusicPlayer).volume;
var volumeLevel = MPMusicPlayerController.applicationMusicPlayer.volume;
if (volumeLevel > this["_owner"]._currentVolume) {

@@ -431,0 +430,0 @@ this["_owner"]._enableTorch();

{
"name": "nativescript-barcodescanner",
"version": "3.2.1",
"version": "3.2.2",
"description": "Scan QR/barcodes with your NativeScript app.",

@@ -72,5 +72,5 @@ "main": "barcodescanner",

"devDependencies": {
"tns-core-modules": "~5.2.2",
"tns-platform-declarations": "~5.2.2",
"typescript": "~2.8.0",
"tns-core-modules": "~6.0.0",
"tns-platform-declarations": "~6.0.0",
"typescript": "3.4.5",
"prompt": "^1.0.0",

@@ -77,0 +77,0 @@ "rimraf": "^2.6.2",

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