@suss/packs 0.15.0 → 0.17.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.
- package/dist/activerecord.d.ts +3 -0
- package/dist/activerecord.js +2 -0
- package/dist/apollo-client.js +2 -0
- package/dist/apollo.js +2 -0
- package/dist/aws-dynamodb.js +2 -0
- package/dist/aws-eventbridge.js +2 -0
- package/dist/aws-lambda.js +2 -0
- package/dist/aws-s3.js +2 -0
- package/dist/aws-sqs.js +2 -0
- package/dist/axios.js +2 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/cloudflare-workers.js +2 -0
- package/dist/drizzle.js +2 -0
- package/dist/express.js +2 -0
- package/dist/fastapi.js +2 -0
- package/dist/fastify.js +2 -0
- package/dist/fetch.js +2 -0
- package/dist/flask-restx.js +2 -0
- package/dist/gcs.js +2 -0
- package/dist/graphql-ruby.js +2 -0
- package/dist/hono.js +2 -0
- package/dist/mongoose.js +2 -0
- package/dist/nestjs-graphql.js +2 -0
- package/dist/nestjs-microservices.d.ts +1 -0
- package/dist/nestjs-microservices.js +59 -0
- package/dist/nestjs-rest.js +2 -0
- package/dist/nextjs.js +268558 -0
- package/dist/node.js +2 -0
- package/dist/package-exports.d.ts +1 -0
- package/dist/package-exports.js +37 -0
- package/dist/prisma.js +2 -0
- package/dist/react-query.d.ts +1 -0
- package/dist/react-query.js +143 -0
- package/dist/react-router.js +2 -0
- package/dist/react.js +2 -0
- package/dist/redis.js +2 -0
- package/dist/sqlalchemy.js +2 -0
- package/dist/ts-rest.js +2 -0
- package/package.json +25 -10
package/dist/activerecord.d.ts
CHANGED
|
@@ -19,10 +19,13 @@ 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';
|
|
28
|
+
import '@suss/framework-react-query';
|
|
26
29
|
import '@suss/framework-react-router';
|
|
27
30
|
import '@suss/framework-react';
|
|
28
31
|
import '@suss/framework-redis';
|
package/dist/activerecord.js
CHANGED
package/dist/apollo-client.js
CHANGED
package/dist/apollo.js
CHANGED
package/dist/aws-dynamodb.js
CHANGED
package/dist/aws-eventbridge.js
CHANGED
package/dist/aws-lambda.js
CHANGED
package/dist/aws-s3.js
CHANGED
package/dist/aws-sqs.js
CHANGED
package/dist/axios.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__require
|
|
10
|
+
};
|
package/dist/drizzle.js
CHANGED
package/dist/express.js
CHANGED
package/dist/fastapi.js
CHANGED
package/dist/fastify.js
CHANGED
package/dist/fetch.js
CHANGED
package/dist/flask-restx.js
CHANGED
package/dist/gcs.js
CHANGED
package/dist/graphql-ruby.js
CHANGED
package/dist/hono.js
CHANGED
package/dist/mongoose.js
CHANGED
package/dist/nestjs-graphql.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@suss/framework-nestjs-microservices';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "./chunk-3RG5ZIWI.js";
|
|
2
|
+
|
|
3
|
+
// ../framework/nestjs-microservices/dist/index.js
|
|
4
|
+
function nestjsMicroservicesFramework(options = {}) {
|
|
5
|
+
const binding = {
|
|
6
|
+
semantics: "message-bus",
|
|
7
|
+
messageBus: options.transport ?? "nats",
|
|
8
|
+
channel: { from: "decoratorArgument", position: 0 }
|
|
9
|
+
};
|
|
10
|
+
return {
|
|
11
|
+
name: "nestjs-microservices",
|
|
12
|
+
languages: ["typescript"],
|
|
13
|
+
protocol: "message-bus",
|
|
14
|
+
discovery: [
|
|
15
|
+
{
|
|
16
|
+
kind: "consumer",
|
|
17
|
+
match: {
|
|
18
|
+
type: "decoratedRoute",
|
|
19
|
+
importModule: ["@nestjs/microservices", "@nestjs/common"],
|
|
20
|
+
classDecorators: ["Controller", ...options.classDecorators ?? []],
|
|
21
|
+
// The values label the handler for a reader; the boundary
|
|
22
|
+
// comes from the declared binding below.
|
|
23
|
+
methodDecoratorRouteMap: {
|
|
24
|
+
EventPattern: "event",
|
|
25
|
+
MessagePattern: "message"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
binding,
|
|
29
|
+
requiresImport: ["@nestjs/microservices"]
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
terminals: [
|
|
33
|
+
// An @MessagePattern handler's return is the reply; an
|
|
34
|
+
// @EventPattern handler's return is dropped by the framework.
|
|
35
|
+
// Both are recorded as returns, and reply pairing is deferred.
|
|
36
|
+
{
|
|
37
|
+
kind: "return",
|
|
38
|
+
match: { type: "returnStatement", excludeCallReturns: false },
|
|
39
|
+
extraction: {}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
kind: "throw",
|
|
43
|
+
match: { type: "throwExpression" },
|
|
44
|
+
extraction: {}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
inputMapping: {
|
|
48
|
+
type: "decoratedParams",
|
|
49
|
+
decoratorRoleMap: {
|
|
50
|
+
Payload: "message",
|
|
51
|
+
Ctx: "context"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
var index_default = nestjsMicroservicesFramework;
|
|
57
|
+
export {
|
|
58
|
+
index_default as default
|
|
59
|
+
};
|