tm-authors-api
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -8,5 +8,6 @@ { | ||
"region": "eu-west-1", | ||
"tableName": "AuthorsStateStore-vulcan" | ||
"tableName": "AuthorsStateStore-test", | ||
"endpoint": "http://localhost:8000" | ||
}, | ||
"logging": true | ||
} |
@@ -13,8 +13,2 @@ { | ||
"memory": 1700, | ||
"environment": [ | ||
{ | ||
"name": "NODE_ENV", | ||
"value": "vulcan" | ||
} | ||
], | ||
"portMappings": [ | ||
@@ -21,0 +15,0 @@ { |
{ | ||
"name": "tm-authors-api", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "", | ||
@@ -20,2 +20,3 @@ "main": "index.js", | ||
"config": "^1.21.0", | ||
"highland": "^2.10.0", | ||
"ramda": "^0.22.1", | ||
@@ -22,0 +23,0 @@ "restify": "^4.1.1" |
@@ -38,3 +38,3 @@ "use strict"; | ||
return { | ||
Id: Number(split[1]), | ||
"Id": Number(split[1]), | ||
"Source": `${split[0]}-author` | ||
@@ -41,0 +41,0 @@ } |
@@ -24,3 +24,3 @@ "use strict"; | ||
server.get("/author/:source/:journoId", controller.getByAuthorId(db)); | ||
server.get("/:source/:journoId", controller.getByAuthorId(db)); | ||
server.post("/", controller.getFromArrayOfAuthors(db)); | ||
@@ -27,0 +27,0 @@ |
@@ -92,12 +92,8 @@ "use strict"; | ||
})) | ||
.toCallback((err, res) => { | ||
console.log(err, res); | ||
done(); | ||
}); | ||
.toCallback(done); | ||
}); | ||
it("gets by author id", (done) => { | ||
server | ||
.get("/author/nationals/123") | ||
.get("/nationals/123") | ||
.end((err, res) => { | ||
@@ -111,3 +107,3 @@ assert.deepEqual(res.body, testAuthor); | ||
server | ||
.get("/author/nationals/1") | ||
.get("/nationals/1") | ||
.expect(404) | ||
@@ -114,0 +110,0 @@ .end((err, res) => { |
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
9248
5
280
+ Addedhighland@^2.10.0
+ Addedhighland@2.13.5(transitive)