@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.
@@ -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';
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/activerecord/dist/index.js
2
4
  function activeRecordStorage(options) {
3
5
  return [
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../client/apollo/dist/index.js
2
4
  var DOCUMENT_HOOKS = [
3
5
  { hookName: "useQuery", operationType: "query" },
package/dist/apollo.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/apollo/dist/index.js
2
4
  function apolloFramework() {
3
5
  return {
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/aws-dynamodb/dist/index.js
2
4
  import { constructedFrom, pack, storageCalls } from "@suss/recognize";
3
5
  var COMMAND_MODULES = [
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/aws-eventbridge/dist/index.js
2
4
  import { readConfiguredCall } from "@suss/adapter-typescript";
3
5
  import { messageBusBinding } from "@suss/behavioral-ir";
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/aws-lambda/dist/index.js
2
4
  import fs from "fs";
3
5
  import path from "path";
package/dist/aws-s3.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/aws-s3/dist/index.js
2
4
  import { constructedFrom, pack, storageCalls } from "@suss/recognize";
3
5
  var COMMAND_MODULE = "@aws-sdk/client-s3";
package/dist/aws-sqs.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/aws-sqs/dist/index.js
2
4
  import { Node as N } from "ts-morph";
3
5
  import { readConfiguredCall } from "@suss/adapter-typescript";
package/dist/axios.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../client/axios/dist/index.js
2
4
  var HTTP_METHODS = [
3
5
  "get",
@@ -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
+ };
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/cloudflare-workers/dist/index.js
2
4
  import { Node as N } from "ts-morph";
3
5
  import { Node as N2 } from "ts-morph";
package/dist/drizzle.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/drizzle/dist/index.js
2
4
  import { Node as N } from "ts-morph";
3
5
  import { resolveAliasedSymbol } from "@suss/adapter-typescript";
package/dist/express.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/express/dist/index.js
2
4
  import {
3
5
  httpRouteDiscovery,
package/dist/fastapi.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/fastapi/dist/index.js
2
4
  var VERB_ATTRIBUTE_NAMES = {
3
5
  get: "GET",
package/dist/fastify.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/fastify/dist/index.js
2
4
  import {
3
5
  httpRouteDiscovery,
package/dist/fetch.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../client/web/dist/index.js
2
4
  function webFetchPack() {
3
5
  return {
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/flask-restx/dist/index.js
2
4
  var VERB_METHOD_NAMES = {
3
5
  get: "GET",
package/dist/gcs.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/gcs/dist/index.js
2
4
  import { declaredBy, pack, storageCalls } from "@suss/recognize";
3
5
  var CLIENT_MODULE = "@google-cloud/storage";
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/graphql-ruby/dist/index.js
2
4
  import path from "path";
3
5
  import { SCALAR_SHAPES } from "@suss/contract-graphql";
package/dist/hono.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/hono/dist/index.js
2
4
  import {
3
5
  httpRouteDiscovery,
package/dist/mongoose.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/mongoose/dist/index.js
2
4
  import {
3
5
  constructedFrom,
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/nestjs-graphql/dist/index.js
2
4
  function nestjsGraphqlFramework(options = {}) {
3
5
  return {
@@ -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
+ };
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // ../framework/nestjs-rest/dist/index.js
2
4
  function nestjsRestFramework(options = {}) {
3
5
  return {