New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-oauth1

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-oauth1 - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

13

index.js

@@ -292,3 +292,3 @@ /* jshint ignore:start */

/** Construct the value of the Authorization header for an HTTP request. */
getAuthorizationHeader: function getAuthorizationHeader(realm, parameters) {
getAuthorizationHeader: function getAuthorizationHeader(realm, parameters, disableParamsEncoding) {
var header = 'OAuth ',

@@ -298,3 +298,4 @@ headerParams = [];

if (realm && realm.trim()) {
headerParams.push(['realm', '"'+OAuth.percentEncode(realm)+'"'].join('='));
!disableParamsEncoding && (realm = OAuth.percentEncode(realm));
headerParams.push(`realm="${realm}"`);
}

@@ -315,6 +316,12 @@

if (!disableParamsEncoding) {
name = OAuth.percentEncode(name);
value = OAuth.percentEncode(value);
}
if (name.indexOf('oauth_') == 0) {
headerParams.push([OAuth.percentEncode(name), '"'+OAuth.percentEncode(value)+'"'].join('='));
headerParams.push(`${name}="${value}"`);
}
}
return header + headerParams.join(',');

@@ -321,0 +328,0 @@ }

{
"name": "node-oauth1",
"version": "1.2.2",
"version": "1.2.3",
"description": "A fork of Netflix's implementation of the OAuth1 protocol",

@@ -5,0 +5,0 @@ "main": "index.js",

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