Socket
Socket
Sign inDemoInstall

relateurl

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.6 to 0.2.7

license

5

lib/parse/query.js
"use strict";
var hasOwnProperty = Object.prototype.hasOwnProperty;
function parseQuery(urlObj, options)

@@ -23,3 +26,3 @@ {

{
if ( i!=="" && queryObj.hasOwnProperty(i) )
if ( i!=="" && hasOwnProperty.call(queryObj, i)===true )
{

@@ -26,0 +29,0 @@ var value = queryObj[i];

4

lib/util/path.js

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

{
if (pathArray.length)
if (pathArray.length > 0)
{

@@ -34,3 +34,3 @@ return pathArray.join("/") + "/";

// Remove parent
if (pathAbsolute.length)
if (pathAbsolute.length > 0)
{

@@ -37,0 +37,0 @@ pathAbsolute.splice(pathAbsolute.length-1, 1);

{
"name": "relateurl",
"description": "Minify URLs by converting them from absolute to relative.",
"version": "0.2.6",
"version": "0.2.7",
"license": "MIT",
"homepage": "https://github.com/stevenvachon/relateurl",

@@ -19,13 +20,7 @@ "author": {

},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/stevenvachon/relateurl/blob/master/LICENSE"
}
],
"devDependencies": {
"browserify": "^7.0.1",
"chai": "^1.10",
"mocha": "^2.0.1",
"uglify-js": "^2.4.16"
"browserify": "^13.0.1",
"chai": "^3.5.0",
"mocha": "^2.5.3",
"uglify-js": "^2.7.0"
},

@@ -40,3 +35,4 @@ "engines": {

"files": [
"lib"
"lib",
"license"
],

@@ -43,0 +39,0 @@ "keywords": [

@@ -1,2 +0,2 @@

# relateurl [![NPM Version](http://badge.fury.io/js/relateurl.svg)](http://badge.fury.io/js/relateurl) [![Build Status](https://secure.travis-ci.org/stevenvachon/relateurl.svg)](http://travis-ci.org/stevenvachon/relateurl)
# relateurl [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][david-image]][david-url]

@@ -20,3 +20,3 @@ > Minify URLs by converting them from absolute to relative.

This utility requires [Node.js](http://nodejs.org/) `~0.10`. To install, type this at the command line:
This utility requires [Node.js](http://nodejs.org/) `>= 0.10`. To install, type this at the command line:
```

@@ -135,3 +135,5 @@ npm install relateurl --save-dev

## Release History
* 0.2.7 Node v6 support
* 0.2.6 minor enhancements

@@ -146,9 +148,15 @@ * 0.2.5 added `options.removeRootTrailingSlash`

## Roadmap
* 0.2.7 possible [scheme exclusions](http://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml) such as `tel:`
* 0.2.7 decipher and return invalid input (special cases) to complete test suite
* 0.2.8 check if queries are the same, regardless of param order
* 0.2.8 possible [scheme exclusions](http://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml) such as `tel:`
* 0.2.8 decipher and return invalid input (special cases) to complete test suite
* 0.3.0 test `options.slashesDenoteHost=false`, add something like `options.externalDirectoryIndexes=[]` for external sites
---
[![Analytics](https://ga-beacon.appspot.com/UA-3614308-13/stevenvachon/relateurl)](https://github.com/igrigorik/ga-beacon "Google Analytics")
[npm-image]: https://img.shields.io/npm/v/relateurl.svg
[npm-url]: https://npmjs.org/package/relateurl
[travis-image]: https://img.shields.io/travis/stevenvachon/relateurl.svg
[travis-url]: https://travis-ci.org/stevenvachon/relateurl
[david-image]: https://img.shields.io/david/stevenvachon/relateurl.svg
[david-url]: https://david-dm.org/stevenvachon/relateurl
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