Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "dar-server", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Filesystem backend for document archive", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -98,6 +98,9 @@ const fs = require('fs') | ||
// with git we would use the commit sha of the latest commit | ||
let newVersion = String(Number.parseInt(version, 10) + 1) | ||
// TODO: without git this is kind of dangerous as we can't rollback | ||
await writeArchive(archiveDir, archive) | ||
await writeVersion(archiveDir, newVersion) | ||
// TODO: we could do something like this | ||
// let newVersion = String(Number.parseInt(version, 10) + 1) | ||
// await writeVersion(archiveDir, newVersion) | ||
// ... but instead we just return the same version all the time | ||
let newVersion = version | ||
res.status(200).json({ version: newVersion }) | ||
@@ -104,0 +107,0 @@ } catch (err) { // eslint-disable-line no-catch-shadow |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
489
500597