@tsed/platform-test-sdk 8.15.4 → 8.16.0-rc.2

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,9 +1,8 @@
1
1
  import { __decorate, __metadata, __param } from "tslib";
2
2
  import "@tsed/ajv";
3
3
  import { Controller } from "@tsed/di";
4
- import { PlatformContext } from "@tsed/platform-http";
5
4
  import { PlatformTest } from "@tsed/platform-http/testing";
6
- import { Context, QueryParams } from "@tsed/platform-params";
5
+ import { QueryParams } from "@tsed/platform-params";
7
6
  import { Default, GenericOf, Generics, Get, Maximum, Minimum, Property } from "@tsed/schema";
8
7
  import SuperTest from "supertest";
9
8
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
@@ -38,15 +37,12 @@ PaginationQuery = __decorate([
38
37
  Generics("T")
39
38
  ], PaginationQuery);
40
39
  let TestDeepQueryParamsCtrl = class TestDeepQueryParamsCtrl {
41
- testScenario1(q, qs) {
40
+ testScenario6(q, qs) {
42
41
  return { q };
43
42
  }
44
- testScenario2(q) {
43
+ testScenario7(q) {
45
44
  return { q };
46
45
  }
47
- testScenario3($ctx) {
48
- return $ctx.request.query;
49
- }
50
46
  };
51
47
  __decorate([
52
48
  Get("/scenario-1"),
@@ -56,7 +52,7 @@ __decorate([
56
52
  __metadata("design:type", Function),
57
53
  __metadata("design:paramtypes", [PaginationQuery, Object]),
58
54
  __metadata("design:returntype", void 0)
59
- ], TestDeepQueryParamsCtrl.prototype, "testScenario1", null);
55
+ ], TestDeepQueryParamsCtrl.prototype, "testScenario6", null);
60
56
  __decorate([
61
57
  Get("/scenario-2"),
62
58
  __param(0, QueryParams("q")),
@@ -64,14 +60,7 @@ __decorate([
64
60
  __metadata("design:type", Function),
65
61
  __metadata("design:paramtypes", [PaginationQuery]),
66
62
  __metadata("design:returntype", void 0)
67
- ], TestDeepQueryParamsCtrl.prototype, "testScenario2", null);
68
- __decorate([
69
- Get("/scenario-3"),
70
- __param(0, Context()),
71
- __metadata("design:type", Function),
72
- __metadata("design:paramtypes", [PlatformContext]),
73
- __metadata("design:returntype", Object)
74
- ], TestDeepQueryParamsCtrl.prototype, "testScenario3", null);
63
+ ], TestDeepQueryParamsCtrl.prototype, "testScenario7", null);
75
64
  TestDeepQueryParamsCtrl = __decorate([
76
65
  Controller("/deep-query-params")
77
66
  ], TestDeepQueryParamsCtrl);
@@ -145,18 +134,4 @@ export function testDeepQueryParams(options) {
145
134
  });
146
135
  });
147
136
  });
148
- describe("Scenario3", () => {
149
- it("should return the query params as object", async () => {
150
- const endpoint = "/rest/deep-query-params/scenario-3";
151
- const response = await request.get(`${endpoint}?offset=0&limit=10&where[a]=0&where[b]=1`).expect(200);
152
- expect(response.body).toEqual({
153
- offset: "0",
154
- limit: "10",
155
- where: {
156
- a: "0",
157
- b: "1"
158
- }
159
- });
160
- });
161
- });
162
137
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-test-sdk",
3
3
  "description": "Package to test platform adapter integration with Ts.ED",
4
4
  "type": "module",
5
- "version": "8.15.4",
5
+ "version": "8.16.0-rc.2",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -28,25 +28,25 @@
28
28
  "Adapter"
29
29
  ],
30
30
  "dependencies": {
31
- "@tsed/ajv": "8.15.4",
32
- "@tsed/core": "8.15.4",
33
- "@tsed/di": "8.15.4",
34
- "@tsed/json-mapper": "8.15.4",
35
- "@tsed/logger": "7.0.1",
36
- "@tsed/platform-cache": "8.15.4",
37
- "@tsed/platform-http": "8.15.4",
38
- "@tsed/platform-params": "8.15.4",
39
- "@tsed/platform-router": "8.15.4",
40
- "@tsed/platform-views": "8.15.4",
41
- "@tsed/schema": "8.15.4",
42
- "@tsed/swagger": "8.15.4",
31
+ "@tsed/ajv": "8.16.0-rc.2",
32
+ "@tsed/core": "8.16.0-rc.2",
33
+ "@tsed/di": "8.16.0-rc.2",
34
+ "@tsed/json-mapper": "8.16.0-rc.2",
35
+ "@tsed/logger": "8.0.0-rc.1",
36
+ "@tsed/platform-cache": "8.16.0-rc.2",
37
+ "@tsed/platform-http": "8.16.0-rc.2",
38
+ "@tsed/platform-params": "8.16.0-rc.2",
39
+ "@tsed/platform-router": "8.16.0-rc.2",
40
+ "@tsed/platform-views": "8.16.0-rc.2",
41
+ "@tsed/schema": "8.16.0-rc.2",
42
+ "@tsed/swagger": "8.16.0-rc.2",
43
43
  "ajv": "^8.17.1",
44
44
  "axios": "1.7.7",
45
45
  "read-pkg-up": "7.0.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@tsed/barrels": "8.15.4",
49
- "@tsed/typescript": "8.15.4",
48
+ "@tsed/barrels": "8.16.0-rc.2",
49
+ "@tsed/typescript": "8.16.0-rc.2",
50
50
  "eslint": "9.12.0",
51
51
  "typescript": "5.4.5"
52
52
  },
@@ -57,5 +57,8 @@
57
57
  },
58
58
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-test-sdk",
59
59
  "author": "Romain Lenzotti",
60
- "license": "MIT"
60
+ "license": "MIT",
61
+ "publishConfig": {
62
+ "tag": "rc"
63
+ }
61
64
  }