@suss/packs 0.22.3 → 0.22.4

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 (2) hide show
  1. package/dist/hono.js +6 -1
  2. package/package.json +18 -13
package/dist/hono.js CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  wrapperDiscovery
7
7
  } from "@suss/extractor";
8
8
  var HONO_WRAPPERS = [
9
+ { method: "use", targetPosition: 0, continuationParam: 1 },
9
10
  {
10
11
  method: "use",
11
12
  scopePosition: 0,
@@ -14,6 +15,10 @@ var HONO_WRAPPERS = [
14
15
  },
15
16
  { method: "onError", targetPosition: 0, throwParam: 0 }
16
17
  ];
18
+ var ZOD_OPENAPI_WRAPPERS = [
19
+ ...HONO_WRAPPERS,
20
+ { constructorOption: "defaultHook", targetPosition: 0, resultParam: 0 }
21
+ ];
17
22
  var HTTP_EXCEPTION_CODES = {
18
23
  HTTPException: 500
19
24
  };
@@ -94,7 +99,7 @@ function honoFramework(_options = {}) {
94
99
  ...wrapperDiscovery({
95
100
  importModule: "@hono/zod-openapi",
96
101
  importNames: ["OpenAPIHono"],
97
- wraps: HONO_WRAPPERS
102
+ wraps: ZOD_OPENAPI_WRAPPERS
98
103
  })
99
104
  ],
100
105
  // A route a project helper registers is read from the helper's own
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@suss/packs",
3
- "version": "0.22.3",
3
+ "version": "0.22.4",
4
4
  "type": "module",
5
- "description": "Every pack suss ships, as one package with a subpath per pack.",
5
+ "description": "Every pack suss ships in one install, so it can read Express, Hono, NestJS, FastAPI, Rails, Prisma, OpenAPI and the rest.",
6
6
  "keywords": [
7
7
  "suss",
8
- "behavioral-summary",
9
- "packs"
8
+ "static-analysis",
9
+ "express",
10
+ "fastapi",
11
+ "rails",
12
+ "prisma",
13
+ "openapi",
14
+ "api-contract"
10
15
  ],
11
16
  "license": "Apache-2.0",
12
17
  "author": "Nimbus Cloud AI LLC",
@@ -189,15 +194,15 @@
189
194
  "ts-morph": "^23.0.0"
190
195
  },
191
196
  "dependencies": {
192
- "@suss/adapter-python": "0.22.3",
193
- "@suss/adapter-ruby": "0.22.3",
194
- "@suss/adapter-typescript": "0.22.3",
195
- "@suss/behavioral-ir": "0.22.3",
196
- "@suss/contract-graphql": "0.22.3",
197
- "@suss/extractor": "0.22.3",
198
- "@suss/manifest-aws": "0.22.3",
199
- "@suss/recognize": "0.22.3",
200
- "@suss/sql": "0.22.3",
197
+ "@suss/adapter-python": "0.22.4",
198
+ "@suss/adapter-ruby": "0.22.4",
199
+ "@suss/adapter-typescript": "0.22.4",
200
+ "@suss/behavioral-ir": "0.22.4",
201
+ "@suss/contract-graphql": "0.22.4",
202
+ "@suss/extractor": "0.22.4",
203
+ "@suss/manifest-aws": "0.22.4",
204
+ "@suss/recognize": "0.22.4",
205
+ "@suss/sql": "0.22.4",
201
206
  "zod": "^4.0.0"
202
207
  },
203
208
  "devDependencies": {