diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-05 00:14:08 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | 1a916f3a9271c9dca05e561deeebf417e3832e56 (patch) | |
tree | e8e4b8201e2b4cc6265d6dba03bf8b179bce74ed /cdn | |
parent | State update, havent tested (diff) | |
download | server-1a916f3a9271c9dca05e561deeebf417e3832e56.tar.xz |
Do all minor updates since last commit, make another script
Diffstat (limited to 'cdn')
-rw-r--r-- | cdn/package.json | 9 | ||||
-rw-r--r-- | cdn/src/util/FileStorage.ts | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/cdn/package.json b/cdn/package.json index f7438109..541f5ee2 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -25,17 +25,18 @@ "@types/dotenv": "^8.2.0", "@types/express": "^4.17.12", "@types/multer": "^1.4.7", - "@types/node": "^18.0.6" + "@types/node": "^18.6.3" }, "dependencies": { - "@aws-sdk/client-s3": "^3.36.1", + "@aws-sdk/client-s3": "^3.137.0", "@fosscord/util": "file:../util", + "@ovos-media/ts-transform-paths": "^1.7.18-1", "@types/node-fetch": "^2.6.2", "body-parser": "^1.19.0", "dotenv": "^16.0.1", - "exif-be-gone": "^1.2.0", + "exif-be-gone": "^1.3.0", "express": "^4.17.1", - "file-type": "^17.1.2", + "file-type": "^17.1.4", "image-size": "^1.0.0", "jest": "^28.1.3", "lambert-server": "^1.2.12", diff --git a/cdn/src/util/FileStorage.ts b/cdn/src/util/FileStorage.ts index ed007abb..aee9d345 100644 --- a/cdn/src/util/FileStorage.ts +++ b/cdn/src/util/FileStorage.ts @@ -1,9 +1,9 @@ import { Storage } from "./Storage"; import fs from "fs"; -//import fse from "fs-extra"; import { join, relative, dirname } from "path"; import { Readable } from "stream"; -import ExifTransformer = require("exif-be-gone"); +//import ExifTransformer = require("exif-be-gone"); +import ExifTransformer from "exif-be-gone"; // TODO: split stored files into separate folders named after cloned route |