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

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 2.6.1 to 2.7.0

barcodescanner-common.d.ts

2

barcodescanner.android.d.ts

@@ -1,2 +0,2 @@

import { ScanOptions, ScanResult } from "./barcodescanner.common";
import { ScanOptions, ScanResult } from "./barcodescanner-common";
export declare class BarcodeScanner {

@@ -3,0 +3,0 @@ private broadcastManager;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var appModule = require("application");
var utils = require("utils/utils");
var appModule = require("tns-core-modules/application");
var utils = require("tns-core-modules/utils/utils");
var SCANNER_REQUEST_CODE = 444;

@@ -6,0 +6,0 @@ var _onScanReceivedCallback = undefined;

@@ -1,2 +0,2 @@

import { ScanOptions, ScanResult } from "./barcodescanner.common";
import { ScanOptions, ScanResult } from "./barcodescanner-common";
export declare class BarcodeScanner {

@@ -3,0 +3,0 @@ private _observer;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var utils = require("utils/utils");
var frame = require("ui/frame");
var utils = require("tns-core-modules/utils/utils");
var frame = require("tns-core-modules/ui/frame");
var BarcodeScanner = (function () {

@@ -215,2 +215,9 @@ function BarcodeScanner() {

this._beepOnScan = beepOnScan;
if (this._beepOnScan) {
var barcodeBundlePath = NSBundle.bundleWithIdentifier("com.telerik.BarcodeScannerFramework").bundlePath;
this._player = new AVAudioPlayer({ contentsOfURL: NSURL.fileURLWithPath(barcodeBundlePath + "/beep.caf") });
this._player.numberOfLoops = 1;
this._player.volume = 0.7;
this._player.prepareToPlay();
}
};

@@ -246,4 +253,4 @@ QRCodeReaderDelegateImpl.prototype.readerDidCancel = function (reader) {

}
if (validResult && this._beepOnScan) {
AudioServicesPlaySystemSound(1256);
if (validResult && this._player) {
this._player.play();
}

@@ -250,0 +257,0 @@ };

@@ -1,1 +0,1 @@

export * from "./barcodescanner.common";
export * from "./barcodescanner-common";
{
"name": "nativescript-barcodescanner",
"version": "2.6.1",
"description": "Scan QR/barcodes with a {N} app.",
"version": "2.7.0",
"description": "Scan QR/barcodes with your NativeScript app.",
"main": "barcodescanner",

@@ -14,11 +14,16 @@ "typings": "index.d.ts",

"scripts": {
"build": "tsc",
"demo.ios": "npm run preparedemo && cd demo && tns emulate ios --device \"iPhone 7\"",
"demo.ios.device": "npm run preparedemo && cd demo && tns platform remove ios && tns platform add ios && tns run ios",
"demo.android": "npm run preparedemo && cd demo && tns run android",
"preparedemo": "npm run build && cd demo && tns plugin remove nativescript-barcodescanner && tns plugin add .. && tns install",
"setup": "npm i && cd demo && npm i && cd .. && npm run build && cd demo && tns plugin add .. && cd ..",
"test": "npm run tslint && npm run tslint.demo",
"tslint": "tslint *.ts",
"tslint.demo": "tslint demo/app/*.ts"
"tsc": "tsc -skipLibCheck",
"build": "npm i && npm run tsc",
"postclone": "npm i && cd ../demo && npm i && cd ../src && npm run plugin.link",
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
"plugin.link": "npm link && cd ../demo && npm link nativescript-barcodescanner && cd ../src",
"plugin.tscwatch": "npm run tsc -- -w",
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles",
"demo.reset": "cd ../demo && rimraf platforms",
"plugin.prepare": "npm run tsc && cd ../demo && tns plugin remove nativescript-barcodescanner && tns plugin add ../src",
"clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/typings/**'"
},

@@ -45,6 +50,7 @@ "repository": {

"Code128",
"Data Matrix",
"Datamatrix",
"EAN8",
"EAN13",
"ITF",
"ITF14",
"PDF417",

@@ -63,7 +69,9 @@ "QR",

"devDependencies": {
"tns-core-modules": "^3.0.0",
"tns-platform-declarations": "^3.0.0",
"tns-core-modules": "^3.1.0",
"tns-platform-declarations": "^3.1.0",
"typescript": "~2.3.0",
"prompt": "^1.0.0",
"rimraf": "^2.5.0",
"tslint": "^5.0.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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