@kravc/dos 1.11.16 → 1.11.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kravc/dos",
3
- "version": "1.11.16",
3
+ "version": "1.11.17",
4
4
  "description": "Convention-based, easy-to-use library for building API-driven serverless services.",
5
5
  "keywords": [
6
6
  "Service",
package/src/index.d.ts CHANGED
@@ -334,3 +334,5 @@ interface Identity {
334
334
  }
335
335
 
336
336
  export declare function authorize(Operation, Context): Promise<Identity>;
337
+
338
+ export declare function maskSecrets(object: Record<string, unknown>): Record<string, unknown>;
package/src/index.js CHANGED
@@ -15,6 +15,7 @@ module.exports = {
15
15
  handler: require('./helpers/handler'),
16
16
  getOrFail: require('./helpers/getOrFail'),
17
17
  authorize: require('./helpers/authorize'),
18
+ maskSecrets: require('./helpers/maskSecrets'),
18
19
  security: require('./security'),
19
20
  verifyToken: require('./security/verifyToken'),
20
21
  JwtAuthorization: require('./security/JwtAuthorization'),