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

base-router

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-router - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

example.js

@@ -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"
}
}
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