Socket
Socket
Sign inDemoInstall

url-assembler

Package Overview
Dependencies
2
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.5 to 1.2.6

yarn.lock

4

lib/url-assembler-factory.js

@@ -35,2 +35,6 @@ var extend = require('extend');

}
if(self.search && self.search.length > 1) {
var parsedQuery = qs.parse(self.search.substr(1))
self._query(parsedQuery)
}
}

@@ -37,0 +41,0 @@

2

package.json
{
"name": "url-assembler",
"version": "1.2.5",
"version": "1.2.6",
"description": "Assemble urls from route-like templates (/path/:param)",

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

@@ -56,2 +56,13 @@ var expect = require('chai').expect

describe('when baseUrl has a query param', function () {
beforeEach(function () {
myUrl = UrlAssembler('http://domain.com/coucou?hello=world');
});
it('should keep the query param', () => {
expect(myUrl.query('a', 'b').toString()).to.equal('http://domain.com/coucou?hello=world&a=b')
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc