@plattar/plattar-qrcode 1.178.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.
@@ -254,7 +254,9 @@ class BaseElement extends HTMLElement {
254
254
  try {
255
255
  const b64Link = btoa(url);
256
256
 
257
- fetch("https://c.plattar.com/shorten", {
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": "1.178.1",
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.6.0-rc.1",
42
+ "qr-code-styling": "^1.9.2",
43
43
  "object-hash": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/cli": "^7.23.4",
47
- "@babel/core": "^7.23.7",
48
- "@babel/preset-env": "^7.23.8",
49
- "browserify": "^17.0.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.178.1";
1
+ module.exports = "2.7.1";