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

@uniplat/html5-qrcode

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniplat/html5-qrcode - npm Package Compare versions

Comparing version 2.3.9 to 2.3.10

16

cjs/strings.js

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

Html5QrcodeStrings.onlyDeviceSupportedError = function () {
return "The device doesn't support navigator.mediaDevices , only "
+ "supported cameraIdOrConfig in this case is deviceId parameter "
+ "(string).";
return ("The device doesn't support navigator.mediaDevices , only " +
"supported cameraIdOrConfig in this case is deviceId parameter " +
"(string).");
};

@@ -26,4 +26,4 @@ Html5QrcodeStrings.cameraStreamingNotSupported = function () {

Html5QrcodeStrings.insecureContextCameraQueryError = function () {
return "Camera access is only supported in secure context like https "
+ "or localhost.";
return ("Camera access is only supported in secure context like https " +
"or localhost.");
};

@@ -64,3 +64,3 @@ Html5QrcodeStrings.scannerPaused = function () {

Html5QrcodeScannerStrings.cameraPermissionRequesting = function () {
return "启动中国呢";
return "摄像头启动中...";
};

@@ -71,6 +71,6 @@ Html5QrcodeScannerStrings.noCameraFound = function () {

Html5QrcodeScannerStrings.scanButtonStopScanningText = function () {
return "停止扫描";
return "停止";
};
Html5QrcodeScannerStrings.scanButtonStartScanningText = function () {
return "开始扫描";
return "开始";
};

@@ -77,0 +77,0 @@ Html5QrcodeScannerStrings.torchOnButton = function () {

@@ -9,5 +9,5 @@ export class Html5QrcodeStrings {

static onlyDeviceSupportedError() {
return "The device doesn't support navigator.mediaDevices , only "
+ "supported cameraIdOrConfig in this case is deviceId parameter "
+ "(string).";
return ("The device doesn't support navigator.mediaDevices , only " +
"supported cameraIdOrConfig in this case is deviceId parameter " +
"(string).");
}

@@ -21,4 +21,4 @@ static cameraStreamingNotSupported() {

static insecureContextCameraQueryError() {
return "Camera access is only supported in secure context like https "
+ "or localhost.";
return ("Camera access is only supported in secure context like https " +
"or localhost.");
}

@@ -55,3 +55,3 @@ static scannerPaused() {

static cameraPermissionRequesting() {
return "启动中国呢";
return "摄像头启动中...";
}

@@ -62,6 +62,6 @@ static noCameraFound() {

static scanButtonStopScanningText() {
return "停止扫描";
return "停止";
}
static scanButtonStartScanningText() {
return "开始扫描";
return "开始";
}

@@ -68,0 +68,0 @@ static torchOnButton() {

@@ -11,5 +11,5 @@ var Html5QrcodeStrings = (function () {

Html5QrcodeStrings.onlyDeviceSupportedError = function () {
return "The device doesn't support navigator.mediaDevices , only "
+ "supported cameraIdOrConfig in this case is deviceId parameter "
+ "(string).";
return ("The device doesn't support navigator.mediaDevices , only " +
"supported cameraIdOrConfig in this case is deviceId parameter " +
"(string).");
};

@@ -23,4 +23,4 @@ Html5QrcodeStrings.cameraStreamingNotSupported = function () {

Html5QrcodeStrings.insecureContextCameraQueryError = function () {
return "Camera access is only supported in secure context like https "
+ "or localhost.";
return ("Camera access is only supported in secure context like https " +
"or localhost.");
};

@@ -61,3 +61,3 @@ Html5QrcodeStrings.scannerPaused = function () {

Html5QrcodeScannerStrings.cameraPermissionRequesting = function () {
return "启动中国呢";
return "摄像头启动中...";
};

@@ -68,6 +68,6 @@ Html5QrcodeScannerStrings.noCameraFound = function () {

Html5QrcodeScannerStrings.scanButtonStopScanningText = function () {
return "停止扫描";
return "停止";
};
Html5QrcodeScannerStrings.scanButtonStartScanningText = function () {
return "开始扫描";
return "开始";
};

@@ -74,0 +74,0 @@ Html5QrcodeScannerStrings.torchOnButton = function () {

{
"name": "@uniplat/html5-qrcode",
"version": "2.3.9",
"version": "2.3.10",
"description": "A cross platform HTML5 QR Code & bar code scanner",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

/**
* @fileoverview
* Strings used by {@class Html5Qrcode} & {@class Html5QrcodeScanner}
*
*
* @author mebjas <minhazav@gmail.com>
*
*
* The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED

@@ -13,37 +13,40 @@ * http://www.denso-wave.com/qrcode/faqpatent-e.html

* Strings used in {@class Html5Qrcode}.
*
*
* TODO(mebjas): Support internalization.
*/
export class Html5QrcodeStrings {
public static codeParseError(exception: any): string {
return `QR code parse error, error = ${exception}`;
}
public static codeParseError(exception: any): string {
return `QR code parse error, error = ${exception}`;
}
public static errorGettingUserMedia(error: any): string {
return `Error getting userMedia, error = ${error}`;
}
public static errorGettingUserMedia(error: any): string {
return `Error getting userMedia, error = ${error}`;
}
public static onlyDeviceSupportedError(): string {
return (
"The device doesn't support navigator.mediaDevices , only " +
"supported cameraIdOrConfig in this case is deviceId parameter " +
"(string)."
);
}
public static onlyDeviceSupportedError(): string {
return "The device doesn't support navigator.mediaDevices , only "
+ "supported cameraIdOrConfig in this case is deviceId parameter "
+ "(string).";
}
public static cameraStreamingNotSupported(): string {
return "Camera streaming not supported by the browser.";
}
public static cameraStreamingNotSupported(): string {
return "Camera streaming not supported by the browser.";
}
public static unableToQuerySupportedDevices(): string {
return "Unable to query supported devices, unknown error.";
}
public static unableToQuerySupportedDevices(): string {
return "Unable to query supported devices, unknown error.";
}
public static insecureContextCameraQueryError(): string {
return (
"Camera access is only supported in secure context like https " +
"or localhost."
);
}
public static insecureContextCameraQueryError(): string {
return "Camera access is only supported in secure context like https "
+ "or localhost.";
}
public static scannerPaused(): string {
return "Scanner paused";
}
public static scannerPaused(): string {
return "Scanner paused";
}
}

@@ -53,138 +56,137 @@

* Strings used in {@class Html5QrcodeScanner}.
*
*
* TODO(mebjas): Support internalization.
*/
export class Html5QrcodeScannerStrings {
public static scanningStatus(): string {
return "扫描";
}
public static scanningStatus(): string {
return "扫描";
}
public static idleStatus(): string {
return "Idle";
}
public static idleStatus(): string {
return "Idle";
}
public static errorStatus(): string {
return "Error";
}
public static errorStatus(): string {
return "Error";
}
public static permissionStatus(): string {
return "开启扫码";
}
public static permissionStatus(): string {
return "开启扫码";
}
public static noCameraFoundErrorStatus(): string {
return "没有可用的摄像头";
}
public static noCameraFoundErrorStatus(): string {
return "没有可用的摄像头";
}
public static lastMatch(decodedText: string): string {
return `Last Match: ${decodedText}`;
}
public static lastMatch(decodedText: string): string {
return `Last Match: ${decodedText}`;
}
public static codeScannerTitle(): string {
return "二维码扫描";
}
public static codeScannerTitle(): string {
return "二维码扫描";
}
public static cameraPermissionTitle(): string {
return "启用摄像头";
}
public static cameraPermissionTitle(): string {
return "启用摄像头";
}
public static cameraPermissionRequesting(): string {
return "摄像头启动中...";
}
public static cameraPermissionRequesting(): string {
return "启动中国呢";
}
public static noCameraFound(): string {
return "没有找到摄像头";
}
public static noCameraFound(): string {
return "没有找到摄像头";
}
public static scanButtonStopScanningText(): string {
return "停止";
}
public static scanButtonStopScanningText(): string {
return "停止扫描";
}
public static scanButtonStartScanningText(): string {
return "开始";
}
public static scanButtonStartScanningText(): string {
return "开始扫描";
}
public static torchOnButton(): string {
return "打开手电筒";
}
public static torchOnButton(): string {
return "打开手电筒";
}
public static torchOffButton(): string {
return "关闭手电筒";
}
public static torchOffButton(): string {
return "关闭手电筒";
}
public static torchOnFailedMessage(): string {
return "手电筒打开失败";
}
public static torchOnFailedMessage(): string {
return "手电筒打开失败";
}
public static torchOffFailedMessage(): string {
return "关闭手电筒失败";
}
public static torchOffFailedMessage(): string {
return "关闭手电筒失败";
}
public static scanButtonScanningStarting(): string {
return "摄像头启动中...";
}
public static scanButtonScanningStarting(): string {
return "摄像头启动中...";
}
/**
* Text to show when camera scan is selected.
*
* This will be used to switch to file based scanning.
*/
public static textIfCameraScanSelected(): string {
return "从图片中识别";
}
/**
* Text to show when camera scan is selected.
*
* This will be used to switch to file based scanning.
*/
public static textIfCameraScanSelected(): string {
return "从图片中识别";
}
/**
* Text to show when file based scan is selected.
*
* This will be used to switch to camera based scanning.
*/
public static textIfFileScanSelected(): string {
return "直接使用相机扫描";
}
/**
* Text to show when file based scan is selected.
*
* This will be used to switch to camera based scanning.
*/
public static textIfFileScanSelected(): string {
return "直接使用相机扫描";
}
public static selectCamera(): string {
return "选择相机";
}
public static selectCamera(): string {
return "选择相机";
}
public static fileSelectionChooseImage(): string {
return "选择图片";
}
public static fileSelectionChooseImage(): string {
return "选择图片";
}
public static fileSelectionChooseAnother(): string {
return "其他";
}
public static fileSelectionChooseAnother(): string {
return "其他";
}
public static fileSelectionNoImageSelected(): string {
return "没有选择图片";
}
public static fileSelectionNoImageSelected(): string {
return "没有选择图片";
}
/** Prefix to be given to anonymous cameras. */
public static anonymousCameraPrefix(): string {
return "未知摄像头";
}
/** Prefix to be given to anonymous cameras. */
public static anonymousCameraPrefix(): string {
return "未知摄像头";
}
public static dragAndDropMessage(): string {
return "或放下图像进行扫描";
}
public static dragAndDropMessage(): string {
return "或放下图像进行扫描";
}
public static dragAndDropMessageOnlyImages(): string {
return "或放置要扫描的图像(不支持其他文件)";
}
public static dragAndDropMessageOnlyImages(): string {
return "或放置要扫描的图像(不支持其他文件)";
}
/** Value for zoom. */
public static zoom(): string {
return "缩放";
}
/** Value for zoom. */
public static zoom(): string {
return "缩放";
}
public static loadingImage(): string {
return "加载图片";
}
public static loadingImage(): string {
return "加载图片";
}
public static cameraScanAltText(): string {
return "基于摄像头的扫描";
}
public static cameraScanAltText(): string {
return "基于摄像头的扫描";
}
public static fileScanAltText(): string {
return "基于富尔的扫描";
}
public static fileScanAltText(): string {
return "基于富尔的扫描";
}
}

@@ -194,10 +196,9 @@

export class LibraryInfoStrings {
public static poweredBy(): string {
return "Powered by ";
}
public static poweredBy(): string {
return "Powered by ";
}
public static reportIssues(): string {
return "Report issues";
}
public static reportIssues(): string {
return "Report issues";
}
}

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

Sorry, the diff of this file is too big to display

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