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

fqs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fqs - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

3

lib.js

@@ -5,3 +5,4 @@ const url = require('url');

const queryLines = function (parsedQuery) {
return parsedQuery ? Object.keys(parsedQuery).sort().map(k => `${k}=${parsedQuery[k]}`).join('\n') : '';
const queryElement = key => parsedQuery[key] ? `${key}=${parsedQuery[key]}` : key;
return parsedQuery ? Object.keys(parsedQuery).sort().map(queryElement).join('\n') : '';
};

@@ -8,0 +9,0 @@

{
"name": "fqs",
"version": "2.0.1",
"version": "2.0.2",
"description": "Pretty-print URLs",

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

@@ -12,3 +12,9 @@ const assert = require('assert');

const expectedNoEquals = [
'https://example.com/',
'#/foo'
].join('\n');
assert.equal(fqs('https://example.com/foo?d=3&c=2#b=1&a=0'), expected);
assert.equal(fqs('https://example.com/#/foo'), expectedNoEquals);
assert.equal(fqs(''), '');

Sorry, the diff of this file is not supported yet

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