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 0.3.5-beta.0 to 0.3.5-beta.1

2

lib/cjs.js

@@ -148,2 +148,4 @@ 'use strict';

var vueH = Vue.h;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
h = h || vueH;
var imgProps = __assign(__assign({}, this.$attrs), { src: this.dataUrl });

@@ -150,0 +152,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return

2

lib/cjs.min.js

@@ -15,2 +15,2 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("qrcode"),t=require("vue");function e(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=e(r),i=function(){return(i=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r}).apply(this,arguments)};

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var a=["low","medium","quartile","high","L","M","Q","H"],u=[0,1,2,3,4,5,6,7],o=["alphanumeric","numeric","kanji","byte"],l=["image/png","image/jpeg","image/webp"],p={props:{version:{type:Number,validator:function(r){return r===Number.parseInt(String(r),10)&&r>=1&&r<=40}},errorCorrectionLevel:{type:String,validator:function(r){return a.includes(r)}},maskPattern:{type:Number,validator:function(r){return u.includes(r)}},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:function(r){return["dark","light"].every((function(t){return["string","undefined"].includes(typeof r[t])}))}},type:{type:String,validator:function(r){return l.includes(r)}},quality:{type:Number,validator:function(r){return r===Number.parseFloat(String(r))&&r>=0&&r<=1}},value:{type:[String,Array],required:!0,validator:function(r){return"string"==typeof r||r.every((function(r){var t=r.data,e=r.mode;return"string"==typeof t&&(null==e||o.includes(e))}))}}},data:function(){return{dataUrl:""}},watch:{$props:{deep:!0,immediate:!0,handler:function(){var r=this,t=this.$props,e=t.quality,i=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]])}return e}(t,["quality"]);return n.default.toDataURL(this.value,Object.assign(i,null==e||{renderOptions:{quality:e}})).then((function(t){return r.dataUrl=t}))}}},render:function(r){var e=t.h,n=i(i({},this.$attrs),{src:this.dataUrl});return r("img",e?n:{domProps:n})}};exports.LEVELS=a,exports.MASK_PATTERNS=u,exports.MODES=o,exports.TYPES=l,exports.default=p;
***************************************************************************** */var a=["low","medium","quartile","high","L","M","Q","H"],u=[0,1,2,3,4,5,6,7],o=["alphanumeric","numeric","kanji","byte"],l=["image/png","image/jpeg","image/webp"],p={props:{version:{type:Number,validator:function(r){return r===Number.parseInt(String(r),10)&&r>=1&&r<=40}},errorCorrectionLevel:{type:String,validator:function(r){return a.includes(r)}},maskPattern:{type:Number,validator:function(r){return u.includes(r)}},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:function(r){return["dark","light"].every((function(t){return["string","undefined"].includes(typeof r[t])}))}},type:{type:String,validator:function(r){return l.includes(r)}},quality:{type:Number,validator:function(r){return r===Number.parseFloat(String(r))&&r>=0&&r<=1}},value:{type:[String,Array],required:!0,validator:function(r){return"string"==typeof r||r.every((function(r){var t=r.data,e=r.mode;return"string"==typeof t&&(null==e||o.includes(e))}))}}},data:function(){return{dataUrl:""}},watch:{$props:{deep:!0,immediate:!0,handler:function(){var r=this,t=this.$props,e=t.quality,i=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]])}return e}(t,["quality"]);return n.default.toDataURL(this.value,Object.assign(i,null==e||{renderOptions:{quality:e}})).then((function(t){return r.dataUrl=t}))}}},render:function(r){var e=t.h;r=r||e;var n=i(i({},this.$attrs),{src:this.dataUrl});return r("img",e?n:{domProps:n})}};exports.LEVELS=a,exports.MASK_PATTERNS=u,exports.MODES=o,exports.TYPES=l,exports.default=p;

@@ -115,2 +115,4 @@ import QRCode from 'qrcode';

const vueH = h;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
h$1 = h$1 || vueH;
const imgProps = Object.assign(Object.assign({}, this.$attrs), { src: this.dataUrl });

@@ -117,0 +119,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return

@@ -15,2 +15,2 @@ import e from"qrcode";import{h as t}from"vue";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */const r=["low","medium","quartile","high","L","M","Q","H"],a=[0,1,2,3,4,5,6,7],i=["alphanumeric","numeric","kanji","byte"],n=["image/png","image/jpeg","image/webp"];var o={props:{version:{type:Number,validator:e=>e===Number.parseInt(String(e),10)&&e>=1&&e<=40},errorCorrectionLevel:{type:String,validator:e=>r.includes(e)},maskPattern:{type:Number,validator:e=>a.includes(e)},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:e=>["dark","light"].every((t=>["string","undefined"].includes(typeof e[t])))},type:{type:String,validator:e=>n.includes(e)},quality:{type:Number,validator:e=>e===Number.parseFloat(String(e))&&e>=0&&e<=1},value:{type:[String,Array],required:!0,validator:e=>"string"==typeof e||e.every((({data:e,mode:t})=>"string"==typeof e&&(null==t||i.includes(t))))}},data:()=>({dataUrl:""}),watch:{$props:{deep:!0,immediate:!0,handler(){const t=this.$props,{quality:r}=t,a=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r}(t,["quality"]);return e.toDataURL(this.value,Object.assign(a,null==r||{renderOptions:{quality:r}})).then((e=>this.dataUrl=e))}}},render(e){const r=t,a=Object.assign(Object.assign({},this.$attrs),{src:this.dataUrl});return e("img",r?a:{domProps:a})}};export default o;export{r as LEVELS,a as MASK_PATTERNS,i as MODES,n as TYPES};
***************************************************************************** */const r=["low","medium","quartile","high","L","M","Q","H"],a=[0,1,2,3,4,5,6,7],i=["alphanumeric","numeric","kanji","byte"],n=["image/png","image/jpeg","image/webp"];var o={props:{version:{type:Number,validator:e=>e===Number.parseInt(String(e),10)&&e>=1&&e<=40},errorCorrectionLevel:{type:String,validator:e=>r.includes(e)},maskPattern:{type:Number,validator:e=>a.includes(e)},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:e=>["dark","light"].every((t=>["string","undefined"].includes(typeof e[t])))},type:{type:String,validator:e=>n.includes(e)},quality:{type:Number,validator:e=>e===Number.parseFloat(String(e))&&e>=0&&e<=1},value:{type:[String,Array],required:!0,validator:e=>"string"==typeof e||e.every((({data:e,mode:t})=>"string"==typeof e&&(null==t||i.includes(t))))}},data:()=>({dataUrl:""}),watch:{$props:{deep:!0,immediate:!0,handler(){const t=this.$props,{quality:r}=t,a=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r}(t,["quality"]);return e.toDataURL(this.value,Object.assign(a,null==r||{renderOptions:{quality:r}})).then((e=>this.dataUrl=e))}}},render(e){const r=t;e=e||r;const a=Object.assign(Object.assign({},this.$attrs),{src:this.dataUrl});return e("img",r?a:{domProps:a})}};export default o;export{r as LEVELS,a as MASK_PATTERNS,i as MODES,n as TYPES};

@@ -140,2 +140,4 @@ import QRCode from 'qrcode';

var vueH = h;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
h$1 = h$1 || vueH;
var imgProps = __assign(__assign({}, this.$attrs), { src: this.dataUrl });

@@ -142,0 +144,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return

@@ -15,2 +15,2 @@ import r from"qrcode";import{h as t}from"vue";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var e=function(){return(e=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r}).apply(this,arguments)};var n=["low","medium","quartile","high","L","M","Q","H"],i=[0,1,2,3,4,5,6,7],a=["alphanumeric","numeric","kanji","byte"],o=["image/png","image/jpeg","image/webp"],u={props:{version:{type:Number,validator:function(r){return r===Number.parseInt(String(r),10)&&r>=1&&r<=40}},errorCorrectionLevel:{type:String,validator:function(r){return n.includes(r)}},maskPattern:{type:Number,validator:function(r){return i.includes(r)}},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:function(r){return["dark","light"].every((function(t){return["string","undefined"].includes(typeof r[t])}))}},type:{type:String,validator:function(r){return o.includes(r)}},quality:{type:Number,validator:function(r){return r===Number.parseFloat(String(r))&&r>=0&&r<=1}},value:{type:[String,Array],required:!0,validator:function(r){return"string"==typeof r||r.every((function(r){var t=r.data,e=r.mode;return"string"==typeof t&&(null==e||a.includes(e))}))}}},data:function(){return{dataUrl:""}},watch:{$props:{deep:!0,immediate:!0,handler:function(){var t=this,e=this.$props,n=e.quality,i=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]])}return e}(e,["quality"]);return r.toDataURL(this.value,Object.assign(i,null==n||{renderOptions:{quality:n}})).then((function(r){return t.dataUrl=r}))}}},render:function(r){var n=t,i=e(e({},this.$attrs),{src:this.dataUrl});return r("img",n?i:{domProps:i})}};export default u;export{n as LEVELS,i as MASK_PATTERNS,a as MODES,o as TYPES};
***************************************************************************** */var e=function(){return(e=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r}).apply(this,arguments)};var n=["low","medium","quartile","high","L","M","Q","H"],i=[0,1,2,3,4,5,6,7],a=["alphanumeric","numeric","kanji","byte"],o=["image/png","image/jpeg","image/webp"],u={props:{version:{type:Number,validator:function(r){return r===Number.parseInt(String(r),10)&&r>=1&&r<=40}},errorCorrectionLevel:{type:String,validator:function(r){return n.includes(r)}},maskPattern:{type:Number,validator:function(r){return i.includes(r)}},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:function(r){return["dark","light"].every((function(t){return["string","undefined"].includes(typeof r[t])}))}},type:{type:String,validator:function(r){return o.includes(r)}},quality:{type:Number,validator:function(r){return r===Number.parseFloat(String(r))&&r>=0&&r<=1}},value:{type:[String,Array],required:!0,validator:function(r){return"string"==typeof r||r.every((function(r){var t=r.data,e=r.mode;return"string"==typeof t&&(null==e||a.includes(e))}))}}},data:function(){return{dataUrl:""}},watch:{$props:{deep:!0,immediate:!0,handler:function(){var t=this,e=this.$props,n=e.quality,i=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]])}return e}(e,["quality"]);return r.toDataURL(this.value,Object.assign(i,null==n||{renderOptions:{quality:n}})).then((function(r){return t.dataUrl=r}))}}},render:function(r){var n=t;r=r||n;var i=e(e({},this.$attrs),{src:this.dataUrl});return r("img",n?i:{domProps:i})}};export default u;export{n as LEVELS,i as MASK_PATTERNS,a as MODES,o as TYPES};

@@ -102,2 +102,4 @@ import { __assign, __rest } from "tslib";

var vueH = Vue.h;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
h = h || vueH;
var imgProps = __assign(__assign({}, this.$attrs), { src: this.dataUrl });

@@ -104,0 +106,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return

@@ -147,2 +147,4 @@ (function (global, factory) {

var vueH = Vue.h;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
h = h || vueH;
var imgProps = __assign(__assign({}, this.$attrs), { src: this.dataUrl });

@@ -149,0 +151,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return

@@ -15,2 +15,2 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("qrcode"),require("vue")):"function"==typeof define&&define.amd?define(["exports","qrcode","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VueQrcode={},e.QRCode,e.Vue)}(this,(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var u=["low","medium","quartile","high","L","M","Q","H"],a=[0,1,2,3,4,5,6,7],l=["alphanumeric","numeric","kanji","byte"],c=["image/png","image/jpeg","image/webp"],d={props:{version:{type:Number,validator:function(e){return e===Number.parseInt(String(e),10)&&e>=1&&e<=40}},errorCorrectionLevel:{type:String,validator:function(e){return u.includes(e)}},maskPattern:{type:Number,validator:function(e){return a.includes(e)}},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:function(e){return["dark","light"].every((function(t){return["string","undefined"].includes(typeof e[t])}))}},type:{type:String,validator:function(e){return c.includes(e)}},quality:{type:Number,validator:function(e){return e===Number.parseFloat(String(e))&&e>=0&&e<=1}},value:{type:[String,Array],required:!0,validator:function(e){return"string"==typeof e||e.every((function(e){var t=e.data,r=e.mode;return"string"==typeof t&&(null==r||l.includes(r))}))}}},data:function(){return{dataUrl:""}},watch:{$props:{deep:!0,immediate:!0,handler:function(){var e=this,t=this.$props,r=t.quality,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["quality"]);return i.default.toDataURL(this.value,Object.assign(n,null==r||{renderOptions:{quality:r}})).then((function(t){return e.dataUrl=t}))}}},render:function(e){var t=r.h,n=o(o({},this.$attrs),{src:this.dataUrl});return e("img",t?n:{domProps:n})}};e.LEVELS=u,e.MASK_PATTERNS=a,e.MODES=l,e.TYPES=c,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */var u=["low","medium","quartile","high","L","M","Q","H"],a=[0,1,2,3,4,5,6,7],l=["alphanumeric","numeric","kanji","byte"],c=["image/png","image/jpeg","image/webp"],d={props:{version:{type:Number,validator:function(e){return e===Number.parseInt(String(e),10)&&e>=1&&e<=40}},errorCorrectionLevel:{type:String,validator:function(e){return u.includes(e)}},maskPattern:{type:Number,validator:function(e){return a.includes(e)}},toSJISFunc:Function,margin:Number,scale:Number,width:Number,color:{type:Object,validator:function(e){return["dark","light"].every((function(t){return["string","undefined"].includes(typeof e[t])}))}},type:{type:String,validator:function(e){return c.includes(e)}},quality:{type:Number,validator:function(e){return e===Number.parseFloat(String(e))&&e>=0&&e<=1}},value:{type:[String,Array],required:!0,validator:function(e){return"string"==typeof e||e.every((function(e){var t=e.data,r=e.mode;return"string"==typeof t&&(null==r||l.includes(r))}))}}},data:function(){return{dataUrl:""}},watch:{$props:{deep:!0,immediate:!0,handler:function(){var e=this,t=this.$props,r=t.quality,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["quality"]);return i.default.toDataURL(this.value,Object.assign(n,null==r||{renderOptions:{quality:r}})).then((function(t){return e.dataUrl=t}))}}},render:function(e){var t=r.h;e=e||t;var n=o(o({},this.$attrs),{src:this.dataUrl});return e("img",t?n:{domProps:n})}};e.LEVELS=u,e.MASK_PATTERNS=a,e.MODES=l,e.TYPES=c,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "vue-qrcode",
"version": "0.3.5-beta.0+cb3e1ea",
"version": "0.3.5-beta.1",
"description": "🤳 A Vue component for QR code generation with `qrcode`",

@@ -30,4 +30,3 @@ "repository": "git@github.com:rx-ts/vue.git",

"sideEffects": false,
"esm5": "lib",
"gitHead": "cb3e1ea08bac87f1ea12b00fc06a8ecfa34c8cca"
"esm5": "lib"
}

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