@tsed/platform-response-filter 8.34.0 → 8.35.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.
@@ -1,5 +1,5 @@
1
- import { injectable } from "@tsed/di";
2
1
  import { registerResponseFilter } from "../domain/ResponseFiltersContainer.js";
2
+ import { injectable } from "@tsed/di";
3
3
  /**
4
4
  * Register a response filter service.
5
5
  * @param contentTypes
@@ -1,5 +1,5 @@
1
- import { isBoolean, isNumber, isObject, isStream } from "@tsed/core";
2
1
  import { inject, injectable } from "@tsed/di";
2
+ import { isBoolean, isNumber, isObject, isStream } from "@tsed/core";
3
3
  import { ContentTypes } from "../constants/ContentTypes.js";
4
4
  import { PLATFORM_CONTENT_TYPES_CONTAINER } from "./PlatformContentTypesContainer.js";
5
5
  const isJsonData = (data) => {
@@ -1,6 +1,6 @@
1
+ import { ResponseFiltersContainer } from "../domain/ResponseFiltersContainer.js";
1
2
  import { constant, inject, injectable } from "@tsed/di";
2
3
  import { ContentTypes } from "../constants/ContentTypes.js";
3
- import { ResponseFiltersContainer } from "../domain/ResponseFiltersContainer.js";
4
4
  export const PLATFORM_CONTENT_TYPES_CONTAINER = injectable(Symbol.for("PLATFORM_CONTENT_TYPES_CONTAINER"))
5
5
  .factory(() => {
6
6
  const responseFilters = constant("responseFilters", []);
@@ -1,9 +1,9 @@
1
- import { isSerializable } from "@tsed/core";
2
1
  import { constant, inject, injectable } from "@tsed/di";
3
- import { serialize } from "@tsed/json-mapper";
4
- import { TemplateRenderError } from "../errors/TemplateRenderError.js";
5
- import { PLATFORM_CONTENT_TYPE_RESOLVER } from "./PlatformContentTypeResolver.js";
6
2
  import { PLATFORM_CONTENT_TYPES_CONTAINER } from "./PlatformContentTypesContainer.js";
3
+ import { PLATFORM_CONTENT_TYPE_RESOLVER } from "./PlatformContentTypeResolver.js";
4
+ import { TemplateRenderError } from "../errors/TemplateRenderError.js";
5
+ import { isSerializable } from "@tsed/core";
6
+ import { serialize } from "@tsed/json-mapper";
7
7
  /**
8
8
  * PlatformResponseFilter is responsible for transforming the response data
9
9
  * to the appropriate format based on the endpoint metadata and context.
@@ -1,5 +1,5 @@
1
- import { Type } from "@tsed/core";
2
1
  import { ResponseFilterMethods } from "../interfaces/ResponseFilterMethods.js";
2
+ import { Type } from "@tsed/core";
3
3
  /**
4
4
  * @ignore
5
5
  */
@@ -1,5 +1,5 @@
1
- import { Type } from "@tsed/core";
2
1
  import type { BaseContext } from "@tsed/di";
2
+ import { Type } from "@tsed/core";
3
3
  declare global {
4
4
  namespace TsED {
5
5
  interface Configuration {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tsed/platform-response-filter",
3
+ "version": "8.35.0",
3
4
  "description": "Platform response filter module for Ts.ED Framework",
4
- "type": "module",
5
- "version": "8.34.0",
6
5
  "source": "./src/index.ts",
6
+ "type": "module",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
9
9
  "typings": "./lib/types/index.d.ts",
@@ -26,14 +26,13 @@
26
26
  "tslib": ">=2.7.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsed/barrels": "8.34.0",
30
- "@tsed/core": "8.34.0",
31
- "@tsed/di": "8.34.0",
32
- "@tsed/exceptions": "8.34.0",
33
- "@tsed/json-mapper": "8.34.0",
34
- "@tsed/schema": "8.34.0",
35
- "@tsed/typescript": "8.34.0",
36
- "eslint": "9.12.0",
29
+ "@tsed/barrels": "8.35.0",
30
+ "@tsed/core": "8.35.0",
31
+ "@tsed/di": "8.35.0",
32
+ "@tsed/exceptions": "8.35.0",
33
+ "@tsed/json-mapper": "8.35.0",
34
+ "@tsed/schema": "8.35.0",
35
+ "@tsed/typescript": "8.35.0",
37
36
  "typescript": "6.0.2",
38
37
  "vitest": "4.1.4"
39
38
  },