@kirby-tools/licensing 0.7.0 → 0.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.
package/dist/constants.js CHANGED
@@ -1,29 +1,17 @@
1
1
  //#region src/constants.ts
2
2
  const INTEGRITY_ERROR = "The activation buttons appear to be hidden. Please purchase a license.";
3
3
  const I18N_MESSAGES = {
4
- en: {
5
- "activate": "Activate",
6
- "buy": "Buy a license",
7
- "upgrade": "Upgrade",
8
- "notification.success": "Plugin activated!"
9
- },
10
4
  de: {
11
5
  "activate": "Aktivieren",
12
6
  "buy": "Lizenz kaufen",
13
7
  "upgrade": "Upgrade",
14
8
  "notification.success": "Plugin aktiviert!"
15
9
  },
16
- fr: {
17
- "activate": "Activer",
18
- "buy": "Acheter une licence",
19
- "upgrade": "Upgrade",
20
- "notification.success": "Plugin activé !"
21
- },
22
- nl: {
23
- "activate": "Activeren",
24
- "buy": "Koop een licentie",
10
+ en: {
11
+ "activate": "Activate",
12
+ "buy": "Buy a license",
25
13
  "upgrade": "Upgrade",
26
- "notification.success": "Plugin geactiveerd!"
14
+ "notification.success": "Plugin activated!"
27
15
  },
28
16
  es: {
29
17
  "activate": "Activar",
@@ -31,11 +19,23 @@ const I18N_MESSAGES = {
31
19
  "upgrade": "Actualizar",
32
20
  "notification.success": "¡Plugin activado!"
33
21
  },
22
+ fr: {
23
+ "activate": "Activer",
24
+ "buy": "Acheter une licence",
25
+ "upgrade": "Upgrade",
26
+ "notification.success": "Plugin activé !"
27
+ },
34
28
  it: {
35
29
  "activate": "Attiva",
36
30
  "buy": "Acquista licenza",
37
31
  "upgrade": "Aggiorna",
38
32
  "notification.success": "Plugin attivato!"
33
+ },
34
+ nl: {
35
+ "activate": "Activeren",
36
+ "buy": "Koop een licentie",
37
+ "upgrade": "Upgrade",
38
+ "notification.success": "Plugin geactiveerd!"
39
39
  }
40
40
  };
41
41
 
package/dist/utils.js CHANGED
@@ -4,17 +4,13 @@ import { I18N_MESSAGES } from "./constants.js";
4
4
  const LOCALHOST_HOSTNAMES = [
5
5
  "localhost",
6
6
  "127.0.0.1",
7
- "[::1]",
8
- "0.0.0.0"
7
+ "[::1]"
9
8
  ];
10
9
  const LOCAL_TLD_SUFFIXES = [
11
10
  "localhost",
12
11
  "local",
13
12
  "test",
14
- "ddev.site",
15
- "lndo.site",
16
- "nitro",
17
- "dev.cc"
13
+ "ddev.site"
18
14
  ];
19
15
  function template(input, values, fallback) {
20
16
  return input.replace(/\{(\w+)\}/g, (_, key) => values[key] || ((typeof fallback === "function" ? fallback(key) : fallback) ?? key));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kirby-tools/licensing",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "packageManager": "pnpm@10.28.0",
6
6
  "description": "License system for Kirby Tools plugins within the Kirby Panel",
7
7
  "author": "Johann Schopplich <hello@johannschopplich.com>",