strict-uri-encode
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
module.exports = function (str) { | ||
if (typeof str !== 'string') { | ||
throw new TypeError('Expected a string'); | ||
if (typeof str !== 'string' && typeof str !== 'number') { | ||
throw new TypeError('Expected a string or a number'); | ||
} | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "strict-uri-encode", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A stricter URI encode adhering to RFC 3986", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -33,3 +33,3 @@ # strict-uri-encode [![Build Status](https://travis-ci.org/kevva/strict-uri-encode.svg?branch=master)](https://travis-ci.org/kevva/strict-uri-encode) | ||
*Required* | ||
Type: `string` | ||
Type: `string`, `number` | ||
@@ -36,0 +36,0 @@ String to URI encode. |
2633