add account settings page, rest of otp support, stdio credential helper, other misc
[squeep-authentication-module] / lib / common.js
index 1a117e9a71d7ff877abd15c7b9fd467315cd0818..1c19aeb9dbde3172858ee3dcea9a00ceb1a8004e 100644 (file)
@@ -11,7 +11,7 @@ const { common } = require('@squeep/api-dingus');
 const freezeDeep = (o) => {
   Object.freeze(o);
   Object.getOwnPropertyNames(o).forEach((prop) => {
-    if (Object.hasOwnProperty.call(o, prop)
+    if (Object.hasOwn(o, prop)
     &&  ['object', 'function'].includes(typeof o[prop]) // eslint-disable-line security/detect-object-injection
     &&  !Object.isFrozen(o[prop])) { // eslint-disable-line security/detect-object-injection
       return freezeDeep(o[prop]); // eslint-disable-line security/detect-object-injection