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

koa-mount-html

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-mount-html - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.tern-port

7

CHANGELOG.md

@@ -0,1 +1,8 @@

0.1.1 / 2015-12-23
==================
* Version bump for README change
* Removing badges from README
* Update changelog
0.1.0 / 2015-12-23

@@ -2,0 +9,0 @@ ==================

5

index.js

@@ -40,6 +40,5 @@ const debug = require('debug')('koa-mount-html');

debug(`mounting for url "${this.url}"`);
debug('mounting for url "%s"', this.url);
if (opts.defer) {
console.info('###### Running deferred downstream');
yield* downstream.call(this, noop());

@@ -55,3 +54,3 @@ }

else {
debug(`not mounting request for a path containing a '.' "${parsedUrl.pathname}"`);
debug('not mounting request for a path containing a \'.\' "%s"', parsedUrl.pathname);
}

@@ -58,0 +57,0 @@

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

"author": "Jonathan Felchlin <jonathan@xgecko.com>",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {
"test": "mocha ./test",
"test": "mocha --harmony ./test",
"watch:test": "mocha ./test --watch",

@@ -15,2 +15,3 @@ "generate_changelog": "changelog all > CHANGELOG.md",

"dependencies": {
"debug": "^2.2.0",
"koa-compose": "^2.3.0"

@@ -17,0 +18,0 @@ },

# koa-mount-html
[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
Catch-all mounting of koa apps and middleware for HTML GET requests.

@@ -51,1 +57,14 @@

- `includeDotPaths` If true, then paths including a dot (i.e. '/staticPage.html') will be cought as well.
[npm-image]: https://img.shields.io/npm/v/koa-static.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/koa-mount-html
[github-tag]: http://img.shields.io/github/tag/GreenGremlin/koa-mount-html.svg?style=flat-square
[github-url]: https://github.com/GreenGremlin/koa-mount-html
[travis-image]: https://img.shields.io/travis/GreenGremlin/koa-mount-html.svg?style=flat-square
[travis-url]: https://travis-ci.org/GreenGremlin/koa-mount-html
[david-image]: http://img.shields.io/david/GreenGremlin/koa-mount-html.svg?style=flat-square
[david-url]: https://david-dm.org/GreenGremlin/koa-mount-html
[license-image]: http://img.shields.io/npm/l/koa-mount-html.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/koa-mount-html.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/koa-mount-html
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