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
|
@@ -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
|
|
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
|
|
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.
|
|
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": "
|
|
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"
|