Socket
Socket
Sign inDemoInstall

strict-uri-encode

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

index.js
'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.

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