@mybiogen/auth-openid
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -14,3 +14,8 @@ "use strict"; | ||
} | ||
return JSON.parse(value); | ||
try { | ||
return JSON.parse(value); | ||
} | ||
catch (e) { | ||
return value; | ||
} | ||
}, | ||
@@ -36,2 +41,2 @@ set: function (key, value, opts) { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29va2llU3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9Db29raWVTdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsYUFBYSxHQUFHO0lBQ3pCLEdBQUcsRUFBSCxVQUFJLEdBQVc7UUFDSCxJQUFBLE1BQU0sR0FBSyxRQUFRLE9BQWIsQ0FBYztRQUU1QixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7UUFDZixJQUFJLE1BQU0sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO1lBQ3JCLElBQU0sYUFBYSxHQUFHLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUN4QyxJQUFNLE9BQU8sR0FBRyxhQUFhLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ3pDLElBQU0sY0FBYyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsVUFBQyxhQUFhLElBQUssT0FBQSxhQUFhLENBQUMsSUFBSSxFQUFFLENBQUMsVUFBVSxDQUFJLEdBQUcsTUFBRyxDQUFDLEVBQTFDLENBQTBDLENBQUMsQ0FBQztZQUNuRyxLQUFLLEdBQUcsY0FBYyxDQUFDLENBQUMsQ0FBQyxjQUFjLGFBQWQsY0FBYyx1QkFBZCxjQUFjLENBQUUsS0FBSyxDQUFDLEdBQUcsRUFBRSxDQUFDLEVBQUUsSUFBSSxHQUFHLENBQUMsQ0FBQyxF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1xuICAgICAgICB9XG4gICAgfSxcbiAgICAvKiBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueSAqL1xuICAgIHNldChrZXk6IHN0cmluZywgdmFsdWU6IGFueSwgb3B0czogeyBleHBpcmVzPzogc3RyaW5nOyBwYXRoPzogc3RyaW5nOyBkb21haW4/OiBzdHJpbmc7IHNlY3VyZT86IHN0cmluZzsgfSA9IHt9KSB7XG4gICAgICAgIGxldCBzdHJpbmdpZmllZFZhbHVlID0gdHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJyA/IHZhbHVlIDogSlNPTi5zdHJpbmdpZnkodmFsdWUpO1xuXG4gICAgICAgIGxldCBzID0gYCR7ZW5jb2RlVVJJQ29tcG9uZW50KGtleSl9PSR7ZW5jb2RlVVJJQ29tcG9uZW50KHN0cmluZ2lmaWVkVmFsdWUpfWA7XG4gICAgICAgIGlmIChvcHRzLmV4cGlyZXMpIHMgKz0gYDtleHBpcmVzPSR7b3B0cy5leHBpcmVzfWA7XG4gICAgICAgIGlmIChvcHRzLnBhdGgpIHMgKz0gYDtwYXRoPSR7b3B0cy5wYXRofWA7XG4gICAgICAgIGlmIChvcHRzLmRvbWFpbikgcyArPSBgO2RvbWFpbj0ke29wdHMuZG9tYWlufWA7XG4gICAgICAgIGlmIChvcHRzLnNlY3VyZSkgcyArPSAnO3NlY3VyZSc7XG4gICAgICAgIGRvY3VtZW50LmNvb2tpZSA9IHM7XG4gICAgICAgIHJldHVybiBzO1xuICAgIH0sXG4gICAgcmVtb3ZlKGtleTogc3RyaW5nKSB7XG4gICAgICAgIGRvY3VtZW50LmNvb2tpZSA9IGtleSArJz07IFBhdGg9LzsgRXhwaXJlcz1UaHUsIDAxIEphbiAxOTcwIDAwOjAwOjAxIEdNVDsnXG4gICAgfSxcbn07XG4gICJdfQ== |
{ | ||
"name": "@mybiogen/auth-openid", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Authorization for OpenID", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "daf7a485e5e59021a18d889fc5042d1908e68aca" | ||
"gitHead": "615e1bb8a97adb87917afaa8cbefadc633724be1" | ||
} |
Sorry, the diff of this file is not supported yet
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
112658
989