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

@screencloud/qr-key-generator

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@screencloud/qr-key-generator - npm Package Compare versions

Comparing version 1.0.7 to 1.1.0

2

dist/core/QRCode.d.ts
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",

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