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

@ladjs/api

Package Overview
Dependencies
Maintainers
3
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/api - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

12

index.js

@@ -109,15 +109,13 @@ const http = require('http');

// specify that this is our api (used by error handler)
app.context.api = true;
// override koa's undocumented error handler
app.context.onerror = errorHandler;
// specify that this is our api (used by error handler)
app.context.api = true;
// response time
app.use(responseTime());
// add the logger for development environment only
// TODO: there's a weird logger issue, see this GH issue
// <https://github.com/koajs/logger/issues/49>
if (process.env.NODE_ENV === 'development') app.use(koaLogger());
// request logger with custom logger
app.use(koaLogger({ logger }));

@@ -124,0 +122,0 @@ // rate limiting

{
"name": "@ladjs/api",
"description": "API server for Lad",
"version": "0.1.4",
"version": "0.1.5",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -25,3 +25,3 @@ "ava": {

"koa-404-handler": "^0.0.2",
"koa-better-error-handler": "^1.3.4",
"koa-better-error-handler": "^1.3.5",
"koa-better-timeout": "^0.0.2",

@@ -34,3 +34,3 @@ "koa-bodyparser": "^4.2.0",

"koa-json": "^2.0.2",
"koa-logger": "^3.1.0",
"koa-logger": "https://github.com/niftylettuce/logger",
"koa-no-trailing-slash": "^2.1.0",

@@ -37,0 +37,0 @@ "koa-response-time": "^2.0.0",

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