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

koa-rewrite

Package Overview
Dependencies
Maintainers
9
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-rewrite - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

History.md
3.0.1 / 2018-05-08
==================
* handle undefined (#18)
3.0.0 / 2017-11-03

@@ -3,0 +8,0 @@ ==================

4

index.js

@@ -37,4 +37,4 @@ 'use strict';

ctx.url = dst.replace(/\$(\d+)|(?::(\w+))/g, (_, n, name) => {
if (name) return m[map[name].index + 1];
return m[n];
if (name) return m[map[name].index + 1] || '';
return m[n] || '';
});

@@ -41,0 +41,0 @@

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

"repository": "koajs/rewrite",
"version": "3.0.0",
"version": "3.0.1",
"scripts": {

@@ -8,0 +8,0 @@ "test": "mocha test/test"

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