Socket
Socket
Sign inDemoInstall

dar-server

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dar-server - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc