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

koa-static

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-static - npm Package Compare versions

Comparing version 1.4.7 to 1.4.8

History.md

9

index.js

@@ -6,2 +6,3 @@

var resolve = require('path').resolve;
var assert = require('assert');

@@ -33,3 +34,3 @@ var debug = require('debug')('koa-static');

debug('static "%s" %j', root, opts);
opts.root = root;
opts.root = resolve(root);
opts.index = opts.index || 'index.html';

@@ -40,3 +41,3 @@

if (this.idempotent && (yield send(this, this.path, opts))) return;
yield next;
yield* next;
};

@@ -46,3 +47,3 @@ }

return function *serve(next){
yield next;
yield* next;

@@ -54,2 +55,2 @@ // response is already handled

};
}
}

@@ -5,3 +5,3 @@ {

"repository": "koajs/static",
"version": "1.4.7",
"version": "1.4.8",
"keywords": [

@@ -8,0 +8,0 @@ "koa",

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