counterfact 0.38.1 → 0.38.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.
@@ -90,7 +90,12 @@ async function main(source, destination) {
90
90
  "",
91
91
  `| API Base URL ==> ${url}`,
92
92
  `| Swagger UI ==> ${swaggerUrl}`,
93
+ "",
93
94
  "| Instructions ==> https://counterfact.dev/docs/usage.html",
95
+ "| Help/feedback ==> https://github.com/pmcelhaney/counterfact/issues",
96
+ "",
97
+ "🎉 VERSION 1.0 IS COMING! LEARN MORE:",
98
+ " https://github.com/pmcelhaney/counterfact/issues/823",
94
99
  "",
95
100
  "Starting REPL, type .help for more info",
96
101
  ];
@@ -3,6 +3,8 @@ import { jsonToXml } from "./json-to-xml.js";
3
3
  JSONSchemaFaker.option("useExamplesValue", true);
4
4
  JSONSchemaFaker.option("minItems", 0);
5
5
  JSONSchemaFaker.option("maxItems", 20);
6
+ JSONSchemaFaker.option("failOnInvalidTypes", false);
7
+ JSONSchemaFaker.option("failOnInvalidFormat", false);
6
8
  function convertToXmlIfNecessary(type, body, schema) {
7
9
  if (type.endsWith("/xml")) {
8
10
  return jsonToXml(body, schema, "root");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "counterfact",
3
- "version": "0.38.1",
3
+ "version": "0.38.3",
4
4
  "description": "a library for building a fake REST API for testing",
5
5
  "type": "module",
6
6
  "main": "./src/server/counterfact.js",
@@ -47,7 +47,7 @@
47
47
  "@stryker-mutator/core": "8.2.6",
48
48
  "@stryker-mutator/jest-runner": "8.2.6",
49
49
  "@stryker-mutator/typescript-checker": "8.2.6",
50
- "@swc/core": "1.4.8",
50
+ "@swc/core": "1.4.11",
51
51
  "@swc/jest": "0.2.36",
52
52
  "@testing-library/dom": "9.3.4",
53
53
  "@types/jest": "29.5.12",
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-file-progress": "1.3.0",
66
66
  "eslint-plugin-import": "2.29.1",
67
67
  "eslint-plugin-jest": "27.9.0",
68
- "eslint-plugin-jest-dom": "5.1.0",
68
+ "eslint-plugin-jest-dom": "5.2.0",
69
69
  "eslint-plugin-no-explicit-type-exports": "0.12.1",
70
70
  "eslint-plugin-unused-imports": "3.1.0",
71
71
  "husky": "9.0.11",
@@ -92,13 +92,13 @@
92
92
  "json-schema-faker": "0.5.6",
93
93
  "json-schema-ref-parser": "9.0.9",
94
94
  "jsonwebtoken": "9.0.2",
95
- "koa": "2.15.1",
95
+ "koa": "2.15.2",
96
96
  "koa-bodyparser": "4.4.1",
97
97
  "koa-proxy": "1.0.0-alpha.3",
98
98
  "koa2-swagger-ui": "5.10.0",
99
99
  "node-fetch": "3.3.2",
100
100
  "open": "10.1.0",
101
101
  "prettier": "3.2.5",
102
- "typescript": "5.4.2"
102
+ "typescript": "5.4.3"
103
103
  }
104
104
  }