nuxt-file-storage 0.3.1-beta.1 → 0.3.2

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-file-storage",
3
3
  "configKey": "fileStorage",
4
- "version": "0.3.1-beta.1",
4
+ "version": "0.3.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,4 +1,4 @@
1
1
  import { defineNuxtPlugin } from "#app";
2
- export default defineNuxtPlugin((nuxtApp) => {
2
+ export default defineNuxtPlugin((_nuxtApp) => {
3
3
  console.log("nuxt-file-storage initialized successfully");
4
4
  });
@@ -37,7 +37,7 @@ export const resolveAndEnsureInside = async (mount, ...parts) => {
37
37
  try {
38
38
  await stat(cur);
39
39
  break;
40
- } catch (error) {
40
+ } catch {
41
41
  const parent = path.dirname(cur);
42
42
  if (parent === cur) break;
43
43
  cur = parent;
@@ -10,7 +10,7 @@ import { createReadStream, promises as fsPromises } from "fs";
10
10
  const getMount = () => {
11
11
  try {
12
12
  return useRuntimeConfig().public.fileStorage.mount;
13
- } catch (err) {
13
+ } catch {
14
14
  return process.env.FILE_STORAGE_MOUNT || process.env.NUXT_FILE_STORAGE_MOUNT;
15
15
  }
16
16
  };
@@ -119,7 +119,7 @@ export const retrieveFileLocally = async (event, filename, filelocation = "") =>
119
119
  if (!stats.isFile()) {
120
120
  throw createError({ statusCode: 404, statusMessage: "Not Found" });
121
121
  }
122
- } catch (err) {
122
+ } catch {
123
123
  throw createError({ statusCode: 404, statusMessage: "Not Found" });
124
124
  }
125
125
  const ext = path.extname(filePath).slice(1).toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-file-storage",
3
- "version": "0.3.1-beta.1",
3
+ "version": "0.3.2",
4
4
  "description": "Easy solution to store files in your nuxt apps. Be able to upload files from the frontend and recieve them from the backend to then save the files in your project.",
5
5
  "repository": "NyllRE/nuxt-file-storage",
6
6
  "license": "MIT",
@@ -22,9 +22,10 @@
22
22
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
23
23
  "bump": "npm version patch -m \"chore(release): %s\"",
24
24
  "release": "npm run lint && npm run bump && npm run prepack && changelogen && git push --follow-tags && npm publish",
25
- "lint": "eslint .",
25
+ "lint": "oxlint .",
26
26
  "test": "vitest run",
27
- "test:watch": "vitest watch"
27
+ "test:watch": "vitest watch",
28
+ "changelogen": "changelogen"
28
29
  },
29
30
  "dependencies": {
30
31
  "@nuxt/kit": "^4.3.0",
@@ -43,6 +44,7 @@
43
44
  "eslint": "^8.57.1",
44
45
  "happy-dom": "^20.0.11",
45
46
  "nuxt": "^4.3.0",
47
+ "oxlint": "^1.42.0",
46
48
  "playwright-core": "^1.57.0",
47
49
  "typescript": "^5.9.3",
48
50
  "vitest": "^4.0.16"