@tsed/platform-test-sdk 7.80.1 → 7.80.3

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -8,7 +8,7 @@ const multer_1 = tslib_1.__importDefault(require("multer"));
8
8
  const path_1 = require("path");
9
9
  const read_pkg_up_1 = tslib_1.__importDefault(require("read-pkg-up"));
10
10
  const supertest_1 = tslib_1.__importDefault(require("supertest"));
11
- const rootDir = __dirname; // automatically replaced by import.meta.dirname on build
11
+ const rootDir = __dirname; // automatically replaced by __dirname on build
12
12
  class Task {
13
13
  id;
14
14
  title;
@@ -7,7 +7,7 @@ const schema_1 = require("@tsed/schema");
7
7
  const fs_1 = require("fs");
8
8
  const path_1 = require("path");
9
9
  const supertest_1 = tslib_1.__importDefault(require("supertest"));
10
- const rootDir = __dirname; // automatically replaced by import.meta.dirname on build
10
+ const rootDir = __dirname; // automatically replaced by __dirname on build
11
11
  let TestStreamCtrl = class TestStreamCtrl {
12
12
  testScenario1() {
13
13
  return (0, fs_1.createReadStream)((0, path_1.join)(rootDir, "../data/response.data.json"), "utf-8");
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -5,7 +5,7 @@ import multer from "multer";
5
5
  import { dirname, join } from "path";
6
6
  import readPkgUp from "read-pkg-up";
7
7
  import SuperTest from "supertest";
8
- const rootDir = __dirname; // automatically replaced by import.meta.dirname on build
8
+ const rootDir = import.meta.dirname; // automatically replaced by import.meta.dirname on build
9
9
  export class Task {
10
10
  id;
11
11
  title;
@@ -100,7 +100,7 @@ export function testMulter(options) {
100
100
  let request;
101
101
  const buffer = Buffer.from("test content");
102
102
  const pkg = readPkgUp.sync({
103
- cwd: __dirname
103
+ cwd: import.meta.dirname
104
104
  });
105
105
  const rootDir = join(dirname(pkg?.path || ""), "src");
106
106
  beforeAll(PlatformTest.bootstrap(options.server, {
@@ -4,7 +4,7 @@ import { ContentType } from "@tsed/schema";
4
4
  import { createReadStream } from "fs";
5
5
  import { join } from "path";
6
6
  import SuperTest from "supertest";
7
- const rootDir = __dirname; // automatically replaced by import.meta.dirname on build
7
+ const rootDir = import.meta.dirname; // automatically replaced by import.meta.dirname on build
8
8
  let TestStreamCtrl = class TestStreamCtrl {
9
9
  testScenario1() {
10
10
  return createReadStream(join(rootDir, "../data/response.data.json"), "utf-8");
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": "commonjs",
5
- "version": "7.80.1",
5
+ "version": "7.80.3",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -11,6 +11,7 @@
11
11
  ".": {
12
12
  "types": "./lib/types/index.d.ts",
13
13
  "import": "./lib/esm/index.js",
14
+ "require": "./lib/cjs/index.js",
14
15
  "default": "./lib/cjs/index.js"
15
16
  }
16
17
  },
@@ -27,27 +28,26 @@
27
28
  "Adapter"
28
29
  ],
29
30
  "dependencies": {
30
- "@tsed/ajv": "7.80.1",
31
- "@tsed/common": "7.80.1",
32
- "@tsed/core": "7.80.1",
33
- "@tsed/di": "7.80.1",
34
- "@tsed/json-mapper": "7.80.1",
31
+ "@tsed/ajv": "7.80.3",
32
+ "@tsed/common": "7.80.3",
33
+ "@tsed/core": "7.80.3",
34
+ "@tsed/di": "7.80.3",
35
+ "@tsed/json-mapper": "7.80.3",
35
36
  "@tsed/logger": "6.6.3",
36
- "@tsed/platform-cache": "7.80.1",
37
- "@tsed/platform-params": "7.80.1",
38
- "@tsed/platform-router": "7.80.1",
39
- "@tsed/platform-views": "7.80.1",
40
- "@tsed/schema": "7.80.1",
41
- "@tsed/swagger": "7.80.1",
37
+ "@tsed/platform-cache": "7.80.3",
38
+ "@tsed/platform-params": "7.80.3",
39
+ "@tsed/platform-router": "7.80.3",
40
+ "@tsed/platform-views": "7.80.3",
41
+ "@tsed/schema": "7.80.3",
42
+ "@tsed/swagger": "7.80.3",
42
43
  "ajv": "^8.12.0",
43
44
  "axios": "1.7.4",
44
45
  "read-pkg-up": "7.0.1"
45
46
  },
46
47
  "devDependencies": {
47
- "@tsed/barrels": "7.80.1",
48
- "@tsed/typescript": "7.80.1",
48
+ "@tsed/barrels": "7.80.3",
49
+ "@tsed/typescript": "7.80.3",
49
50
  "eslint": "^8.57.0",
50
- "jest": "^29.7.0",
51
51
  "typescript": "4.9.5"
52
52
  },
53
53
  "peerDependencies": {},