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

urlgrey

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urlgrey - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

urlgrey.png

1

lib/index.js

@@ -114,2 +114,3 @@ var nodeUrl = require('url');

if (suffix){
suffix = encodeURIComponent(suffix);
return this.path(this.path(), suffix);

@@ -116,0 +117,0 @@ } else {

2

package.json

@@ -5,3 +5,3 @@ {

"keywords" : ["url", "uri"],
"version": "0.0.2",
"version": "0.0.3",
"bugs": {

@@ -8,0 +8,0 @@ "url": "https://github.com/cainus/urlgrey/issues"

@@ -122,4 +122,4 @@ var should = require('should');

var url = "http://asdf.com/path?asdf=1234#frag";
urlgrey(url).child('kid')
.toString().should.equal('http://asdf.com/path/kid?asdf=1234#frag');
urlgrey(url).child('kid here')
.toString().should.equal('http://asdf.com/path/kid%20here?asdf=1234#frag');
});

@@ -126,0 +126,0 @@ it("returns the last item in the path if there is no input", function(){

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