mjml-qr-code
Advanced tools
@@ -20,3 +20,3 @@ import { registerDependencies } from 'mjml-validator' | ||
| 'background-color': 'color', | ||
| 'qr-margin': 'unit(blocks)', | ||
| 'qr-margin': 'integer', | ||
| 'error-correction-level': 'string', | ||
@@ -83,3 +83,3 @@ width: 'unit(px)', | ||
| 'host', | ||
| )}/qr?text=${content}&size=${width}&dark=${foregroundColor}&light=${backgroundColor}&ecLevel=${ecLevel}&margin=${margin}` | ||
| )}/qr?text=${content}&size=${width}&dark=${foregroundColor}&light=${backgroundColor}&ecLevel=${ecLevel}&margin=${margin}&ref=mjml` | ||
| } | ||
@@ -86,0 +86,0 @@ |
+2
-2
@@ -70,3 +70,3 @@ "use strict"; | ||
| var margin = this.getAttribute('qr-margin'); | ||
| return "".concat(this.getAttribute('protocol'), "://").concat(this.getAttribute('host'), "/qr?text=").concat(content, "&size=").concat(width, "&dark=").concat(foregroundColor, "&light=").concat(backgroundColor, "&ecLevel=").concat(ecLevel, "&margin=").concat(margin); | ||
| return "".concat(this.getAttribute('protocol'), "://").concat(this.getAttribute('host'), "/qr?text=").concat(content, "&size=").concat(width, "&dark=").concat(foregroundColor, "&light=").concat(backgroundColor, "&ecLevel=").concat(ecLevel, "&margin=").concat(margin, "&ref=mjml"); | ||
| } | ||
@@ -104,3 +104,3 @@ }, { | ||
| 'background-color': 'color', | ||
| 'qr-margin': 'unit(blocks)', | ||
| 'qr-margin': 'integer', | ||
| 'error-correction-level': 'string', | ||
@@ -107,0 +107,0 @@ width: 'unit(px)', |
+4
-4
| { | ||
| "name": "mjml-qr-code", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "Embed QR codes in your emails", | ||
@@ -38,6 +38,6 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "mjml": "^4.12.0", | ||
| "mjml-core": "^4.12.0", | ||
| "mjml-validator": "^4.12.0" | ||
| "mjml": "^4.13.0", | ||
| "mjml-core": "^4.13.0", | ||
| "mjml-validator": "^4.13.0" | ||
| } | ||
| } |
+2
-1
| # mjml-qr-code | ||
| [](https://www.npmjs.com/package/mjml-qr-code) | ||
| [](https://travis-ci.com/typpo/mjml-qr-code) | ||
@@ -41,3 +42,3 @@ | ||
| "packages": [ | ||
| "mjml-qr-code/lib/index.js" | ||
| "mjml-qr-code/lib/MjQrCode.js" | ||
| ] | ||
@@ -44,0 +45,0 @@ } |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
19977
0.56%67
1.52%Updated
Updated
Updated