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

loopback-component-oauth2

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-component-oauth2 - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

6

CHANGES.md

@@ -0,1 +1,7 @@

2015-08-07, Version 2.3.5
=========================
* Allow scopes to be string[] (Raymond Feng)
2015-07-17, Version 2.3.4

@@ -2,0 +8,0 @@ =========================

4

lib/scope.js

@@ -24,3 +24,3 @@ var pathToRegexp = require('path-to-regexp');

var scopeMapping = {};
if (typeof scopes === 'object') {
if (typeof scopes === 'object' && !Array.isArray(scopes)) {
for (var s in scopes) {

@@ -52,3 +52,3 @@ var routes = [];

}
} else if (typeof scopes === 'string') {
} else if (typeof scopes === 'string' || Array.isArray(scopes)) {
scopes = helpers.normalizeList(scopes);

@@ -55,0 +55,0 @@ for (var i = 0, n = scopes.length; i < n; i++) {

{
"name": "loopback-component-oauth2",
"version": "2.3.4",
"version": "2.3.5",
"description": "OAuth 2.0 provider for LoopBack",

@@ -51,3 +51,3 @@ "keywords": [

"optionalDependencies": {
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.3.4"
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.3.5"
},

@@ -54,0 +54,0 @@ "engines": {

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