@plattar/plattar-qrcode
Advanced tools
Comparing version 1.114.1 to 1.118.1
@@ -37,2 +37,3 @@ const QRCodeStyling = require("qr-code-styling"); | ||
const color = this.hasAttribute("color") ? this.getAttribute("color") : "#000000"; | ||
const style = this.hasAttribute("qr-type") ? this.getAttribute("qr-type") : "default"; | ||
@@ -122,2 +123,11 @@ this._options = this._options || { | ||
switch (style) { | ||
case "dots": | ||
this._options.dotsOptions.type = "dots"; | ||
break; | ||
case "default": | ||
default: | ||
this._options.dotsOptions.type = "rounded"; | ||
} | ||
const shadow = this.shadowRoot || this.attachShadow({ mode: 'open' }); | ||
@@ -124,0 +134,0 @@ |
{ | ||
"name": "@plattar/plattar-qrcode", | ||
"version": "1.114.1", | ||
"version": "1.118.1", | ||
"description": "Allows embedding Plattar-Style QR Codes for existing websites.", | ||
@@ -42,8 +42,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"qr-code-styling": "^1.3.4" | ||
"qr-code-styling": "^1.5.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.13.14", | ||
"@babel/core": "^7.13.14", | ||
"@babel/preset-env": "^7.13.12", | ||
"@babel/cli": "^7.15.7", | ||
"@babel/core": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"browserify": "^17.0.0", | ||
@@ -50,0 +50,0 @@ "uglify-es": "^3.3.9" |
@@ -1,1 +0,1 @@ | ||
module.exports = "1.114.1"; | ||
module.exports = "1.118.1"; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
398855
3886
Updatedqr-code-styling@^1.5.0