@supertst/api 0.4.0 → 0.5.0

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.
Files changed (3) hide show
  1. package/README.md +8 -14
  2. package/package.json +4 -4
  3. package/src/index.ts +1094 -9170
package/README.md CHANGED
@@ -1,21 +1,15 @@
1
- # @supertst/api
1
+ # supertst-api
2
2
 
3
- SDK client generated from the Supertest API schema.
4
-
5
- ## Install
3
+ To install dependencies:
6
4
 
7
5
  ```bash
8
- npm install @supertst/api
6
+ bun install
9
7
  ```
10
8
 
11
- ## Usage
12
-
13
- See [`SDK_GUIDE.md`](./SDK_GUIDE.md).
14
-
15
- ## Next.js 16
9
+ To run:
16
10
 
17
- See [`NEXTJS_APP_ROUTER_GUIDE.md`](./NEXTJS_APP_ROUTER_GUIDE.md).
18
-
19
- ## Next.js Caching
11
+ ```bash
12
+ bun run index.ts
13
+ ```
20
14
 
21
- See [`NEXTJS_CACHE_COMPONENTS_GUIDE.md`](./NEXTJS_CACHE_COMPONENTS_GUIDE.md).
15
+ This project was created using `bun init` in bun v1.3.14. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@supertst/api",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "files": [
7
- "src/index.ts"
7
+ "src"
8
8
  ],
9
9
  "scripts": {
10
- "generate": "bun run src/generate.ts"
10
+ "generate": "swagger-typescript-api generate --path https://supertest-backend-main-28m3d.ondigitalocean.app/supertest-backend-main/docs-json --output ./src --name index.ts --clean-output"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/bun": "latest",
14
- "swagger-typescript-api": "^13.6.7"
14
+ "swagger-typescript-api": "^13.10.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "typescript": "^5"