protocolify
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,3 +8,3 @@ 'use strict'; | ||
if (typeof url !== 'string') { | ||
throw new TypeError('Expected a string'); | ||
throw new TypeError('Expected a string, got ' + typeof url); | ||
} | ||
@@ -11,0 +11,0 @@ |
{ | ||
"name": "protocolify", | ||
"version": "1.0.2", | ||
"description": "Prepend http:// to humanized URLs like todomvc.com and file:// to file paths", | ||
"version": "1.0.3", | ||
"description": "Prepend `http://` to humanized URLs like `todomvc.com` and `file://` to file paths", | ||
"license": "MIT", | ||
@@ -16,3 +16,3 @@ "repository": "sindresorhus/protocolify", | ||
"scripts": { | ||
"test": "node test.js" | ||
"test": "xo && ava" | ||
}, | ||
@@ -35,7 +35,8 @@ "files": [ | ||
"path-exists": "^2.0.0", | ||
"prepend-http": "^1.0.0" | ||
"prepend-http": "^1.0.4" | ||
}, | ||
"devDependencies": { | ||
"ava": "*" | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
@@ -37,2 +37,2 @@ # protocolify [![Build Status](https://travis-ci.org/sindresorhus/protocolify.svg?branch=master)](https://travis-ci.org/sindresorhus/protocolify) | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
3026
2
Updatedprepend-http@^1.0.4