counterfact 0.45.0 → 0.45.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.
@@ -11,6 +11,7 @@ import createDebug from "debug";
11
11
  import open from "open";
12
12
 
13
13
  import { counterfact } from "../dist/app.js";
14
+ import { pathsToRoutes } from "../dist/migrate/paths-to-routes.js";
14
15
 
15
16
  const MIN_NODE_VERSION = 17;
16
17
 
@@ -170,6 +171,7 @@ async function main(source, destination) {
170
171
 
171
172
  // eslint-disable-next-line n/no-sync
172
173
  if (fs.existsSync(nodePath.join(config.basePath, "paths"))) {
174
+ await pathsToRoutes(config.basePath);
173
175
  await fs.promises.rmdir(nodePath.join(config.basePath, "paths"), {
174
176
  recursive: true,
175
177
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "counterfact",
3
- "version": "0.45.0",
3
+ "version": "0.45.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",
@@ -44,11 +44,11 @@
44
44
  "postinstall": "patch-package"
45
45
  },
46
46
  "devDependencies": {
47
- "@changesets/cli": "2.27.3",
47
+ "@changesets/cli": "2.27.5",
48
48
  "@stryker-mutator/core": "8.2.6",
49
49
  "@stryker-mutator/jest-runner": "8.2.6",
50
50
  "@stryker-mutator/typescript-checker": "8.2.6",
51
- "@swc/core": "1.5.7",
51
+ "@swc/core": "1.5.24",
52
52
  "@swc/jest": "0.2.36",
53
53
  "@testing-library/dom": "10.1.0",
54
54
  "@types/jest": "29.5.12",
@@ -72,7 +72,7 @@
72
72
  "husky": "9.0.11",
73
73
  "jest": "29.7.0",
74
74
  "node-mocks-http": "1.14.1",
75
- "nodemon": "3.1.1",
75
+ "nodemon": "3.1.2",
76
76
  "rimraf": "5.0.7",
77
77
  "stryker-cli": "1.0.2",
78
78
  "supertest": "7.0.0",
@@ -84,7 +84,7 @@
84
84
  "ast-types": "0.14.2",
85
85
  "chokidar": "3.6.0",
86
86
  "commander": "12.1.0",
87
- "debug": "4.3.4",
87
+ "debug": "4.3.5",
88
88
  "fetch": "1.1.0",
89
89
  "fs-extra": "11.2.0",
90
90
  "handlebars": "4.7.8",
@@ -101,8 +101,8 @@
101
101
  "open": "10.1.0",
102
102
  "patch-package": "8.0.0",
103
103
  "precinct": "12.1.1",
104
- "prettier": "3.2.5",
105
- "recast": "0.23.7",
104
+ "prettier": "3.3.0",
105
+ "recast": "0.23.9",
106
106
  "typescript": "5.4.5"
107
107
  }
108
108
  }