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.
@@ -23,6 +23,6 @@ jobs:
23
23
  yarn test --forceExit
24
24
 
25
25
  - name: Coveralls
26
- uses: coverallsapp/github-action@1.1.3
26
+ uses: coverallsapp/github-action@v2.1.1
27
27
  with:
28
28
  github-token: ${{ secrets.GITHUB_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # counterfact
2
2
 
3
+ ## 0.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - bb8f5f4: fix an issue causing all endpoints to return 404
8
+
3
9
  ## 0.20.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "counterfact",
3
- "version": "0.20.0",
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.0",
40
- "@stryker-mutator/core": "6.3.1",
41
- "@stryker-mutator/jest-runner": "6.3.1",
42
- "@types/koa": "2.13.5",
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.32.0",
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.20",
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": "^8.4.0",
76
+ "open": "^9.0.0",
77
77
  "prettier": "^2.7.1",
78
78
  "ts-node": "^10.9.1",
79
- "typescript": "^4.8.2"
79
+ "typescript": "^5.0.0"
80
80
  }
81
81
  }
@@ -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(