@suss/packs 0.15.0 → 0.16.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.
@@ -19,9 +19,11 @@ import '@suss/framework-graphql-ruby';
19
19
  import '@suss/framework-hono';
20
20
  import '@suss/framework-mongoose';
21
21
  import '@suss/framework-nestjs-graphql';
22
+ import '@suss/framework-nestjs-microservices';
22
23
  import '@suss/framework-nestjs-rest';
23
24
  import '@suss/framework-nextjs';
24
25
  import '@suss/runtime-node';
26
+ import '@suss/framework-package-exports';
25
27
  import '@suss/framework-prisma';
26
28
  import '@suss/framework-react-router';
27
29
  import '@suss/framework-react';
@@ -0,0 +1 @@
1
+ export { default } from '@suss/framework-nestjs-microservices';
@@ -0,0 +1,57 @@
1
+ // ../framework/nestjs-microservices/dist/index.js
2
+ function nestjsMicroservicesFramework(options = {}) {
3
+ const binding = {
4
+ semantics: "message-bus",
5
+ messageBus: options.transport ?? "nats",
6
+ channel: { from: "decoratorArgument", position: 0 }
7
+ };
8
+ return {
9
+ name: "nestjs-microservices",
10
+ languages: ["typescript"],
11
+ protocol: "message-bus",
12
+ discovery: [
13
+ {
14
+ kind: "consumer",
15
+ match: {
16
+ type: "decoratedRoute",
17
+ importModule: ["@nestjs/microservices", "@nestjs/common"],
18
+ classDecorators: ["Controller", ...options.classDecorators ?? []],
19
+ // The values label the handler for a reader; the boundary
20
+ // comes from the declared binding below.
21
+ methodDecoratorRouteMap: {
22
+ EventPattern: "event",
23
+ MessagePattern: "message"
24
+ }
25
+ },
26
+ binding,
27
+ requiresImport: ["@nestjs/microservices"]
28
+ }
29
+ ],
30
+ terminals: [
31
+ // An @MessagePattern handler's return is the reply; an
32
+ // @EventPattern handler's return is dropped by the framework.
33
+ // Both are recorded as returns, and reply pairing is deferred.
34
+ {
35
+ kind: "return",
36
+ match: { type: "returnStatement", excludeCallReturns: false },
37
+ extraction: {}
38
+ },
39
+ {
40
+ kind: "throw",
41
+ match: { type: "throwExpression" },
42
+ extraction: {}
43
+ }
44
+ ],
45
+ inputMapping: {
46
+ type: "decoratedParams",
47
+ decoratorRoleMap: {
48
+ Payload: "message",
49
+ Ctx: "context"
50
+ }
51
+ }
52
+ };
53
+ }
54
+ var index_default = nestjsMicroservicesFramework;
55
+ export {
56
+ index_default as default
57
+ };
@@ -0,0 +1 @@
1
+ export { default } from '@suss/framework-package-exports';
@@ -0,0 +1,35 @@
1
+ // ../framework/package-exports/dist/index.js
2
+ function packageExportsFramework() {
3
+ return {
4
+ name: "package-exports",
5
+ languages: ["typescript"],
6
+ protocol: "in-process",
7
+ discovery: [
8
+ {
9
+ kind: "library",
10
+ match: { type: "packageExports", workspaces: true }
11
+ },
12
+ {
13
+ kind: "caller",
14
+ match: { type: "packageImport", workspaces: true }
15
+ }
16
+ ],
17
+ terminals: [
18
+ {
19
+ kind: "return",
20
+ match: { type: "returnStatement" },
21
+ extraction: {}
22
+ },
23
+ {
24
+ kind: "throw",
25
+ match: { type: "throwExpression" },
26
+ extraction: {}
27
+ }
28
+ ],
29
+ inputMapping: { type: "allPositional" }
30
+ };
31
+ }
32
+ var index_default = packageExportsFramework;
33
+ export {
34
+ index_default as default
35
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suss/packs",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "description": "Every pack suss ships, as one package with a subpath per pack.",
6
6
  "keywords": [
@@ -104,6 +104,10 @@
104
104
  "types": "./dist/nestjs-graphql.d.ts",
105
105
  "import": "./dist/nestjs-graphql.js"
106
106
  },
107
+ "./nestjs-microservices": {
108
+ "types": "./dist/nestjs-microservices.d.ts",
109
+ "import": "./dist/nestjs-microservices.js"
110
+ },
107
111
  "./nestjs-rest": {
108
112
  "types": "./dist/nestjs-rest.d.ts",
109
113
  "import": "./dist/nestjs-rest.js"
@@ -116,6 +120,10 @@
116
120
  "types": "./dist/node.d.ts",
117
121
  "import": "./dist/node.js"
118
122
  },
123
+ "./package-exports": {
124
+ "types": "./dist/package-exports.d.ts",
125
+ "import": "./dist/package-exports.js"
126
+ },
119
127
  "./prisma": {
120
128
  "types": "./dist/prisma.d.ts",
121
129
  "import": "./dist/prisma.js"
@@ -157,15 +165,15 @@
157
165
  "ts-morph": "^23.0.0"
158
166
  },
159
167
  "dependencies": {
160
- "@suss/adapter-python": "0.15.0",
161
- "@suss/adapter-ruby": "0.15.0",
162
- "@suss/adapter-typescript": "0.15.0",
163
- "@suss/behavioral-ir": "0.15.0",
164
- "@suss/contract-graphql": "0.15.0",
165
- "@suss/extractor": "0.15.0",
166
- "@suss/manifest-aws": "0.15.0",
167
- "@suss/recognize": "0.15.0",
168
- "@suss/sql": "0.15.0"
168
+ "@suss/adapter-python": "0.16.0",
169
+ "@suss/adapter-ruby": "0.16.0",
170
+ "@suss/adapter-typescript": "0.16.0",
171
+ "@suss/behavioral-ir": "0.16.0",
172
+ "@suss/contract-graphql": "0.16.0",
173
+ "@suss/extractor": "0.16.0",
174
+ "@suss/manifest-aws": "0.16.0",
175
+ "@suss/recognize": "0.16.0",
176
+ "@suss/sql": "0.16.0"
169
177
  },
170
178
  "devDependencies": {
171
179
  "@suss/client-apollo": "*",
@@ -189,8 +197,10 @@
189
197
  "@suss/framework-hono": "*",
190
198
  "@suss/framework-mongoose": "*",
191
199
  "@suss/framework-nestjs-graphql": "*",
200
+ "@suss/framework-nestjs-microservices": "*",
192
201
  "@suss/framework-nestjs-rest": "*",
193
202
  "@suss/framework-nextjs": "*",
203
+ "@suss/framework-package-exports": "*",
194
204
  "@suss/framework-prisma": "*",
195
205
  "@suss/framework-react": "*",
196
206
  "@suss/framework-react-router": "*",