@tsed/directus-sdk 8.38.5 → 8.38.7

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.
@@ -3,6 +3,7 @@ import { EnvsConfigSource } from "@tsed/config/envs";
3
3
  import { configuration } from "@tsed/di";
4
4
  import { withOptions } from "@tsed/config";
5
5
  configuration().set({
6
+ lazyProviders: true,
6
7
  extends: [
7
8
  withOptions(EnvsConfigSource, {
8
9
  name: "envs"
@@ -29,7 +29,7 @@ import { nanoid } from "nanoid";
29
29
  * - Errors are caught and logged with structured information
30
30
  * - Error details include name, message, description, and stack trace
31
31
  * - Logger is automatically flushed after error logging
32
- * - The error is not re-thrown, allowing the flow to continue
32
+ * - The error is re-thrown after logging so Directus records the flow execution as failed
33
33
  *
34
34
  * @see {@link defineOperationApi} for the recommended way to create operations
35
35
  * @see {@link DirectusContextService} to access Directus context in injected services
@@ -54,6 +54,7 @@ export function wrapOperation(callback) {
54
54
  error_description: error.description,
55
55
  error_stack: error.stack
56
56
  });
57
+ throw error;
57
58
  }
58
59
  finally {
59
60
  $ctx.logger.flush();
@@ -27,7 +27,7 @@ import type { OperationContext } from "@directus/types";
27
27
  * - Errors are caught and logged with structured information
28
28
  * - Error details include name, message, description, and stack trace
29
29
  * - Logger is automatically flushed after error logging
30
- * - The error is not re-thrown, allowing the flow to continue
30
+ * - The error is re-thrown after logging so Directus records the flow execution as failed
31
31
  *
32
32
  * @see {@link defineOperationApi} for the recommended way to create operations
33
33
  * @see {@link DirectusContextService} to access Directus context in injected services
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/directus-sdk",
3
- "version": "8.38.5",
3
+ "version": "8.38.7",
4
4
  "description": "A library to integrate Directus SDK with Ts.ED, facilitating the creation of extensions (endpoints, hooks, operations) and the use of Directus services.",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
@@ -43,10 +43,10 @@
43
43
  "@directus/extensions-sdk": "^18.0.1",
44
44
  "@directus/sdk": "^23.0.0",
45
45
  "@directus/types": "^16.0.0",
46
- "@tsed/barrels": "8.38.5",
47
- "@tsed/config": "8.38.5",
48
- "@tsed/core": "8.38.5",
49
- "@tsed/di": "8.38.5",
46
+ "@tsed/barrels": "8.38.7",
47
+ "@tsed/config": "8.38.7",
48
+ "@tsed/core": "8.38.7",
49
+ "@tsed/di": "8.38.7",
50
50
  "@tsed/logger": "^8.0.0",
51
51
  "@tsed/logger-connect": "8.0.4",
52
52
  "@types/express": "4.17.21",