loopback-component-oauth2
Advanced tools
Comparing version 2.3.4 to 2.3.5
@@ -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 @@ ========================= |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
461116