From 870c40cb4658053718d1f11d040ac22af5446c61 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 18 Sep 2024 09:17:41 -0700 Subject: [PATCH] fix: check --- package-lock.json | 12 ++++++------ package.json | 4 ++-- src/pages/static/search.html | 6 +++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0948f0f1..e7fb9b01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "24.16.3", + "version": "24.16.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "24.16.3", + "version": "24.16.5", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.5.0", @@ -27,7 +27,7 @@ "html-entities": "^2.5.2", "html-minifier-terser": "^7.2.0", "html-to-text": "^9.0.5", - "ics": "^3.7.6", + "ics": "^3.8.0", "luxon": "^3.5.0", "markdown-it": "^14.1.0", "markdown-it-anchor": "^9.2.0", @@ -2469,9 +2469,9 @@ } }, "node_modules/ics": { - "version": "3.7.6", - "resolved": "https://registry.npmjs.org/ics/-/ics-3.7.6.tgz", - "integrity": "sha512-Z1QIWoPzyzqKUSj2Ui9vD3ca0AS+uHyiCjkROFx9PiKtJu9vMuMo6KJ4aqFmMAqn5q3fLq/5tLTJRm4zr9jjgw==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ics/-/ics-3.8.0.tgz", + "integrity": "sha512-YNoIcjJ8Yh0S+wXgbJGhkjLsZR/X2vVUz9yk3M83TXh7MvOb+5ad3sGXFB4Hm2M9hYQoY+Yb4m955VhKOrdojw==", "dev": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 5721a701..601a88dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "24.16.3", + "version": "24.16.5", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { @@ -40,7 +40,7 @@ "html-entities": "^2.5.2", "html-minifier-terser": "^7.2.0", "html-to-text": "^9.0.5", - "ics": "^3.7.6", + "ics": "^3.8.0", "luxon": "^3.5.0", "markdown-it": "^14.1.0", "markdown-it-anchor": "^9.2.0", diff --git a/src/pages/static/search.html b/src/pages/static/search.html index 329c2bea..a0e8551a 100644 --- a/src/pages/static/search.html +++ b/src/pages/static/search.html @@ -35,7 +35,11 @@ permalink: /search.html // Clear the results when input is empty renderSearchResults([]) } else { - if (query.length > 1 && window?.umami) umami.trackEvent('Search', { query: query }) + if (query.length > 1) { + try { + umami.trackEvent('Search', { query: query }) + } catch (err) {} + } renderSearchResults(results, query) } })