@sdflc/backend-helpers 1.0.67 → 1.0.69

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/build/BaseCore.js CHANGED
@@ -191,7 +191,7 @@ class BaseCore {
191
191
  return result;
192
192
  }
193
193
  }
194
- else if (requireSpace != null && requireSpace !== false) {
194
+ else if (requireSpace == null || requireSpace === true) {
195
195
  this.measureTool.addCheckpoint('Find space: start');
196
196
  const [spaceResult, errMsg] = yield this.findSpace();
197
197
  this.measureTool.addCheckpoint('Find space: end');
@@ -227,7 +227,7 @@ class BaseCore {
227
227
  }
228
228
  let time = this.measureTool.stop();
229
229
  this.logger.debug(`Authorization and validation time for the ${doingWhat} took ${time.durationMs} ms`);
230
- const result = yield action(args, Object.assign(Object.assign({}, actionOpt), { validatedItems }));
230
+ const result = yield action(args, Object.assign(Object.assign({}, actionOpt), { validatedItems, args }));
231
231
  yield this.checkResult({ hasTransaction, result, sameRequest, doingWhat });
232
232
  time = this.measureTool.stop(doingWhat);
233
233
  this.logger.debug(`The ${time.name} process time is ${time.durationMs} ms`);
@@ -31,4 +31,8 @@ export interface BaseCoreActionsInterface {
31
31
  * Name of action for exception error messages
32
32
  */
33
33
  doingWhat?: string;
34
+ /**
35
+ * Object with incoming request params
36
+ */
37
+ args?: any;
34
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "Set of helper functions and classes to simplify building backend apps within @sdflc ecosystem",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",