vue-qrious
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -6,3 +6,3 @@ # Change Log | ||
## [1.3.1](https://github.com/rx-ts/vue/compare/vue-qrious@1.3.0...vue-qrious@1.3.1) (2019-09-03) | ||
# [1.4.0](https://github.com/rx-ts/vue/compare/vue-qrious@1.3.2...vue-qrious@1.4.0) (2019-09-07) | ||
@@ -12,13 +12,24 @@ | ||
* vue should be peer dependency of vue-qrious ([4e05f1e](https://github.com/rx-ts/vue/commit/4e05f1e)) | ||
* **qrcode:** example code, add keywords field in packages.json ([bc5fa40](https://github.com/rx-ts/vue/commit/bc5fa40)) | ||
### Features | ||
* add @rxts/qrcode package, improve documentation ([0cdcaa7](https://github.com/rx-ts/vue/commit/0cdcaa7)) | ||
* **qrcode:** rename vue-qrcode package name, thanks to [@xiaokaike](https://github.com/xiaokaike) ([02408b3](https://github.com/rx-ts/vue/commit/02408b3)) | ||
## [1.3.1](https://github.com/rx-ts/vue/compare/vue-qrious@1.3.0...vue-qrious@1.3.1) (2019-09-03) | ||
### Bug Fixes | ||
- vue should be peer dependency of vue-qrious ([4e05f1e](https://github.com/rx-ts/vue/commit/4e05f1e)) | ||
# 1.3.0 (2019-09-03) | ||
### Features | ||
* refactor to typescript based codes, more output formats ([4ac0dc4](https://github.com/rx-ts/vue/commit/4ac0dc4)) | ||
- refactor to typescript based codes, more output formats ([4ac0dc4](https://github.com/rx-ts/vue/commit/4ac0dc4)) |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -7,3 +9,3 @@ | ||
var LEVELS = ['L', 'M', 'Q', 'H']; | ||
var LEVELS = Object.freeze(['L', 'M', 'Q', 'H']); | ||
var index = { | ||
@@ -53,2 +55,3 @@ props: { | ||
module.exports = index; | ||
exports.LEVELS = LEVELS; | ||
exports.default = index; |
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var QRious=_interopDefault(require("qrious")),LEVELS=["L","M","Q","H"],index={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:function(t){return LEVELS.includes(t)}},mime:String,padding:Number,size:Number},data:function(){var t=new QRious(this.$props);return{qrious:t,dataUrl:t.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler:function(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render:function(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};module.exports=index; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var QRious=_interopDefault(require("qrious")),LEVELS=Object.freeze(["L","M","Q","H"]),index={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:function(e){return LEVELS.includes(e)}},mime:String,padding:Number,size:Number},data:function(){var e=new QRious(this.$props);return{qrious:e,dataUrl:e.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler:function(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render:function(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};exports.LEVELS=LEVELS,exports.default=index; |
import QRious from 'qrious'; | ||
const LEVELS = ['L', 'M', 'Q', 'H']; | ||
const LEVELS = Object.freeze(['L', 'M', 'Q', 'H']); | ||
var index = { | ||
@@ -49,1 +49,2 @@ props: { | ||
export default index; | ||
export { LEVELS }; |
@@ -1,1 +0,1 @@ | ||
import r from"qrious";const t=["L","M","Q","H"];var e={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:r=>t.includes(r)},mime:String,padding:Number,size:Number},data(){const t=new r(this.$props);return{qrious:t,dataUrl:t.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};export default e; | ||
import r from"qrious";const t=Object.freeze(["L","M","Q","H"]);var e={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:r=>t.includes(r)},mime:String,padding:Number,size:Number},data(){const t=new r(this.$props);return{qrious:t,dataUrl:t.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};export default e;export{t as LEVELS}; |
import QRious from 'qrious'; | ||
var LEVELS = ['L', 'M', 'Q', 'H']; | ||
var LEVELS = Object.freeze(['L', 'M', 'Q', 'H']); | ||
var index = { | ||
@@ -49,1 +49,2 @@ props: { | ||
export default index; | ||
export { LEVELS }; |
@@ -1,1 +0,1 @@ | ||
import r from"qrious";var t=["L","M","Q","H"],e={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:function(r){return t.includes(r)}},mime:String,padding:Number,size:Number},data:function(){var t=new r(this.$props);return{qrious:t,dataUrl:t.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler:function(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render:function(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};export default e; | ||
import r from"qrious";var t=Object.freeze(["L","M","Q","H"]),e={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:function(r){return t.includes(r)}},mime:String,padding:Number,size:Number},data:function(){var t=new r(this.$props);return{qrious:t,dataUrl:t.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler:function(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render:function(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};export default e;export{t as LEVELS}; |
import QRious from 'qrious'; | ||
import Vue from 'vue'; | ||
declare const LEVELS: readonly ["L", "M", "Q", "H"]; | ||
export declare const LEVELS: readonly ["L", "M", "Q", "H"]; | ||
export declare type Level = (typeof LEVELS)[number]; | ||
@@ -5,0 +5,0 @@ declare const _default: { |
import QRious from 'qrious'; | ||
var LEVELS = ['L', 'M', 'Q', 'H']; | ||
export var LEVELS = Object.freeze(['L', 'M', 'Q', 'H']); | ||
export default { | ||
@@ -4,0 +4,0 @@ props: { |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('qrious')) : | ||
typeof define === 'function' && define.amd ? define(['qrious'], factory) : | ||
(global = global || self, global.VueQrious = factory(global.QRious)); | ||
}(this, function (QRious) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('qrious')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'qrious'], factory) : | ||
(global = global || self, factory(global.VueQrious = {}, global.QRious)); | ||
}(this, function (exports, QRious) { 'use strict'; | ||
QRious = QRious && QRious.hasOwnProperty('default') ? QRious['default'] : QRious; | ||
var LEVELS = ['L', 'M', 'Q', 'H']; | ||
var LEVELS = Object.freeze(['L', 'M', 'Q', 'H']); | ||
var index = { | ||
@@ -54,4 +54,7 @@ props: { | ||
return index; | ||
exports.LEVELS = LEVELS; | ||
exports.default = index; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("qrious")):"function"==typeof define&&define.amd?define(["qrious"],t):(e=e||self).VueQrious=t(e.QRious)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t=["L","M","Q","H"];return{props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:function(e){return t.includes(e)}},mime:String,padding:Number,size:Number},data:function(){var t=new e(this.$props);return{qrious:t,dataUrl:t.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler:function(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render:function(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("qrious")):"function"==typeof define&&define.amd?define(["exports","qrious"],t):t((e=e||self).VueQrious={},e.QRious)}(this,function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var r=Object.freeze(["L","M","Q","H"]),i={props:{value:{type:String,required:!0},background:String,backgroundAlpha:Number,foreground:String,foregroundAlpha:Number,level:{type:String,validator:function(e){return r.includes(e)}},mime:String,padding:Number,size:Number},data:function(){var e=new t(this.$props);return{qrious:e,dataUrl:e.toDataURL(this.mime)}},watch:{$props:{deep:!0,handler:function(){this.qrious.set(this.$props),this.dataUrl=this.qrious.toDataURL(this.mime)}}},render:function(){return this.$createElement("img",{domProps:{src:this.dataUrl},attrs:this.$attrs})}};e.LEVELS=r,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "vue-qrious", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "🤳 A Vue component for QR code generation with qrious", | ||
@@ -19,4 +19,12 @@ "repository": "git@github.com:rx-ts/vue.git", | ||
"src", | ||
"qrious.d.ts" | ||
"qrious.d.ts", | ||
"typings.d.ts" | ||
], | ||
"keywords": [ | ||
"vue-qrcode", | ||
"vue-qrious", | ||
"qrcode", | ||
"qrious", | ||
"vue" | ||
], | ||
"peerDependencies": { | ||
@@ -27,3 +35,3 @@ "qrious": "^4.0.0", | ||
"sideEffects": false, | ||
"gitHead": "2d1bf029efde49f7924485960f398f1c0022908b" | ||
"gitHead": "311a4b9529fcf186e7d715248878f8cbb47390b6" | ||
} |
@@ -1,23 +0,23 @@ | ||
declare module 'qrious' { | ||
namespace QRious { | ||
interface QRiousOptions { | ||
value: string | ||
background?: string | ||
backgroundAlpha?: number | ||
foreground?: string | ||
foregroundAlpha?: number | ||
level?: 'L' | 'M' | 'Q' | 'H' | ||
mime?: string | ||
padding?: number | ||
size?: number | ||
} | ||
declare namespace QRious { | ||
interface QRiousOptions { | ||
value: string | ||
background?: string | ||
backgroundAlpha?: number | ||
foreground?: string | ||
foregroundAlpha?: number | ||
level?: 'L' | 'M' | 'Q' | 'H' | ||
mime?: string | ||
padding?: number | ||
size?: number | ||
} | ||
} | ||
class QRious { | ||
constructor(options?: QRious.QRiousOptions) | ||
toDataURL(mime?: string): string | ||
set(options?: QRious.QRiousOptions): void | ||
} | ||
declare class QRious { | ||
constructor(options?: QRious.QRiousOptions) | ||
toDataURL(mime?: string): string | ||
set(options?: QRious.QRiousOptions): void | ||
} | ||
export = QRious | ||
} | ||
export = QRious | ||
export as namespace QRious |
# VueQRious | ||
> 🤳 A Vue component for QR code generation with qrious | ||
> 🤳 A Vue component for QR code generation with [qrious](https://github.com/neocotic/qrious) | ||
@@ -9,3 +9,3 @@ ## Usage | ||
<template> | ||
<qrious value="https://blog.1stg.me" /> | ||
<qrious value="https://www.1stg.me" /> | ||
</template> | ||
@@ -25,3 +25,3 @@ <script> | ||
| prop | type | default value | | ||
| prop | type (range) | default value | | ||
| ----------------- | ------------------------------------ | ------------- | | ||
@@ -28,0 +28,0 @@ | `background` | `string` (CSS color) | `"#ffffff"` | |
import QRious, { QRiousOptions } from 'qrious' | ||
import Vue from 'vue' | ||
const LEVELS = ['L', 'M', 'Q', 'H'] as const | ||
export const LEVELS = Object.freeze(['L', 'M', 'Q', 'H'] as const) | ||
@@ -6,0 +6,0 @@ // eslint-disable-next-line @typescript-eslint/no-type-alias |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
18192
19
378
0