@tsed/platform-koa 6.114.14 → 6.114.17

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.
Files changed (2) hide show
  1. package/jest.config.js +14 -0
  2. package/package.json +21 -16
package/jest.config.js ADDED
@@ -0,0 +1,14 @@
1
+ // For a detailed explanation regarding each configuration property, visit:
2
+ // https://jestjs.io/docs/en/configuration.html
3
+
4
+ module.exports = {
5
+ ...require("@tsed/jest-config")(__dirname, "platform-koa"),
6
+ coverageThreshold: {
7
+ global: {
8
+ statements: 99.51,
9
+ branches: 85.45,
10
+ functions: 100,
11
+ lines: 99.5
12
+ }
13
+ }
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-koa",
3
- "version": "6.114.14",
3
+ "version": "6.114.17",
4
4
  "description": "Koa package for Ts.ED framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -18,7 +18,8 @@
18
18
  "build:cjs": "tsc --build tsconfig.compile.json",
19
19
  "build:esm": "tsc --build tsconfig.compile.esm.json",
20
20
  "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
21
- "start": "ts-node -r tsconfig-paths/register test/app/index.ts"
21
+ "start": "ts-node -r tsconfig-paths/register test/app/index.ts",
22
+ "test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --testTimeout 10000"
22
23
  },
23
24
  "keywords": [
24
25
  "Koa",
@@ -51,10 +52,10 @@
51
52
  "repository": "https://github.com/tsedio/tsed",
52
53
  "devDependencies": {
53
54
  "@koa/cors": "3.3.0",
54
- "@tsed/common": "6.114.14",
55
- "@tsed/core": "6.114.14",
56
- "@tsed/di": "6.114.14",
57
- "@tsed/platform-test-utils": "6.114.14",
55
+ "@tsed/common": "6.114.17",
56
+ "@tsed/core": "6.114.17",
57
+ "@tsed/di": "6.114.17",
58
+ "@tsed/platform-test-utils": "6.114.17",
58
59
  "@types/koa": "2.13.4",
59
60
  "@types/koa-bodyparser": "4.3.7",
60
61
  "@types/koa-compose": "3.2.5",
@@ -75,23 +76,24 @@
75
76
  "@koa/router": "^10.1.1",
76
77
  "encodeurl": "^1.0.2",
77
78
  "koa-send": "5.0.1",
78
- "multer": "^1.4.2",
79
- "tslib": "2.3.1"
79
+ "multer": "^1.4.5-lts.1",
80
+ "tslib": "2.4.0"
80
81
  },
81
82
  "peerDependencies": {
82
- "@tsed/common": "^6.114.14",
83
- "@tsed/core": "^6.114.14",
84
- "@tsed/di": "^6.114.14",
85
- "@tsed/json-mapper": "^6.114.14",
86
- "@tsed/logger": ">=6.1.1",
87
- "@tsed/openspec": "^6.114.14",
88
- "@tsed/schema": "^6.114.14",
83
+ "@tsed/common": "^6.114.17",
84
+ "@tsed/core": "^6.114.17",
85
+ "@tsed/di": "^6.114.17",
86
+ "@tsed/json-mapper": "^6.114.17",
87
+ "@tsed/logger": ">=6.1.4",
88
+ "@tsed/openspec": "^6.114.17",
89
+ "@tsed/schema": "^6.114.17",
89
90
  "koa": ">=2.13.0",
90
91
  "koa-bodyparser": ">=4.3.0",
91
92
  "koa-compress": ">=5.0.1",
92
93
  "koa-override": ">=3.0.0",
93
94
  "koa-qs": ">=3.0.0",
94
- "koa-session": ">=6.2.0"
95
+ "koa-session": ">=6.2.0",
96
+ "multer": "^1.4.5-lts.1"
95
97
  },
96
98
  "peerDependenciesMeta": {
97
99
  "@tsed/common": {
@@ -114,6 +116,9 @@
114
116
  },
115
117
  "@tsed/logger": {
116
118
  "optional": false
119
+ },
120
+ "multer": {
121
+ "optional": false
117
122
  }
118
123
  }
119
124
  }