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.2 to 0.2.3

2

lib/constants.js

@@ -0,1 +1,3 @@

"use strict";
module.exports =

@@ -2,0 +4,0 @@ {

@@ -0,1 +1,3 @@

"use strict";
var constants = require("./constants");

@@ -2,0 +4,0 @@

@@ -0,1 +1,3 @@

"use strict";
var constants = require("./constants");

@@ -2,0 +4,0 @@ var formatUrl = require("./format");

@@ -0,1 +1,3 @@

"use strict";
var objUtils = require("./util/object");

@@ -2,0 +4,0 @@

@@ -0,1 +1,3 @@

"use strict";
function parseHost(urlObj, options)

@@ -2,0 +4,0 @@ {

@@ -0,1 +1,3 @@

"use strict";
function hrefInfo(urlObj)

@@ -2,0 +4,0 @@ {

@@ -0,1 +1,3 @@

"use strict";
var hrefInfo = require("./hrefInfo");

@@ -2,0 +4,0 @@ var parseHost = require("./host");

@@ -0,1 +1,3 @@

"use strict";
function isDirectoryIndex(resource, options)

@@ -2,0 +4,0 @@ {

@@ -0,1 +1,3 @@

"use strict";
function parsePort(urlObj, options)

@@ -2,0 +4,0 @@ {

@@ -0,1 +1,3 @@

"use strict";
function parseQuery(urlObj, options)

@@ -2,0 +4,0 @@ {

3

lib/parse/urlstring.js

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

// For client-side support, can switch to https://github.com/kevincox/url.js
"use strict";
var _parseUrl = require("url").parse;

@@ -3,0 +4,0 @@

@@ -0,1 +1,3 @@

"use strict";
var findRelation = require("./findRelation");

@@ -2,0 +4,0 @@ var objUtils = require("../util/object");

@@ -0,1 +1,3 @@

"use strict";
function findRelation_upToPath(urlObj, siteUrlObj, options)

@@ -2,0 +4,0 @@ {

@@ -0,1 +1,3 @@

"use strict";
var absolutize = require("./absolutize");

@@ -2,0 +4,0 @@ var relativize = require("./relativize");

@@ -0,1 +1,3 @@

"use strict";
var pathUtils = require("../util/path");

@@ -2,0 +4,0 @@

@@ -0,1 +1,3 @@

"use strict";
var inspect = require("util").inspect;

@@ -2,0 +4,0 @@

@@ -0,1 +1,3 @@

"use strict";
/*

@@ -2,0 +4,0 @@ Deep-clone an object.

@@ -0,1 +1,3 @@

"use strict";
function joinPath(pathArray)

@@ -2,0 +4,0 @@ {

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

@@ -20,4 +20,6 @@ "author": {

"devDependencies": {
"chai": "~1.9",
"mocha": "~1.18"
"browserify": "^5.9",
"chai": "^1.9",
"mocha": "^1.21",
"uglify-js": "^2.4"
},

@@ -28,3 +30,4 @@ "engines": {

"scripts": {
"test": "node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"
"browserify": "browserify lib/ --standalone RelateUrl | uglifyjs --compress --mangle -o relateurl-browser.js",
"test": "mocha test/ --bail --reporter spec --check-leaks"
},

@@ -31,0 +34,0 @@ "keywords": [

@@ -122,2 +122,3 @@ # 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)

## Release History
* 0.2.3 added browserify npm-script
* 0.2.2 removed task runner

@@ -129,4 +130,4 @@ * 0.2.1 shorten resource- and query-relative URLs, test variations list with other site URLs

## Roadmap
* 0.2.3 shorten absolute URLs like `http://domain.com/?var` to `http://domain.com?var`, etc
* 0.2.4 decipher and return invalid input (special cases) to complete test suite
* 0.2.4 shorten absolute URLs like `http://domain.com/?var` to `http://domain.com?var`, etc
* 0.2.5 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

@@ -133,0 +134,0 @@

Sorry, the diff of this file is not supported yet

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