@middy/input-output-logger 3.1.1 → 3.2.0

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.
Files changed (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.js +2 -2
  3. package/package.json +5 -5
package/index.cjs CHANGED
@@ -20,7 +20,7 @@ const inputOutputLoggerMiddleware = (opts = {})=>{
20
20
  if (typeof logger !== 'function') {
21
21
  throw new Error('[input-output-logger-middleware]: logger must be a function');
22
22
  }
23
- const omitPathTree = buildPathOmitTree(omitPaths);
23
+ const omitPathTree = buildPathTree(omitPaths);
24
24
  const omitAndLog = (param, request)=>{
25
25
  const message = {
26
26
  [param]: request[param]
@@ -86,7 +86,7 @@ const pick = (originalObject = {}, keysToPick = [])=>{
86
86
  }
87
87
  return newObject;
88
88
  };
89
- const buildPathOmitTree = (paths)=>{
89
+ const buildPathTree = (paths)=>{
90
90
  const tree = {};
91
91
  for (let path of paths.sort().reverse()){
92
92
  if (!Array.isArray(path)) path = path.split('.');
package/index.js CHANGED
@@ -15,7 +15,7 @@ const inputOutputLoggerMiddleware = (opts = {})=>{
15
15
  if (typeof logger !== 'function') {
16
16
  throw new Error('[input-output-logger-middleware]: logger must be a function');
17
17
  }
18
- const omitPathTree = buildPathOmitTree(omitPaths);
18
+ const omitPathTree = buildPathTree(omitPaths);
19
19
  const omitAndLog = (param, request)=>{
20
20
  const message = {
21
21
  [param]: request[param]
@@ -81,7 +81,7 @@ const pick = (originalObject = {}, keysToPick = [])=>{
81
81
  }
82
82
  return newObject;
83
83
  };
84
- const buildPathOmitTree = (paths)=>{
84
+ const buildPathTree = (paths)=>{
85
85
  const tree = {};
86
86
  for (let path of paths.sort().reverse()){
87
87
  if (!Array.isArray(path)) path = path.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/input-output-logger",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Input and output logger middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -62,11 +62,11 @@
62
62
  },
63
63
  "homepage": "https://middy.js.org",
64
64
  "dependencies": {
65
- "@middy/util": "3.1.1"
65
+ "@middy/util": "3.2.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@middy/core": "3.1.1",
69
- "@types/node": "^17.0.0"
68
+ "@middy/core": "3.2.0",
69
+ "@types/node": "^18.0.0"
70
70
  },
71
- "gitHead": "d53fc91d035b01d3fd296cb6c7d0acd8305e9f76"
71
+ "gitHead": "ac46270daa388b52a81472ae8f9b8808a0136940"
72
72
  }