-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpackage.json
More file actions
157 lines (157 loc) · 5.19 KB
/
package.json
File metadata and controls
157 lines (157 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "counterfact",
"version": "2.7.0",
"description": "Generate a TypeScript-based mock server from an OpenAPI spec in seconds — with stateful routes, hot reload, and REPL support.",
"type": "module",
"main": "./dist/app.js",
"exports": {
".": {
"import": "./dist/app.js"
}
},
"types": "./dist/server/types.d.ts",
"typesVersions": {
"*": {
"*": [
"dist/server/types.d.ts"
]
}
},
"author": "Patrick McElhaney <pmcelhaney@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/counterfact/api-simulator.git"
},
"bugs": "https://github.com/counterfact/api-simulator/issues",
"homepage": "https://counterfact.dev",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/pmcelhaney"
},
"keywords": [
"mock",
"mock-server",
"openapi",
"swagger",
"typescript",
"api",
"api-mocking",
"api-first",
"openapi-mock",
"mock-api",
"dev-tools",
"frontend",
"backend",
"prototyping",
"testing",
"stateful",
"repl",
"hot-reload",
"cli",
"openapi-tools",
"swagger-tools"
],
"engines": {
"node": ">=22"
},
"bin": {
"counterfact": "bin/counterfact.js"
},
"files": [
"bin",
"dist"
],
"sideEffects": false,
"scripts": {
"test": "yarn node --experimental-vm-modules ./node_modules/jest-cli/bin/jest --testPathIgnorePatterns=black-box",
"test:black-box": "rimraf dist && yarn build && python3 -m pytest test-black-box/ -v",
"test:tsd": "tsd --typings ./dist/server/counterfact-types/index.ts --files ./test/**/*.test-d.ts",
"build": "rm -rf dist && tsc && copyfiles -f \"src/counterfact-types/*.ts\" dist/server/counterfact-types && copyfiles -f \"src/server/*.cjs\" dist/server",
"prepack": "yarn build",
"release": "npx changeset publish",
"prepare": "husky install",
"lint": "eslint . --plugin file-progress --rule 'file-progress/activate: 1' --ignore-pattern dist --ignore-pattern out --ignore-pattern coverage",
"lint:fix": "eslint --fix . --ignore-pattern dist --ignore-pattern out --ignore-pattern coverage",
"lint:quickfix": "eslint --fix . eslint --fix demo-ts --rule=\"import/namespace: 0,etc/no-deprecated:0,import/no-cycle:0,no-explicit-type-exports/no-explicit-type-exports:0,import/no-deprecated:0,import/no-self-import:0,import/default:0,import/no-named-as-default:0\" --ignore-pattern dist --ignore-pattern out",
"go:petstore": "yarn build && yarn counterfact https://petstore3.swagger.io/api/v3/openapi.json out",
"go:petstore2": "yarn build && yarn counterfact https://petstore.swagger.io/v2/swagger.json out",
"go:example": "yarn build && node ./bin/counterfact.js ./test/fixtures/openapi-example.yaml out",
"counterfact": "./bin/counterfact.js",
"postinstall": "patch-package"
},
"devDependencies": {
"@changesets/cli": "2.30.0",
"@eslint/js": "10.0.1",
"@jest/globals": "^30.3.0",
"@swc/core": "1.15.24",
"@swc/jest": "0.2.39",
"@testing-library/dom": "10.4.1",
"@types/debug": "^4.1.12",
"@types/jest": "30.0.0",
"@types/js-yaml": "4.0.9",
"@types/koa": "3.0.2",
"@types/koa-bodyparser": "4.3.13",
"@types/koa-proxy": "1.0.8",
"@types/koa-static": "4.0.4",
"@types/node": "22",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"copyfiles": "2.4.1",
"eslint": "10.2.0",
"eslint-formatter-github-annotations": "0.1.0",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-etc": "2.0.3",
"eslint-plugin-file-progress": "4.0.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jest": "29.15.1",
"eslint-plugin-jest-dom": "5.5.0",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-no-explicit-type-exports": "0.12.1",
"eslint-plugin-prettier": "5.5.5",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-regexp": "^3.0.0",
"eslint-plugin-security": "^4.0.0",
"eslint-plugin-unused-imports": "4.4.1",
"husky": "9.1.7",
"jest": "30.3.0",
"jest-retries": "1.0.1",
"node-mocks-http": "1.17.2",
"rimraf": "6.1.3",
"supertest": "7.2.2",
"tsd": "0.33.0",
"using-temporary-files": "2.2.1"
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "13.0.5",
"@hapi/accept": "6.0.3",
"@types/json-schema": "7.0.15",
"ajv": "8.18.0",
"chokidar": "5.0.0",
"commander": "14.0.3",
"debug": "4.4.3",
"fs-extra": "11.3.4",
"http-terminator": "3.2.0",
"js-yaml": "4.1.1",
"json-schema-faker": "0.6.0",
"jsonwebtoken": "9.0.3",
"koa": "3.2.0",
"koa-bodyparser": "4.4.1",
"koa-proxies": "0.12.4",
"koa2-swagger-ui": "5.12.0",
"node-fetch": "3.3.2",
"open": "11.0.0",
"patch-package": "8.0.1",
"posthog-node": "^5.28.11",
"precinct": "12.2.0",
"prettier": "3.8.1",
"recast": "0.23.11",
"tsx": "^4.20.3",
"typescript": "6.0.2"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"resolutions": {
"js-yaml": "4.1.1",
"@typescript-eslint/utils": "^8.58.0"
}
}