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

phonegap-plugin-barcodescanner

Package Overview
Dependencies
Maintainers
6
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phonegap-plugin-barcodescanner - npm Package Compare versions

Comparing version 6.0.6 to 6.0.7

LICENSE.txt

4

package.json
{
"name": "phonegap-plugin-barcodescanner",
"version": "6.0.6",
"version": "6.0.7",
"description": "You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.",

@@ -48,4 +48,4 @@ "cordova": {

"jasmine-node": "1.14.5",
"pluginpub": "^0.0.6"
"pluginpub": "^0.0.8"
}
}

@@ -56,2 +56,9 @@ # PhoneGap Plugin BarcodeScanner

If you are using Phonegap Build you can add this to your config.xml
```
<gap:config-file platform="ios" parent="NSCameraUsageDescription" overwrite="true">
<string>We are using the Camera for something..</string>
</gap:config-file>
```
### PhoneGap Build

@@ -61,3 +68,3 @@ If you're using [PhoneGap Build](https://build.phonegap.com/) please make sure you specify `gradle` as your Android build tool in `config.xml`: `<preference name="android-build-tool" value="gradle" />`.

## Using the plugin ##
The plugin creates the object `cordova/plugin/BarcodeScanner` with the method `scan(success, fail)`.
The plugin creates the object `cordova.plugins.barcodeScanner` with the method `scan(success, fail)`.

@@ -82,3 +89,3 @@ The following barcode types are currently supported:

Not by default, but supported if you pass in the "formats" option:
* PDF417
* PDF_417
* AZTEC

@@ -114,3 +121,3 @@

* AZTEC
* PDF417
* PDF_417

@@ -133,3 +140,3 @@ ### Windows Phone 8

* AZTEC
* PDF417
* PDF_417

@@ -136,0 +143,0 @@ ### BlackBerry 10

/**
* cordova is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
* cordova is available under the MIT License (2008).
* See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) Matt Kane 2010
* Copyright (c) 2011, IBM Corporation
* Copyright (c) 2012-2017, Adobe Systems
*/

@@ -81,2 +82,6 @@

if (typeof(config) === 'object') {
// string spaces between formats, ZXing does not like that
if (config.formats) {
config.formats = config.formats.replace(/\s+/g, '');
}
config = [ config ];

@@ -83,0 +88,0 @@ } else {

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