@kravc/dos 1.4.8 → 1.4.10

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 (2) hide show
  1. package/package.json +3 -3
  2. package/src/Operation.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kravc/dos",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "Convention-based, easy-to-use library for building API-driven serverless services.",
5
5
  "keywords": [
6
6
  "Service",
@@ -25,10 +25,10 @@
25
25
  "author": "Alexander Kravets <a@kra.vc>",
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@kravc/schema": "^2.3.2",
28
+ "@kravc/schema": "^2.3.3",
29
29
  "cookie": "^0.4.1",
30
30
  "js-yaml": "^4.1.0",
31
- "jsonwebtoken": "^8.5.1",
31
+ "jsonwebtoken": "^9.0.0",
32
32
  "lodash.capitalize": "^4.2.1",
33
33
  "lodash.clonedeep": "^4.5.0",
34
34
  "lodash.compact": "^3.0.1",
package/src/Operation.js CHANGED
@@ -228,7 +228,7 @@ class Operation {
228
228
 
229
229
  if (this.after) {
230
230
  const _ = await this.after(parameters, result.data || result)
231
- result = _ ? ( result.data ? { data: _ } : _ ) : result
231
+ result = _ ? ( result.data ? { ...result, data: _ } : _ ) : result
232
232
  }
233
233
 
234
234
  return { result, headers: this._headers, multiValueHeaders: this._multiValueHeaders }