@massimo-cassandro/minimo 0.12.9 → 0.12.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "0.12.9",
3
+ "version": "0.12.11",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -89,7 +89,7 @@ import caretRightIcon from '../../icons/caret-right.svg?inline';
89
89
  * colonna con `_renderNullAs`.
90
90
  * Default: `\u2014` (em dash)
91
91
  *
92
- * @param {string[]} referrers Elenco di percorsi URL da cui, se si proviene,
92
+ * @param {string[]} refs Elenco di percorsi URL da cui, se si proviene,
93
93
  * la pagina corrente viene ripristinata dal cookie
94
94
  * di sessione `sd-pag`. Se il referrer non è tra
95
95
  * quelli indicati, il cookie viene eliminato.
@@ -386,11 +386,11 @@ class SimpleDatatableAdapter extends HTMLElement {
386
386
  }
387
387
 
388
388
  /**
389
- * Restituisce true se il referrer corrisponde a uno dei percorsi in `referrers`.
389
+ * Restituisce true se il referrer corrisponde a uno dei percorsi in `refs`.
390
390
  * Il confronto avviene su `pathname` per ignorare query string e hash.
391
391
  */
392
392
  _isReferrerAllowed() {
393
- const allowed = this._getParam('referrers', []);
393
+ const allowed = this._getParam('refs', []);
394
394
  if (!allowed.length || !document.referrer) return false;
395
395
  const referrerPath = new URL(document.referrer).pathname;
396
396
  return allowed.some(path => referrerPath === path);