base-router
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -53,5 +53,7 @@ module.exports = App | ||
var app | ||
if (process.browser) { | ||
// On the client side | ||
var app = new App(document.body) | ||
app = new App(document.body) | ||
app.router.transitionTo('/posts/one') | ||
@@ -61,3 +63,3 @@ } else { | ||
var toHTML = require('vdom-to-html') | ||
var app = new App(false) | ||
app = new App(false) | ||
var middleware = app.router.serve(function (page, data) { | ||
@@ -64,0 +66,0 @@ app.render(page, data) |
@@ -91,3 +91,3 @@ module.exports = Router | ||
} | ||
var name = require('url').parse(request.url).pathname | ||
var name = require('pathname-match')(request.url) | ||
self.once('transition', function (route, data) { | ||
@@ -94,0 +94,0 @@ fn.call(ctx, route, data) |
{ | ||
"name": "base-router", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A simple and portable router for the client and server.", | ||
@@ -41,4 +41,5 @@ "main": "index.js", | ||
"inherits": "^2.0.1", | ||
"pathname-match": "^1.1.3", | ||
"routington": "^1.0.3" | ||
} | ||
} |
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
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
17831
367
1
4
+ Addedpathname-match@^1.1.3
+ Addedpathname-match@1.2.0(transitive)