Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rest-api-handler

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-api-handler - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

## [1.8.1] 2018-06-27
### Fixed
- Encoding of get parameters
## [1.8.0] 2018-05-31

@@ -7,0 +12,0 @@ ### Added

2

dist/Api.js

@@ -403,3 +403,3 @@ 'use strict';

var value = parameters[key];
return key + '=' + encodeURI(typeof value === 'number' ? value.toString() : value);
return key + '=' + encodeURIComponent(typeof value === 'number' ? value.toString() : value);
}).join('&');

@@ -406,0 +406,0 @@ }

@@ -425,3 +425,3 @@ /**

var value = parameters[key];
return key + '=' + encodeURI(typeof value === 'number' ? value.toString() : value);
return key + '=' + encodeURIComponent(typeof value === 'number' ? value.toString() : value);
}).join('&');

@@ -428,0 +428,0 @@ }

@@ -429,3 +429,3 @@ 'use strict';

var value = parameters[key];
return key + '=' + encodeURI(typeof value === 'number' ? value.toString() : value);
return key + '=' + encodeURIComponent(typeof value === 'number' ? value.toString() : value);
}).join('&');

@@ -432,0 +432,0 @@ }

{
"name": "rest-api-handler",
"version": "1.8.0",
"version": "1.8.1",
"description": "Handler for REST APIs",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

"cross-fetch": "^2.2.0",
"flow-bin": "0.73.0",
"flow-bin": "0.75.0",
"flow-coverage-report": "^0.5.0",

@@ -31,0 +31,0 @@ "flow-typed": "^2.4.0"

@@ -117,3 +117,3 @@ // @flow

const value = parameters[key];
return `${key}=${encodeURI(typeof value === 'number' ? value.toString() : value)}`;
return `${key}=${encodeURIComponent(typeof value === 'number' ? value.toString() : value)}`;
}).join('&')}`;

@@ -120,0 +120,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc