@plattar/plattar-qrcode 1.165.1 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -178,7 +178,7 @@ class BaseElement extends HTMLElement {
|
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
const canvas = this._qrCode._canvas;
|
|
181
|
+
const canvas = this._qrCode._domCanvas || this._qrCode._canvas;
|
|
182
182
|
|
|
183
183
|
if (canvas) {
|
|
184
184
|
if (canvas.style.width !== "100%") {
|
|
@@ -254,7 +254,9 @@ class BaseElement extends HTMLElement {
|
|
|
254
254
|
try {
|
|
255
255
|
const b64Link = btoa(url);
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
const serverType = this.hasAttribute("server") ? this.getAttribute("server") : "production";
|
|
258
|
+
|
|
259
|
+
fetch(serverType === "staging" ? "https://c.plattar.space/shorten" : "https://c.plattar.com/shorten", {
|
|
258
260
|
cache: "no-store",
|
|
259
261
|
method: "POST",
|
|
260
262
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plattar/plattar-qrcode",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Allows embedding Plattar-Style QR Codes for existing websites.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://www.plattar.com",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"qr-code-styling": "^1.
|
|
42
|
+
"qr-code-styling": "^1.9.2",
|
|
43
43
|
"object-hash": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@babel/cli": "^7.
|
|
47
|
-
"@babel/core": "^7.
|
|
48
|
-
"@babel/preset-env": "^7.
|
|
49
|
-
"browserify": "^17.0.
|
|
46
|
+
"@babel/cli": "^7.28.6",
|
|
47
|
+
"@babel/core": "^7.29.0",
|
|
48
|
+
"@babel/preset-env": "^7.29.5",
|
|
49
|
+
"browserify": "^17.0.1",
|
|
50
50
|
"uglify-es": "^3.3.9"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = "
|
|
1
|
+
module.exports = "2.7.1";
|