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

0http

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

0http - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

9

lib/utils/queryparams.js

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

const qs = require('querystring')
module.exports = (req, url) => {
const [pathRoute, search] = url.split('?')
req.path = pathRoute
const [path, search] = url.split('?')
req.path = path
switch (search) {

@@ -8,3 +10,3 @@ case undefined:

req.search = '?'
req.query = Object.create({})
req.query = {}
break

@@ -14,3 +16,2 @@ }

req.search = '?' + search
const qs = require('querystring')
req.query = qs.parse(search.replace(/\[\]=/g, '='))

@@ -17,0 +18,0 @@ }

{
"name": "0http",
"version": "2.5.1",
"version": "2.5.2",
"description": "Cero friction HTTP request router. The need for speed!",

@@ -5,0 +5,0 @@ "main": "index.js",

# 0http
[![NPM version](https://img.shields.io/npm/v/0http.svg?style=flat)](https://www.npmjs.com/package/0http)
Cero friction HTTP framework:

@@ -3,0 +5,0 @@ - Tweaked Node.js Server for high throughput.

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