data-fair-app-utils
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -27,3 +27,3 @@ // A router to simulate reading/writing configurations from a data-fair server | ||
try { | ||
const content = fs.readFileSync(path.join(configDir, req.params.configId + '.json'), 'utf-8') | ||
const content = fs.readFileSync(path.join(configDir, 'test.json'), 'utf-8') | ||
res.status(200).send(JSON.parse(content)) | ||
@@ -37,4 +37,4 @@ } catch (err) { | ||
const content = JSON.stringify(req.body, null, 2) | ||
fs.writeFileSync(path.join(configDir, req.params.configId + '.json'), content) | ||
fs.writeFileSync(path.join(configDir, 'test.json'), content) | ||
res.status(200).send(req.body) | ||
}) |
{ | ||
"name": "data-fair-app-utils", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Some helper functions for common logic of data-fair applications.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3755