counterfact 0.20.0 → 0.20.1
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.
- package/.github/workflows/coveralls.yaml +1 -1
- package/CHANGELOG.md +6 -0
- package/package.json +9 -9
- package/src/server/start.js +3 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "counterfact",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "a library for building a fake REST API for testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/server/counterfact.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"counterfact": "ts-node --esm --transpileOnly ./bin/counterfact.js"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@changesets/cli": "2.26.
|
|
40
|
-
"@stryker-mutator/core": "6.
|
|
41
|
-
"@stryker-mutator/jest-runner": "6.
|
|
42
|
-
"@types/koa": "2.13.
|
|
39
|
+
"@changesets/cli": "2.26.1",
|
|
40
|
+
"@stryker-mutator/core": "6.4.2",
|
|
41
|
+
"@stryker-mutator/jest-runner": "6.4.2",
|
|
42
|
+
"@types/koa": "2.13.6",
|
|
43
43
|
"@types/koa-static": "^4.0.2",
|
|
44
|
-
"eslint": "8.
|
|
44
|
+
"eslint": "8.38.0",
|
|
45
45
|
"eslint-config-hardcore": "25.1.0",
|
|
46
46
|
"eslint-formatter-github-annotations": "0.1.0",
|
|
47
47
|
"eslint-import-resolver-typescript": "^3.2.5",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint-plugin-no-explicit-type-exports": "^0.12.1",
|
|
53
53
|
"husky": "8.0.3",
|
|
54
54
|
"jest": "28.1.2",
|
|
55
|
-
"nodemon": "2.0.
|
|
55
|
+
"nodemon": "2.0.22",
|
|
56
56
|
"stryker-cli": "1.0.2",
|
|
57
57
|
"supertest": "6.3.3"
|
|
58
58
|
},
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"koa-proxy": "^1.0.0-alpha.3",
|
|
74
74
|
"koa2-swagger-ui": "^5.6.0",
|
|
75
75
|
"node-fetch": "^3.2.10",
|
|
76
|
-
"open": "^
|
|
76
|
+
"open": "^9.0.0",
|
|
77
77
|
"prettier": "^2.7.1",
|
|
78
78
|
"ts-node": "^10.9.1",
|
|
79
|
-
"typescript": "^
|
|
79
|
+
"typescript": "^5.0.0"
|
|
80
80
|
}
|
|
81
81
|
}
|
package/src/server/start.js
CHANGED
|
@@ -106,14 +106,15 @@ export async function start({
|
|
|
106
106
|
})
|
|
107
107
|
);
|
|
108
108
|
|
|
109
|
-
app.use((ctx, next) => {
|
|
109
|
+
app.use(async (ctx, next) => {
|
|
110
110
|
if (ctx.URL.pathname === "/counterfact") {
|
|
111
111
|
ctx.redirect("/counterfact/");
|
|
112
112
|
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
next
|
|
116
|
+
// eslint-disable-next-line node/callback-return
|
|
117
|
+
await next();
|
|
117
118
|
});
|
|
118
119
|
|
|
119
120
|
app.use(
|