From 5cd4515eb79da771bd2a82ec10668fe0db39ca46 Mon Sep 17 00:00:00 2001 From: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:49:20 -0400 Subject: [PATCH] chore: Remove patch and update vite-imagetools (#1060) --- package.json | 5 ----- patches/vite-imagetools@7.0.1.patch | 14 -------------- pnpm-lock.yaml | 14 ++++---------- 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 patches/vite-imagetools@7.0.1.patch diff --git a/package.json b/package.json index a21c6429d..3e02fb47d 100644 --- a/package.json +++ b/package.json @@ -55,10 +55,5 @@ }, "simple-git-hooks": { "pre-commit": "pnpm -r format:staged --staged" - }, - "pnpm": { - "patchedDependencies": { - "vite-imagetools@7.0.1": "patches/vite-imagetools@7.0.1.patch" - } } } diff --git a/patches/vite-imagetools@7.0.1.patch b/patches/vite-imagetools@7.0.1.patch deleted file mode 100644 index 9c6374797..000000000 --- a/patches/vite-imagetools@7.0.1.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/dist/index.js b/dist/index.js -index b67e7418e853d74eb418e074f342ea5356c9e728..fd5f8060e8f5f65ef60b0217d7907e8da4147442 100644 ---- a/dist/index.js -+++ b/dist/index.js -@@ -19,8 +19,7 @@ async function generateImageID(url, config, imageBuffer) { - // baseURL isn't a valid URL, but just a string used for an identifier - // use a relative path in the local case so that it's consistent across machines - const baseURL = new URL(url.protocol + path.relative(process.cwd(), url.pathname)); -- const { mtime } = statSync(path.resolve(process.cwd(), decodeURIComponent(url.pathname))); -- return hash([baseURL.href, JSON.stringify(config), mtime.getTime().toString()]); -+ return hash([baseURL.href, JSON.stringify(config), imageBuffer]); - } - function hash(keyParts) { - let hash = createHash('sha1'); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1b22e81a1..cc20cc50e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,11 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -patchedDependencies: - vite-imagetools@7.0.1: - hash: r7tby3lpiixpbgq6pvloy3vfmq - path: patches/vite-imagetools@7.0.1.patch - importers: .: @@ -2219,9 +2214,9 @@ packages: /@sveltejs/enhanced-img@0.2.0(svelte@4.2.12): resolution: {integrity: sha512-W6wG0RxQYoL13LmUl8IBHeQatMXSd2ybrjg/WQuE5EoIJq+wUkf1hUDaMp9PHe4ubpnzWK/c0QaE5Ls+zjHimA==} dependencies: - magic-string: 0.30.8 + magic-string: 0.30.9 svelte-parse-markup: 0.1.2(svelte@4.2.12) - vite-imagetools: 7.0.1(patch_hash=r7tby3lpiixpbgq6pvloy3vfmq) + vite-imagetools: 7.0.2 transitivePeerDependencies: - rollup - svelte @@ -9307,8 +9302,8 @@ packages: vfile-message: 4.0.2 dev: true - /vite-imagetools@7.0.1(patch_hash=r7tby3lpiixpbgq6pvloy3vfmq): - resolution: {integrity: sha512-23jnLhkTH0HR9Vd9LxMYnajOLeo0RJNEAHhtlsQP6kfPuOBoTzt54rWbEWB9jmhEXAOflLQpM+FrmilVPAoyGA==} + /vite-imagetools@7.0.2: + resolution: {integrity: sha512-sA98fIhfIqPdt5qKAMMrQtBzdqK44dlmv4jEUlJMmn4GzR8CdXjKGiyU/GKUFxjReuPi0fK/dd0JhiZixZt06A==} engines: {node: '>=18.0.0'} dependencies: '@rollup/pluginutils': 5.1.0 @@ -9316,7 +9311,6 @@ packages: transitivePeerDependencies: - rollup dev: true - patched: true /vite-node@0.34.6(@types/node@18.19.22): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==}