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

citizen

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

citizen - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

5

CHANGELOG.txt

@@ -0,1 +1,6 @@

[0.8.6]
* Added request context to console output in the event of an error to assist with debugging
* Relaxed requirements on the route descriptor to allow dot (.) and tilde (~) characters
* Added event handler for connections closed by the client
[0.8.5]

@@ -2,0 +7,0 @@ * Added custom header check (x-citizen-uri) to provide the original requested URL to citizen when behind a proxy (nginx, apache, etc.), which fixes issues with ctzn_referer and secure cookies

3

lib/router.js

@@ -69,4 +69,3 @@ // router

route.renderedView = route.controller;
route.descriptor = pathToParse.replace(/^\/[A-Za-z0-9-_]+\/([A-Za-z0-9-_]+)\/?.*/, '$1').replace(/\//g, '');
route.descriptor = pathToParse.replace(/^\/[A-Za-z0-9-_]+\/([A-Za-z0-9-_.~]+)\/?.*/, '$1').replace(/\//g, '');
}

@@ -73,0 +72,0 @@

{
"name": "citizen",
"version": "0.8.5",
"version": "0.8.6",
"description": "A server-side MVC framework for Node.js web applications. Includes serving, caching, and other helpful methods.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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