vite-imagetools
Advanced tools
Comparing version 6.2.7 to 6.2.8
@@ -7,3 +7,3 @@ import path, { basename, extname } from 'node:path'; | ||
import { createHash } from 'node:crypto'; | ||
import { stat } from 'node:fs/promises'; | ||
import { statSync } from 'node:fs'; | ||
@@ -22,3 +22,3 @@ const createBasePath = (base) => { | ||
const baseURL = new URL(url.protocol + path.relative(process.cwd(), url.pathname)); | ||
const { mtime } = await stat(path.resolve(process.cwd(), url.pathname)); | ||
const { mtime } = statSync(path.resolve(process.cwd(), decodeURIComponent(url.pathname))); | ||
return hash([baseURL.href, JSON.stringify(config), mtime.getTime().toString()]); | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "vite-imagetools", | ||
"description": "Load and transform images using a toolbox of import directives!", | ||
"version": "6.2.7", | ||
"version": "6.2.8", | ||
"type": "module", | ||
@@ -48,3 +48,3 @@ "types": "dist/index.d.ts", | ||
"typescript": "^5.1.6", | ||
"vite": "^5.0.0", | ||
"vite": "^5.0.5", | ||
"vitest": "^0.34.0", | ||
@@ -51,0 +51,0 @@ "imagetools-core": "^6.0.3" |
Sorry, the diff of this file is not supported yet
34948