Comparing version 0.4.1 to 0.5.0
@@ -0,0 +0,0 @@ module.exports = { |
module.exports = { | ||
serve: require('./src/serve'), | ||
FSStorageClient: require('./src/FSStorageClient') | ||
FSStorageClient: require('./src/FSStorageClient'), | ||
listArchives: require('./src/listArchives') | ||
} |
@@ -0,0 +0,0 @@ const colors = require('colors') |
{ | ||
"name": "dar-server", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Filesystem backend for document archive", | ||
@@ -15,6 +15,8 @@ "main": "index.js", | ||
"express": "^4.16.2", | ||
"fs-extra": "^5.0.0", | ||
"glob": "^7.1.2", | ||
"parse-formdata": "^1.0.2", | ||
"yargs": "^11.0.0", | ||
"fs-extra": "^5.0.0" | ||
"substance": "^1.0.0-preview.53", | ||
"yargs": "^11.0.0" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # Dar Server |
@@ -0,0 +0,0 @@ const fs = require('fs-extra') |
@@ -0,0 +0,0 @@ const readArchive = require('./readArchive') |
@@ -0,0 +0,0 @@ const fs = require('fs') |
@@ -0,0 +0,0 @@ const fs = require('fs') |
@@ -7,2 +7,3 @@ const fs = require('fs') | ||
const cloneArchive = require('./cloneArchive') | ||
const listArchives = require('./listArchives') | ||
@@ -25,2 +26,14 @@ const DOT = '.'.charCodeAt(0) | ||
// listing avalable dars | ||
app.get(apiUrl+'/list', async (req, res) => { | ||
listArchives(rootDir) | ||
.then((records) => { | ||
res.status(200).json(records) | ||
}) | ||
.catch((err) => { | ||
console.error(err) | ||
res.status(500).send() | ||
}) | ||
}) | ||
/* | ||
@@ -27,0 +40,0 @@ Endpoint for reading a Dar archive |
@@ -0,0 +0,0 @@ const fs = require('fs') |
@@ -0,0 +0,0 @@ const fs = require('fs') |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19949
14
627
0
7
8
+ Addedglob@^7.1.2
+ Addedsubstance@^1.0.0-preview.53
+ Addedbalanced-match@1.0.2(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcss-what@2.1.0(transitive)
+ Addeddomelementtype@1.3.0(transitive)
+ Addedentities@1.1.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedlodash-es@4.17.14(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addednth-check@1.0.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedsubstance@1.0.3(transitive)