You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fast-querystring

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-querystring - npm Package Compare versions

Comparing version

to
0.2.2

11

lib/parse.js

@@ -27,3 +27,3 @@ "use strict";

// Handle '&' and end of line to pass the current values to result
if (c === 38 || c === 35 || isNaN(c)) {
if (c === 38 || isNaN(c)) {
// Disallow empty key values.

@@ -74,8 +74,7 @@ if (equalityIndex - separatorIndex > 0 && i - equalityIndex + 1 > 0) {

hasPlus = true;
} else {
// Check '%' character for encoding
if (c === 37) {
shouldEncode = true;
}
}
// Check '%' character for encoding
else if (c === 37) {
shouldEncode = true;
}
}

@@ -82,0 +81,0 @@

{
"name": "fast-querystring",
"version": "0.2.1",
"version": "0.2.2",
"description": "",

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

@@ -46,11 +46,10 @@ # fast-querystring

╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ qs │ 10000 │ 690970.02 op/sec │ ± 2.62 % │ ║
║ query-string │ 10000 │ 728597.61 op/sec │ ± 3.27 % │ + 5.45 % ║
║ URLStateMachine │ 10000 │ 782804.78 op/sec │ ± 2.19 % │ + 7.44 % ║
║ node:querystring │ 10000 │ 3225895.94 op/sec │ ± 7.42 % │ + 312.09 % ║
║ qs │ 10000 │ 693377.51 op/sec │ ± 3.05 % │ ║
║ query-string │ 10000 │ 719847.15 op/sec │ ± 3.01 % │ + 3.82 % ║
║ node:querystring │ 10000 │ 3197501.34 op/sec │ ± 1.16 % │ + 344.19 % ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ Fastest test │ Samples │ Result │ Tolerance │ Difference with previous ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ fast-querystring │ 10000 │ 3499113.15 op/sec │ ± 4.37 % │ + 8.47 % ║
║ fast-querystring │ 10000 │ 3500432.30 op/sec │ ± 5.57 % │ + 9.47 % ║
╚══════════════════╧═════════╧═══════════════════╧═══════════╧══════════════════════════╝
```
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.