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

@okta/configuration-validation

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@okta/configuration-validation - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

14

dist/lib.js

@@ -21,2 +21,4 @@ 'use strict';

var merge = require('lodash/merge');
var ConfigurationValidationError = function (_Error) {

@@ -48,11 +50,13 @@ _inherits(ConfigurationValidationError, _Error);

configUtil.buildConfigObject = function (config) {
return {
// See all supported options: https://github.com/okta/okta-auth-js#configuration-reference
// Support for parameters with an underscore will be deprecated in a future release
// camelCase was added 2/11/2019: https://github.com/okta/okta-oidc-js/commit/9b04ada6a01c9d9aca391abf0de3e5ecc9811e64
return merge({
clientId: config.clientId || config.client_id,
issuer: config.issuer,
redirectUri: config.redirectUri || config.redirect_uri,
tokenManager: {
storage: config.storage,
autoRenew: config.autoRenew || config.auto_renew
autoRenew: config.autoRenew || config.auto_renew,
storage: config.storage
}
};
}, config);
};

@@ -59,0 +63,0 @@

{
"name": "@okta/configuration-validation",
"version": "0.3.0",
"version": "0.4.0",
"description": "Configuration validation support for Okta JavaScript SDKs",

@@ -36,4 +36,8 @@ "main": "./dist/lib.js",

"babel-cli": "^6.26.0",
"babel-eslint": "^8.1.1",
"babel-preset-env": "^1.7.0",
"deep-extend": "^0.6.0",
"eslint": "^4.7.1",
"jest": "^23.6.0"
"jest": "^23.6.0",
"lodash": "^4.17.15"
},

@@ -40,0 +44,0 @@ "jest": {

@@ -13,2 +13,3 @@ /*!

const merge = require('lodash/merge');
class ConfigurationValidationError extends Error {}

@@ -32,11 +33,13 @@

configUtil.buildConfigObject = (config) => {
return {
// See all supported options: https://github.com/okta/okta-auth-js#configuration-reference
// Support for parameters with an underscore will be deprecated in a future release
// camelCase was added 2/11/2019: https://github.com/okta/okta-oidc-js/commit/9b04ada6a01c9d9aca391abf0de3e5ecc9811e64
return merge({
clientId: config.clientId || config.client_id,
issuer: config.issuer,
redirectUri: config.redirectUri || config.redirect_uri,
tokenManager: {
storage: config.storage,
autoRenew: config.autoRenew || config.auto_renew
autoRenew: config.autoRenew || config.auto_renew,
storage: config.storage
}
}
}, config);
}

@@ -43,0 +46,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