@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.
- package/dist/auth/action-token.js +1 -1
- package/dist/auth/action-token.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/database/typeorm-execution-view-store.d.ts +4 -1
- package/dist/database/typeorm-execution-view-store.js +46 -0
- package/dist/database/typeorm-execution-view-store.js.map +1 -1
- package/dist/execution/execution-query.service.d.ts +9 -1
- package/dist/execution/execution-query.service.js +14 -0
- package/dist/execution/execution-query.service.js.map +1 -1
- package/dist/execution/execution-view-store.d.ts +28 -0
- package/dist/execution/execution.types.d.ts +5 -3
- package/dist/execution/execution.types.js +5 -2
- package/dist/execution/execution.types.js.map +1 -1
- package/dist/execution/step-settled-handler.d.ts +4 -1
- package/dist/execution/step-settled-handler.js +29 -7
- package/dist/execution/step-settled-handler.js.map +1 -1
- package/dist/execution/step-store.d.ts +1 -0
- package/dist/execution/step-store.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/response-channel/execution-response-channel.d.ts +12 -0
- package/dist/response-channel/execution-response-channel.js +53 -0
- package/dist/response-channel/execution-response-channel.js.map +1 -0
- package/dist/response-channel/execution-response.schema.d.ts +71 -0
- package/dist/response-channel/execution-response.schema.js +22 -0
- package/dist/response-channel/execution-response.schema.js.map +1 -0
- package/dist/response-channel/execution-response.types.d.ts +6 -0
- package/dist/response-channel/execution-response.types.js +3 -0
- package/dist/response-channel/execution-response.types.js.map +1 -0
- package/dist/response-channel/in-memory-transport.d.ts +7 -0
- package/dist/response-channel/in-memory-transport.js +19 -0
- package/dist/response-channel/in-memory-transport.js.map +1 -0
- package/dist/response-channel/index.d.ts +6 -0
- package/dist/response-channel/index.js +12 -0
- package/dist/response-channel/index.js.map +1 -0
- package/dist/response-channel/response-transport.d.ts +7 -0
- package/dist/response-channel/response-transport.js +9 -0
- package/dist/response-channel/response-transport.js.map +1 -0
- package/dist/runtime/create-engine-runtime.d.ts +3 -1
- package/dist/runtime/create-engine-runtime.js +2 -2
- package/dist/runtime/create-engine-runtime.js.map +1 -1
- package/dist/serve.js +2 -0
- package/dist/serve.js.map +1 -1
- package/dist/server/api.types.d.ts +13 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/routes/workflow-executions.handlers.d.ts +1 -0
- package/dist/server/routes/workflow-executions.handlers.js +37 -0
- package/dist/server/routes/workflow-executions.handlers.js.map +1 -1
- package/dist/server/routes/workflow-executions.js +1 -0
- package/dist/server/routes/workflow-executions.js.map +1 -1
- 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 (
|
|
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,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,aAAa,CAAC;IAC5B,GAAG,E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