Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tm-authors-api

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-authors-api - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

3

config/default.json

@@ -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) => {

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