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 2.1.0 to 3.0.0

5

History.md
3.0.0 / 2017-11-03
==================
* update path-to-regexp to v2
2.1.0 / 2016-03-03

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

12

package.json

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

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

@@ -21,10 +21,10 @@ "test": "mocha test/test"

"devDependencies": {
"koa": "^2.0.0-alpha.3",
"mocha": "^2.4.5",
"supertest": "^1.2.0"
"koa": "^2.3.0",
"mocha": "^4.0.1",
"supertest": "^3.0.0"
},
"license": "MIT",
"dependencies": {
"debug": "*",
"path-to-regexp": "0.0.2"
"debug": "^3.1.0",
"path-to-regexp": "^2.1.0"
},

@@ -31,0 +31,0 @@ "engines": {

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

___Notice: `koa-rewrite@2` supports `koa@2`, if you want to use this module with `koa@1`, please use `koa-rewrite@1`.___
___Notice: `koa-rewrite@2+` supports `koa@2`, if you want to use this module with `koa@1`, please use `koa-rewrite@1`.___

@@ -36,3 +36,3 @@ ## Installation

```js
app.use(rewrite('/js/*', '/public/assets/js/$1'));
app.use(rewrite('/js/(.*)', '/public/assets/js/$1'));
```

@@ -52,2 +52,2 @@

MIT
MIT
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