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.1 to 1.0.2

4

index.js
'use strict';
module.exports = function (str) {
if (typeof str !== 'string' && typeof str !== 'number') {
throw new TypeError('Expected a string or a number');
}
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {

@@ -8,0 +4,0 @@ return '%' + c.charCodeAt(0).toString(16);

2

package.json
{
"name": "strict-uri-encode",
"version": "1.0.1",
"version": "1.0.2",
"description": "A stricter URI encode adhering to RFC 3986",

@@ -5,0 +5,0 @@ "license": "MIT",

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