koa-rewrite
Advanced tools
Comparing version 2.1.0 to 3.0.0
3.0.0 / 2017-11-03 | ||
================== | ||
* update path-to-regexp to v2 | ||
2.1.0 / 2016-03-03 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3095
0
51
0
+ Addeddebug@3.2.7(transitive)
+ Addedpath-to-regexp@2.4.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removedpath-to-regexp@0.0.2(transitive)
Updateddebug@^3.1.0
Updatedpath-to-regexp@^2.1.0