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

vue-qrcode

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-qrcode - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

10

lib/index.d.ts
import type { QRCodeErrorCorrectionLevel, QRCodeSegment, QRCodeToDataURLOptions } from 'qrcode';
import type { PropType } from 'vue-demi';
import { type PropType } from 'vue';
export declare const LEVELS: readonly ["low", "medium", "quartile", "high", "L", "M", "Q", "H"];

@@ -7,3 +7,3 @@ export declare const MASK_PATTERNS: readonly [0, 1, 2, 3, 4, 5, 6, 7];

export declare const MODES: readonly ["alphanumeric", "numeric", "kanji", "byte"];
export { QRCodeSegment };
export { QRCodeSegment } from 'qrcode';
export declare type QRCodeValue = QRCodeSegment[] | string;

@@ -14,3 +14,3 @@ export declare const TYPES: readonly ["image/png", "image/jpeg", "image/webp"];

};
declare const _default: import("vue-demi").DefineComponent<{
declare const _default: import("vue").DefineComponent<{
version: {

@@ -52,5 +52,5 @@ type: NumberConstructor;

};
}, () => import("vue-demi").VNode<import("vue-demi").RendererNode, import("vue-demi").RendererElement, {
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, Record<string, any>, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
version: {

@@ -57,0 +57,0 @@ type: NumberConstructor;

import { __rest } from "tslib";
import QRCode from 'qrcode';
import { defineComponent, h, ref, watch } from 'vue-demi';
import { defineComponent, h, ref, watch } from 'vue';
export const LEVELS = [

@@ -70,5 +70,3 @@ 'low',

const toDataURL = () => {
// no idea why, but vuepress emits error saying `props` is undefined
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const _a = props || {}, { quality, value } = _a, rest = __rest(_a, ["quality", "value"]);
const { quality, value } = props, rest = __rest(props, ["quality", "value"]);
QRCode.toDataURL(value, Object.assign(rest, quality == null || {

@@ -75,0 +73,0 @@ renderOptions: {

{
"name": "vue-qrcode",
"version": "1.0.1",
"version": "2.0.0",
"type": "module",

@@ -8,3 +8,35 @@ "description": "🤳 A Vue component for QR code generation with `qrcode`",

"homepage": "https://github.com/rx-ts/vue/blob/master/packages/vue-qrcode",
"author": "JounQin <admin@1stg.me>",
"author": "JounQin (https://www.1stG.me) <admin@1stg.me>",
"donate": {
"recipients": [
{
"name": "unts",
"platform": "opencollective",
"address": "https://opencollective.com/unts",
"weight": 60
},
{
"name": "rxts",
"platform": "opencollective",
"address": "https://opencollective.com/rxts",
"weight": 20
},
{
"name": "1stG",
"email": "i@1stg.me",
"weight": 20,
"platforms": [
{
"platform": "opencollective",
"address": "https://opencollective.com/1stG"
},
{
"platform": "patreon",
"address": "https://www.patreon.com/1stG"
}
]
}
]
},
"funding": "https://opencollective.com/rxts",
"license": "MIT",

@@ -14,5 +46,5 @@ "main": "./lib/index.cjs",

"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
"require": "./lib/index.cjs"
},

@@ -22,3 +54,3 @@ "types": "./lib/index.d.ts",

"lib",
"!lib/*.tsbuildinfo"
"!**/*.tsbuildinfo"
],

@@ -31,14 +63,7 @@ "keywords": [

"peerDependencies": {
"@vue/composition-api": "^1.0.0",
"qrcode": "^1.0.0",
"vue": "^2.0.0 || ^3.0.0"
"vue": "^2.7.0 || ^3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
"dependencies": {
"tslib": "^2.2.0",
"vue-demi": "^0.12.5"
"tslib": "^2.4.0"
},

@@ -45,0 +70,0 @@ "publishConfig": {

@@ -10,2 +10,4 @@ # VueQrcode

- [Available Props](#available-props)
- [Sponsors](#sponsors)
- [Backers](#backers)
- [Changelog](#changelog)

@@ -51,2 +53,14 @@ - [License](#license)

## Sponsors
| 1stG | RxTS | UnTS |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
## Backers
| 1stG | RxTS | UnTS |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
## Changelog

@@ -53,0 +67,0 @@

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