@screencloud/qr-key-generator
Advanced tools
Comparing version 1.0.7 to 1.1.0
import { QRPayload } from '../types'; | ||
export declare class QRCode { | ||
static validatePayload(payload: QRPayload): void; | ||
getKey(payload: QRPayload): string; | ||
getKey(payload: QRPayload, shouldValidate?: boolean): string; | ||
private hexToDec; | ||
} |
@@ -46,4 +46,7 @@ "use strict"; | ||
}; | ||
QRCode.prototype.getKey = function (payload) { | ||
QRCode.validatePayload(payload); | ||
QRCode.prototype.getKey = function (payload, shouldValidate) { | ||
if (shouldValidate === void 0) { shouldValidate = true; } | ||
if (shouldValidate) { | ||
QRCode.validatePayload(payload); | ||
} | ||
var md5encode = md5_1.Md5.hashStr(JSON.stringify(payload)); | ||
@@ -50,0 +53,0 @@ var md5Int = this.hexToDec(md5encode); |
{ | ||
"name": "@screencloud/qr-key-generator", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "The library that encode the payload into a key for QRCode url", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7533
155