pull/12/head
tycrek 4 years ago
parent bdaaf852a7
commit 85ad031562
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -53,7 +53,7 @@ function startup() {
log(`Uploaded: ${req.file.originalname} (${req.file.mimetype})`);
// Save the file information
let resourceId = zws(resourceIdSize);
let resourceId = zws(resourceIdSize); //todo: use crypto-random-string for alternative resourceId
data[resourceId] = req.file;
saveData(data);

39
package-lock.json generated

@ -8,7 +8,6 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"crypto-random-string": "^4.0.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"fs-extra": "^9.1.0",
@ -169,20 +168,6 @@
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"node_modules/crypto-random-string": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz",
"integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==",
"dependencies": {
"type-fest": "^1.0.1"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
@ -669,17 +654,6 @@
"node": ">=0.6"
}
},
"node_modules/type-fest": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.0.1.tgz",
"integrity": "sha512-+UTPE7JT3O+sUpRroRgQAbbSfIRBwOHh+o/oruB1JJE6g6uBm3Y0D82fO3xu8VHfxJLQjeRp0PEY6mRmh/lElA==",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
@ -880,14 +854,6 @@
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"crypto-random-string": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz",
"integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==",
"requires": {
"type-fest": "^1.0.1"
}
},
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
@ -1274,11 +1240,6 @@
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
},
"type-fest": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.0.1.tgz",
"integrity": "sha512-+UTPE7JT3O+sUpRroRgQAbbSfIRBwOHh+o/oruB1JJE6g6uBm3Y0D82fO3xu8VHfxJLQjeRp0PEY6mRmh/lElA=="
},
"type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",

@ -22,7 +22,6 @@
},
"homepage": "https://github.com/tycrek/anssxustawai#readme",
"dependencies": {
"crypto-random-string": "^4.0.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"fs-extra": "^9.1.0",

Loading…
Cancel
Save