@n8n/engine 0.19.1 → 0.21.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 (53) hide show
  1. package/dist/auth/action-token.js +1 -1
  2. package/dist/auth/action-token.js.map +1 -1
  3. package/dist/build.tsbuildinfo +1 -1
  4. package/dist/database/typeorm-execution-view-store.d.ts +4 -1
  5. package/dist/database/typeorm-execution-view-store.js +46 -0
  6. package/dist/database/typeorm-execution-view-store.js.map +1 -1
  7. package/dist/execution/execution-query.service.d.ts +9 -1
  8. package/dist/execution/execution-query.service.js +14 -0
  9. package/dist/execution/execution-query.service.js.map +1 -1
  10. package/dist/execution/execution-view-store.d.ts +28 -0
  11. package/dist/execution/execution.types.d.ts +5 -3
  12. package/dist/execution/execution.types.js +5 -2
  13. package/dist/execution/execution.types.js.map +1 -1
  14. package/dist/execution/step-settled-handler.d.ts +4 -1
  15. package/dist/execution/step-settled-handler.js +29 -7
  16. package/dist/execution/step-settled-handler.js.map +1 -1
  17. package/dist/execution/step-store.d.ts +1 -0
  18. package/dist/execution/step-store.js.map +1 -1
  19. package/dist/index.d.ts +4 -0
  20. package/dist/index.js +8 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/response-channel/execution-response-channel.d.ts +12 -0
  23. package/dist/response-channel/execution-response-channel.js +53 -0
  24. package/dist/response-channel/execution-response-channel.js.map +1 -0
  25. package/dist/response-channel/execution-response.schema.d.ts +71 -0
  26. package/dist/response-channel/execution-response.schema.js +22 -0
  27. package/dist/response-channel/execution-response.schema.js.map +1 -0
  28. package/dist/response-channel/execution-response.types.d.ts +6 -0
  29. package/dist/response-channel/execution-response.types.js +3 -0
  30. package/dist/response-channel/execution-response.types.js.map +1 -0
  31. package/dist/response-channel/in-memory-transport.d.ts +7 -0
  32. package/dist/response-channel/in-memory-transport.js +19 -0
  33. package/dist/response-channel/in-memory-transport.js.map +1 -0
  34. package/dist/response-channel/index.d.ts +6 -0
  35. package/dist/response-channel/index.js +12 -0
  36. package/dist/response-channel/index.js.map +1 -0
  37. package/dist/response-channel/response-transport.d.ts +7 -0
  38. package/dist/response-channel/response-transport.js +9 -0
  39. package/dist/response-channel/response-transport.js.map +1 -0
  40. package/dist/runtime/create-engine-runtime.d.ts +3 -1
  41. package/dist/runtime/create-engine-runtime.js +2 -2
  42. package/dist/runtime/create-engine-runtime.js.map +1 -1
  43. package/dist/serve.js +2 -0
  44. package/dist/serve.js.map +1 -1
  45. package/dist/server/api.types.d.ts +13 -0
  46. package/dist/server/index.d.ts +1 -0
  47. package/dist/server/index.js.map +1 -1
  48. package/dist/server/routes/workflow-executions.handlers.d.ts +1 -0
  49. package/dist/server/routes/workflow-executions.handlers.js +37 -0
  50. package/dist/server/routes/workflow-executions.handlers.js.map +1 -1
  51. package/dist/server/routes/workflow-executions.js +1 -0
  52. package/dist/server/routes/workflow-executions.js.map +1 -1
  53. package/package.json +10 -11
@@ -25,7 +25,7 @@ function mintActionToken(secret, scope) {
25
25
  }
26
26
  function verifyActionToken(secret, token, requiredScope) {
27
27
  const claims = (0, shared_secret_token_1.verifySharedSecretToken)(exports.ACTION_TOKEN, secret, token, actionClaimsSchema);
28
- if (!claims || claims.scope !== requiredScope)
28
+ if (claims?.scope !== requiredScope)
29
29
  throw new InvalidActionTokenError();
30
30
  }
31
31
  //# sourceMappingURL=action-token.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-token.js","sourceRoot":"","sources":["../../src/auth/action-token.ts"],"names":[],"mappings":";;;;;AAAA,6BAAwB;AAExB,+DAI+B;AAOlB,QAAA,aAAa,GAAG,CAAC,wBAAwB,EAAE,kBAAkB,CAAU,CAAC;AAUxE,QAAA,YAAY,GAA0B,MAAM,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,eAAe;IACvB,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,EAAE;IACd,qBAAqB,EAAE,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,OAAC,CAA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