@suss/packs 0.23.0 → 0.24.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/README.md +2 -0
- package/dist/activerecord.d.ts +6 -1
- package/dist/activerecord.js +10 -0
- package/dist/aiohttp.d.ts +1 -0
- package/dist/aiohttp.js +43 -0
- package/dist/apollo-client.d.ts +1 -1
- package/dist/apollo-client.js +7 -0
- package/dist/apollo.d.ts +1 -1
- package/dist/apollo.js +7 -0
- package/dist/aws-dynamodb.d.ts +1 -1
- package/dist/aws-dynamodb.js +10 -0
- package/dist/aws-eventbridge.d.ts +1 -1
- package/dist/aws-eventbridge.js +7 -0
- package/dist/aws-lambda.d.ts +1 -1
- package/dist/aws-lambda.js +7 -0
- package/dist/aws-s3.d.ts +1 -1
- package/dist/aws-s3.js +7 -0
- package/dist/aws-secrets-manager.d.ts +1 -1
- package/dist/aws-secrets-manager.js +7 -0
- package/dist/aws-sns.d.ts +1 -1
- package/dist/aws-sns.js +7 -0
- package/dist/aws-sqs.d.ts +1 -1
- package/dist/aws-sqs.js +7 -0
- package/dist/aws-ssm.d.ts +1 -1
- package/dist/aws-ssm.js +7 -0
- package/dist/axios.d.ts +1 -1
- package/dist/axios.js +7 -0
- package/dist/cloudflare-workers.d.ts +1 -1
- package/dist/cloudflare-workers.js +10 -0
- package/dist/drizzle.d.ts +1 -1
- package/dist/drizzle.js +7 -0
- package/dist/express.d.ts +1 -1
- package/dist/express.js +7 -0
- package/dist/faraday.d.ts +1 -0
- package/dist/faraday.js +48 -0
- package/dist/fastapi.d.ts +1 -1
- package/dist/fastapi.js +7 -0
- package/dist/fastify.d.ts +1 -1
- package/dist/fastify.js +7 -0
- package/dist/fetch.d.ts +1 -1
- package/dist/fetch.js +8 -0
- package/dist/flask-restx.d.ts +1 -1
- package/dist/flask-restx.js +7 -0
- package/dist/gcs.d.ts +1 -1
- package/dist/gcs.js +7 -0
- package/dist/graphql-ruby.d.ts +1 -1
- package/dist/graphql-ruby.js +13 -0
- package/dist/hono.d.ts +1 -1
- package/dist/hono.js +7 -0
- package/dist/httpx.d.ts +1 -0
- package/dist/httpx.js +53 -0
- package/dist/mongoose.d.ts +1 -1
- package/dist/mongoose.js +7 -0
- package/dist/nestjs-graphql.d.ts +1 -1
- package/dist/nestjs-graphql.js +7 -0
- package/dist/nestjs-microservices.d.ts +1 -1
- package/dist/nestjs-microservices.js +7 -0
- package/dist/nestjs-rest.d.ts +1 -1
- package/dist/nestjs-rest.js +7 -0
- package/dist/net-http.d.ts +1 -0
- package/dist/net-http.js +64 -0
- package/dist/nextjs.d.ts +1 -1
- package/dist/nextjs.js +7 -0
- package/dist/node.d.ts +1 -1
- package/dist/node.js +8 -0
- package/dist/package-exports.d.ts +1 -1
- package/dist/package-exports.js +7 -0
- package/dist/prisma.d.ts +1 -1
- package/dist/prisma.js +7 -0
- package/dist/rails.d.ts +1 -1
- package/dist/rails.js +13 -0
- package/dist/react-query.d.ts +1 -1
- package/dist/react-query.js +7 -0
- package/dist/react-router.d.ts +1 -1
- package/dist/react-router.js +10 -0
- package/dist/react.d.ts +1 -1
- package/dist/react.js +7 -0
- package/dist/redis.d.ts +1 -1
- package/dist/redis.js +11 -0
- package/dist/requests.d.ts +1 -0
- package/dist/requests.js +54 -0
- package/dist/sqlalchemy.d.ts +1 -1
- package/dist/sqlalchemy.js +7 -0
- package/dist/ts-rest.d.ts +1 -1
- package/dist/ts-rest.js +7 -0
- package/dist/zustand.d.ts +1 -1
- package/dist/zustand.js +7 -0
- package/package.json +35 -10
package/dist/httpx.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// ../client/httpx/dist/index.js
|
|
2
|
+
var VERB_FUNCTIONS = {
|
|
3
|
+
get: "GET",
|
|
4
|
+
post: "POST",
|
|
5
|
+
put: "PUT",
|
|
6
|
+
patch: "PATCH",
|
|
7
|
+
delete: "DELETE",
|
|
8
|
+
head: "HEAD",
|
|
9
|
+
options: "OPTIONS"
|
|
10
|
+
};
|
|
11
|
+
function httpxClient() {
|
|
12
|
+
return {
|
|
13
|
+
name: "httpx",
|
|
14
|
+
protocol: "http",
|
|
15
|
+
discovery: [],
|
|
16
|
+
clients: [
|
|
17
|
+
{
|
|
18
|
+
type: "clientCall",
|
|
19
|
+
importModule: ["httpx"],
|
|
20
|
+
verbAttributeNames: VERB_FUNCTIONS,
|
|
21
|
+
url: { position: 0, keyword: "url" },
|
|
22
|
+
methodCall: {
|
|
23
|
+
attribute: "request",
|
|
24
|
+
methodPosition: 0,
|
|
25
|
+
methodKeyword: "method",
|
|
26
|
+
urlPosition: 1
|
|
27
|
+
},
|
|
28
|
+
// Both are written as a context manager as often as they are
|
|
29
|
+
// assigned, and the adapter reads a `with ... as` the same way.
|
|
30
|
+
receiverConstructors: ["Client", "AsyncClient"],
|
|
31
|
+
// httpx spells the response the way requests does, which is
|
|
32
|
+
// deliberate on its part.
|
|
33
|
+
response: {
|
|
34
|
+
statusCode: ["status_code"],
|
|
35
|
+
success: ["is_success"],
|
|
36
|
+
body: ["json", "text", "content"],
|
|
37
|
+
failureDelivery: "response"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
var declares = {
|
|
44
|
+
kind: "client",
|
|
45
|
+
package: "@suss/client-httpx",
|
|
46
|
+
dependencies: [{ ecosystem: "pypi", name: "httpx" }],
|
|
47
|
+
reads: "httpx call sites (Python): the verb functions, `httpx.request`, and a `Client` or `AsyncClient` held in an assignment or opened with `with`."
|
|
48
|
+
};
|
|
49
|
+
var index_default = httpxClient;
|
|
50
|
+
export {
|
|
51
|
+
declares,
|
|
52
|
+
index_default as default
|
|
53
|
+
};
|
package/dist/mongoose.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-mongoose';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-mongoose';
|
package/dist/mongoose.js
CHANGED
|
@@ -152,8 +152,15 @@ function mongooseFramework(options = {}) {
|
|
|
152
152
|
protocol: "in-process"
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
+
var declares = {
|
|
156
|
+
kind: "effects",
|
|
157
|
+
package: "@suss/framework-mongoose",
|
|
158
|
+
dependencies: [{ ecosystem: "npm", name: "mongoose" }],
|
|
159
|
+
reads: `Mongoose model calls, emits storage-access interactions against the collection a model's \`.model(...)\` call declares.`
|
|
160
|
+
};
|
|
155
161
|
var index_default = mongooseFramework;
|
|
156
162
|
export {
|
|
163
|
+
declares,
|
|
157
164
|
index_default as default,
|
|
158
165
|
optionsSchema
|
|
159
166
|
};
|
package/dist/nestjs-graphql.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-nestjs-graphql';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-nestjs-graphql';
|
package/dist/nestjs-graphql.js
CHANGED
|
@@ -85,8 +85,15 @@ function nestjsGraphqlFramework(options = {}) {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
+
var declares = {
|
|
89
|
+
kind: "framework",
|
|
90
|
+
package: "@suss/framework-nestjs-graphql",
|
|
91
|
+
dependencies: [{ ecosystem: "npm", name: "@nestjs/graphql" }],
|
|
92
|
+
reads: "NestJS GraphQL resolvers."
|
|
93
|
+
};
|
|
88
94
|
var index_default = nestjsGraphqlFramework;
|
|
89
95
|
export {
|
|
96
|
+
declares,
|
|
90
97
|
index_default as default,
|
|
91
98
|
optionsSchema
|
|
92
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-nestjs-microservices';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-nestjs-microservices';
|
|
@@ -70,8 +70,15 @@ function nestjsMicroservicesFramework(options = {}) {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
+
var declares = {
|
|
74
|
+
kind: "framework",
|
|
75
|
+
package: "@suss/framework-nestjs-microservices",
|
|
76
|
+
dependencies: [{ ecosystem: "npm", name: "@nestjs/microservices" }],
|
|
77
|
+
reads: "NestJS microservice handlers: `@EventPattern` and `@MessagePattern` consumers on the channel the decorator states."
|
|
78
|
+
};
|
|
73
79
|
var index_default = nestjsMicroservicesFramework;
|
|
74
80
|
export {
|
|
81
|
+
declares,
|
|
75
82
|
index_default as default,
|
|
76
83
|
optionsSchema
|
|
77
84
|
};
|
package/dist/nestjs-rest.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-nestjs-rest';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-nestjs-rest';
|
package/dist/nestjs-rest.js
CHANGED
|
@@ -96,8 +96,15 @@ function nestjsRestFramework(options = {}) {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
+
var declares = {
|
|
100
|
+
kind: "framework",
|
|
101
|
+
package: "@suss/framework-nestjs-rest",
|
|
102
|
+
dependencies: [{ ecosystem: "npm", name: "@nestjs/common" }],
|
|
103
|
+
reads: "NestJS REST controllers."
|
|
104
|
+
};
|
|
99
105
|
var index_default = nestjsRestFramework;
|
|
100
106
|
export {
|
|
107
|
+
declares,
|
|
101
108
|
index_default as default,
|
|
102
109
|
optionsSchema
|
|
103
110
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { declares, default } from '@suss/client-net-http';
|
package/dist/net-http.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// ../client/net-http/dist/index.js
|
|
2
|
+
var VERB_METHODS = {
|
|
3
|
+
get: "GET",
|
|
4
|
+
get_response: "GET",
|
|
5
|
+
post: "POST",
|
|
6
|
+
post_form: "POST",
|
|
7
|
+
put: "PUT",
|
|
8
|
+
patch: "PATCH",
|
|
9
|
+
delete: "DELETE",
|
|
10
|
+
head: "HEAD",
|
|
11
|
+
options: "OPTIONS"
|
|
12
|
+
};
|
|
13
|
+
var REQUEST_CLASSES = {
|
|
14
|
+
"Net::HTTP::Get": "GET",
|
|
15
|
+
"Net::HTTP::Post": "POST",
|
|
16
|
+
"Net::HTTP::Put": "PUT",
|
|
17
|
+
"Net::HTTP::Patch": "PATCH",
|
|
18
|
+
"Net::HTTP::Delete": "DELETE",
|
|
19
|
+
"Net::HTTP::Head": "HEAD",
|
|
20
|
+
"Net::HTTP::Options": "OPTIONS"
|
|
21
|
+
};
|
|
22
|
+
function netHttpClient() {
|
|
23
|
+
return {
|
|
24
|
+
name: "net-http",
|
|
25
|
+
protocol: "http",
|
|
26
|
+
discovery: [],
|
|
27
|
+
clients: [
|
|
28
|
+
{
|
|
29
|
+
constantName: "Net::HTTP",
|
|
30
|
+
verbMethodNames: VERB_METHODS,
|
|
31
|
+
// Every one of these takes a URI object rather than a string.
|
|
32
|
+
// `URI(...)` and `URI.parse(...)` belong to Ruby itself, so the
|
|
33
|
+
// adapter's value tables read them and the pack says nothing.
|
|
34
|
+
url: { position: 0 },
|
|
35
|
+
receiverBuilders: ["new"],
|
|
36
|
+
requestObject: {
|
|
37
|
+
attribute: "request",
|
|
38
|
+
constructors: REQUEST_CLASSES,
|
|
39
|
+
urlPosition: 0
|
|
40
|
+
},
|
|
41
|
+
// The status comes back as a string, which is why a caller
|
|
42
|
+
// writes `response.code.to_i == 404`, read the same as any
|
|
43
|
+
// other member.
|
|
44
|
+
response: {
|
|
45
|
+
statusCode: ["code"],
|
|
46
|
+
body: ["body"],
|
|
47
|
+
failureDelivery: "response"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
var declares = {
|
|
54
|
+
kind: "client",
|
|
55
|
+
package: "@suss/client-net-http",
|
|
56
|
+
dependencies: [],
|
|
57
|
+
shippedWith: "ruby",
|
|
58
|
+
reads: "Net::HTTP call sites (Ruby): the module methods that send on their own, and a request object built with `Net::HTTP::Get` and its siblings, with the URL read through `URI`."
|
|
59
|
+
};
|
|
60
|
+
var index_default = netHttpClient;
|
|
61
|
+
export {
|
|
62
|
+
declares,
|
|
63
|
+
index_default as default
|
|
64
|
+
};
|
package/dist/nextjs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-nextjs';
|
|
1
|
+
export { declares, default } from '@suss/framework-nextjs';
|
package/dist/nextjs.js
CHANGED
|
@@ -253,7 +253,14 @@ function nextjsFramework() {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
+
var declares = {
|
|
257
|
+
kind: "framework",
|
|
258
|
+
package: "@suss/framework-nextjs",
|
|
259
|
+
dependencies: [{ ecosystem: "npm", name: "next" }],
|
|
260
|
+
reads: `Next.js route handlers, pages, and server actions; the route comes from where the file is on disk, and a \`"use server"\` function becomes an action unit.`
|
|
261
|
+
};
|
|
256
262
|
var index_default = nextjsFramework;
|
|
257
263
|
export {
|
|
264
|
+
declares,
|
|
258
265
|
index_default as default
|
|
259
266
|
};
|
package/dist/node.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/runtime-node';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/runtime-node';
|
package/dist/node.js
CHANGED
|
@@ -674,8 +674,16 @@ function nodeRuntimePack(options = {}) {
|
|
|
674
674
|
subUnits: nodeSchedulingSubUnits
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
+
var declares = {
|
|
678
|
+
kind: "effects",
|
|
679
|
+
package: "@suss/runtime-node",
|
|
680
|
+
dependencies: [],
|
|
681
|
+
shippedWith: "typescript",
|
|
682
|
+
reads: "Node.js runtime primitives, scheduling, the `process` surface (incl. `process.env.X` config-read interactions), module-loading globals, emitted as interaction effects."
|
|
683
|
+
};
|
|
677
684
|
var index_default = nodeRuntimePack;
|
|
678
685
|
export {
|
|
686
|
+
declares,
|
|
679
687
|
index_default as default,
|
|
680
688
|
optionsSchema
|
|
681
689
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-package-exports';
|
|
1
|
+
export { declares, default } from '@suss/framework-package-exports';
|
package/dist/package-exports.js
CHANGED
|
@@ -29,7 +29,14 @@ function packageExportsFramework() {
|
|
|
29
29
|
inputMapping: { type: "allPositional" }
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
var declares = {
|
|
33
|
+
kind: "framework",
|
|
34
|
+
package: "@suss/framework-package-exports",
|
|
35
|
+
dependencies: [],
|
|
36
|
+
reads: "The boundary between packages in one workspace: public exports on the provider side, imports of them on the consumer side. Reads the workspace manifest, so it needs no per-project package list."
|
|
37
|
+
};
|
|
32
38
|
var index_default = packageExportsFramework;
|
|
33
39
|
export {
|
|
40
|
+
declares,
|
|
34
41
|
index_default as default
|
|
35
42
|
};
|
package/dist/prisma.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-prisma';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-prisma';
|
package/dist/prisma.js
CHANGED
|
@@ -409,8 +409,15 @@ function prismaFramework(options = {}) {
|
|
|
409
409
|
declarations: declarationsIn([raw])
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
+
var declares = {
|
|
413
|
+
kind: "effects",
|
|
414
|
+
package: "@suss/framework-prisma",
|
|
415
|
+
dependencies: [{ ecosystem: "npm", name: "@prisma/client" }],
|
|
416
|
+
reads: "Prisma client calls, emits storage-access interactions per read / write."
|
|
417
|
+
};
|
|
412
418
|
var index_default = prismaFramework;
|
|
413
419
|
export {
|
|
420
|
+
declares,
|
|
414
421
|
index_default as default,
|
|
415
422
|
optionsSchema
|
|
416
423
|
};
|
package/dist/rails.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RAILS_ROOT_CLASS_NAMES, default, optionsSchema } from '@suss/framework-rails';
|
|
1
|
+
export { RAILS_ROOT_CLASS_NAMES, declares, default, optionsSchema } from '@suss/framework-rails';
|
package/dist/rails.js
CHANGED
|
@@ -548,9 +548,22 @@ function railsFramework(options = {}) {
|
|
|
548
548
|
discoveryInputs: () => [routesFile]
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
+
var declares = {
|
|
552
|
+
kind: "framework",
|
|
553
|
+
package: "@suss/framework-rails",
|
|
554
|
+
dependencies: [{ ecosystem: "rubygems", name: "rails" }],
|
|
555
|
+
reads: "Rails controller actions (Ruby), bound to the method and path `config/routes.rb` gives each one; an action the routes file does not reach is discovered with no boundary.",
|
|
556
|
+
configuration: {
|
|
557
|
+
file: "suss.rails.json",
|
|
558
|
+
example: { root: "app", routesFile: "config/routes.rb" },
|
|
559
|
+
required: false,
|
|
560
|
+
why: "the app directory a controller is defined under and the routes file suss reads each action's method and path from. rails new scaffolds both at these paths."
|
|
561
|
+
}
|
|
562
|
+
};
|
|
551
563
|
var index_default = railsFramework;
|
|
552
564
|
export {
|
|
553
565
|
RAILS_ROOT_CLASS_NAMES,
|
|
566
|
+
declares,
|
|
554
567
|
index_default as default,
|
|
555
568
|
optionsSchema
|
|
556
569
|
};
|
package/dist/react-query.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-react-query';
|
|
1
|
+
export { declares, default } from '@suss/framework-react-query';
|
package/dist/react-query.js
CHANGED
|
@@ -130,7 +130,14 @@ function reactQueryFramework() {
|
|
|
130
130
|
subUnits: reactQuerySubUnits
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
+
var declares = {
|
|
134
|
+
kind: "framework",
|
|
135
|
+
package: "@suss/framework-react-query",
|
|
136
|
+
dependencies: [{ ecosystem: "npm", name: "@tanstack/react-query" }],
|
|
137
|
+
reads: "TanStack Query hooks: ties a component to the query function its `useQuery` / `useMutation` call runs."
|
|
138
|
+
};
|
|
133
139
|
var index_default = reactQueryFramework;
|
|
134
140
|
export {
|
|
141
|
+
declares,
|
|
135
142
|
index_default as default
|
|
136
143
|
};
|
package/dist/react-router.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-react-router';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-react-router';
|
package/dist/react-router.js
CHANGED
|
@@ -202,8 +202,18 @@ function reactRouterFramework(options = {}) {
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
+
var declares = {
|
|
206
|
+
kind: "framework",
|
|
207
|
+
package: "@suss/framework-react-router",
|
|
208
|
+
dependencies: [
|
|
209
|
+
{ ecosystem: "npm", name: "react-router" },
|
|
210
|
+
{ ecosystem: "npm", name: "react-router-dom" }
|
|
211
|
+
],
|
|
212
|
+
reads: "React Router loaders / actions / routes."
|
|
213
|
+
};
|
|
205
214
|
var index_default = reactRouterFramework;
|
|
206
215
|
export {
|
|
216
|
+
declares,
|
|
207
217
|
index_default as default,
|
|
208
218
|
optionsSchema
|
|
209
219
|
};
|
package/dist/react.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-react';
|
|
1
|
+
export { declares, default } from '@suss/framework-react';
|
package/dist/react.js
CHANGED
|
@@ -304,7 +304,14 @@ function reactFramework() {
|
|
|
304
304
|
]
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
|
+
var declares = {
|
|
308
|
+
kind: "framework",
|
|
309
|
+
package: "@suss/framework-react",
|
|
310
|
+
dependencies: [{ ecosystem: "npm", name: "react" }],
|
|
311
|
+
reads: "React function components, event handlers, `useEffect` bodies."
|
|
312
|
+
};
|
|
307
313
|
var index_default = reactFramework;
|
|
308
314
|
export {
|
|
315
|
+
declares,
|
|
309
316
|
index_default as default
|
|
310
317
|
};
|
package/dist/redis.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-redis';
|
|
1
|
+
export { declares, default } from '@suss/framework-redis';
|
package/dist/redis.js
CHANGED
|
@@ -87,7 +87,18 @@ function redisFramework() {
|
|
|
87
87
|
recognizedAs: "@suss/framework-redis"
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
+
var declares = {
|
|
91
|
+
kind: "effects",
|
|
92
|
+
package: "@suss/framework-redis",
|
|
93
|
+
dependencies: [
|
|
94
|
+
{ ecosystem: "npm", name: "ioredis" },
|
|
95
|
+
{ ecosystem: "npm", name: "iovalkey" },
|
|
96
|
+
{ ecosystem: "npm", name: "redis" }
|
|
97
|
+
],
|
|
98
|
+
reads: "Redis, Valkey and node-redis commands, emits storage-access interactions."
|
|
99
|
+
};
|
|
90
100
|
var index_default = redisFramework;
|
|
91
101
|
export {
|
|
102
|
+
declares,
|
|
92
103
|
index_default as default
|
|
93
104
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { declares, default } from '@suss/client-requests';
|
package/dist/requests.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// ../client/requests/dist/index.js
|
|
2
|
+
var VERB_FUNCTIONS = {
|
|
3
|
+
get: "GET",
|
|
4
|
+
post: "POST",
|
|
5
|
+
put: "PUT",
|
|
6
|
+
patch: "PATCH",
|
|
7
|
+
delete: "DELETE",
|
|
8
|
+
head: "HEAD",
|
|
9
|
+
options: "OPTIONS"
|
|
10
|
+
};
|
|
11
|
+
function requestsClient() {
|
|
12
|
+
return {
|
|
13
|
+
name: "requests",
|
|
14
|
+
protocol: "http",
|
|
15
|
+
discovery: [],
|
|
16
|
+
clients: [
|
|
17
|
+
{
|
|
18
|
+
type: "clientCall",
|
|
19
|
+
importModule: ["requests"],
|
|
20
|
+
verbAttributeNames: VERB_FUNCTIONS,
|
|
21
|
+
// Every one of them takes the URL first, and `url=` is the
|
|
22
|
+
// keyword for all of them but `request`, which takes `url`
|
|
23
|
+
// second and still calls it that.
|
|
24
|
+
url: { position: 0, keyword: "url" },
|
|
25
|
+
methodCall: {
|
|
26
|
+
attribute: "request",
|
|
27
|
+
methodPosition: 0,
|
|
28
|
+
methodKeyword: "method",
|
|
29
|
+
urlPosition: 1
|
|
30
|
+
},
|
|
31
|
+
receiverConstructors: ["Session"],
|
|
32
|
+
// What a caller reads off the response it got back. A test on
|
|
33
|
+
// one of these says which statuses the caller handles.
|
|
34
|
+
response: {
|
|
35
|
+
statusCode: ["status_code"],
|
|
36
|
+
success: ["ok"],
|
|
37
|
+
body: ["json", "text", "content"],
|
|
38
|
+
failureDelivery: "response"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
var declares = {
|
|
45
|
+
kind: "client",
|
|
46
|
+
package: "@suss/client-requests",
|
|
47
|
+
dependencies: [{ ecosystem: "pypi", name: "requests" }],
|
|
48
|
+
reads: "requests call sites (Python): the seven verb functions, `requests.request`, and a `Session`, each bound to the method and path the call states."
|
|
49
|
+
};
|
|
50
|
+
var index_default = requestsClient;
|
|
51
|
+
export {
|
|
52
|
+
declares,
|
|
53
|
+
index_default as default
|
|
54
|
+
};
|
package/dist/sqlalchemy.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, optionsSchema } from '@suss/framework-sqlalchemy';
|
|
1
|
+
export { declares, default, optionsSchema } from '@suss/framework-sqlalchemy';
|
package/dist/sqlalchemy.js
CHANGED
|
@@ -78,8 +78,15 @@ function sqlalchemyFramework(options) {
|
|
|
78
78
|
rawSql: sqlalchemyRawSql(options)
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
+
var declares = {
|
|
82
|
+
kind: "effects",
|
|
83
|
+
package: "@suss/framework-sqlalchemy",
|
|
84
|
+
dependencies: [{ ecosystem: "pypi", name: "sqlalchemy" }],
|
|
85
|
+
reads: `SQLAlchemy calls (Python): says which types a query comes back as and which methods write, and the adapter matches a call chain by resolving through a project's own base class to what the method behind it says it returns.`
|
|
86
|
+
};
|
|
81
87
|
var index_default = sqlalchemyFramework;
|
|
82
88
|
export {
|
|
89
|
+
declares,
|
|
83
90
|
index_default as default,
|
|
84
91
|
optionsSchema
|
|
85
92
|
};
|
package/dist/ts-rest.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-ts-rest';
|
|
1
|
+
export { declares, default } from '@suss/framework-ts-rest';
|
package/dist/ts-rest.js
CHANGED
|
@@ -83,7 +83,14 @@ function tsRestFramework() {
|
|
|
83
83
|
]
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
+
var declares = {
|
|
87
|
+
kind: "framework",
|
|
88
|
+
package: "@suss/framework-ts-rest",
|
|
89
|
+
dependencies: [{ ecosystem: "npm", name: "@ts-rest/core" }],
|
|
90
|
+
reads: "ts-rest providers + clients (contract-backed)."
|
|
91
|
+
};
|
|
86
92
|
var index_default = tsRestFramework;
|
|
87
93
|
export {
|
|
94
|
+
declares,
|
|
88
95
|
index_default as default
|
|
89
96
|
};
|
package/dist/zustand.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@suss/framework-zustand';
|
|
1
|
+
export { declares, default } from '@suss/framework-zustand';
|
package/dist/zustand.js
CHANGED
|
@@ -30,7 +30,14 @@ function zustandFramework() {
|
|
|
30
30
|
recognizedAs: "@suss/framework-zustand"
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
+
var declares = {
|
|
34
|
+
kind: "effects",
|
|
35
|
+
package: "@suss/framework-zustand",
|
|
36
|
+
dependencies: [{ ecosystem: "npm", name: "zustand" }],
|
|
37
|
+
reads: "zustand stores: `setState` writes and `getState` reads against the store as a client-side container."
|
|
38
|
+
};
|
|
33
39
|
var index_default = zustandFramework;
|
|
34
40
|
export {
|
|
41
|
+
declares,
|
|
35
42
|
index_default as default
|
|
36
43
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/packs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"type": "module",
|
|
5
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": [
|
|
@@ -81,6 +81,18 @@
|
|
|
81
81
|
"types": "./dist/drizzle.d.ts",
|
|
82
82
|
"import": "./dist/drizzle.js"
|
|
83
83
|
},
|
|
84
|
+
"./aiohttp": {
|
|
85
|
+
"types": "./dist/aiohttp.d.ts",
|
|
86
|
+
"import": "./dist/aiohttp.js"
|
|
87
|
+
},
|
|
88
|
+
"./faraday": {
|
|
89
|
+
"types": "./dist/faraday.d.ts",
|
|
90
|
+
"import": "./dist/faraday.js"
|
|
91
|
+
},
|
|
92
|
+
"./httpx": {
|
|
93
|
+
"types": "./dist/httpx.d.ts",
|
|
94
|
+
"import": "./dist/httpx.js"
|
|
95
|
+
},
|
|
84
96
|
"./express": {
|
|
85
97
|
"types": "./dist/express.d.ts",
|
|
86
98
|
"import": "./dist/express.js"
|
|
@@ -117,6 +129,10 @@
|
|
|
117
129
|
"types": "./dist/mongoose.d.ts",
|
|
118
130
|
"import": "./dist/mongoose.js"
|
|
119
131
|
},
|
|
132
|
+
"./net-http": {
|
|
133
|
+
"types": "./dist/net-http.d.ts",
|
|
134
|
+
"import": "./dist/net-http.js"
|
|
135
|
+
},
|
|
120
136
|
"./nestjs-graphql": {
|
|
121
137
|
"types": "./dist/nestjs-graphql.d.ts",
|
|
122
138
|
"import": "./dist/nestjs-graphql.js"
|
|
@@ -149,6 +165,10 @@
|
|
|
149
165
|
"types": "./dist/rails.d.ts",
|
|
150
166
|
"import": "./dist/rails.js"
|
|
151
167
|
},
|
|
168
|
+
"./requests": {
|
|
169
|
+
"types": "./dist/requests.d.ts",
|
|
170
|
+
"import": "./dist/requests.js"
|
|
171
|
+
},
|
|
152
172
|
"./react": {
|
|
153
173
|
"types": "./dist/react.d.ts",
|
|
154
174
|
"import": "./dist/react.js"
|
|
@@ -194,20 +214,25 @@
|
|
|
194
214
|
"ts-morph": "^23.0.0"
|
|
195
215
|
},
|
|
196
216
|
"dependencies": {
|
|
197
|
-
"@suss/adapter-python": "0.
|
|
198
|
-
"@suss/adapter-ruby": "0.
|
|
199
|
-
"@suss/adapter-typescript": "0.
|
|
200
|
-
"@suss/behavioral-ir": "0.
|
|
201
|
-
"@suss/contract-graphql": "0.
|
|
202
|
-
"@suss/extractor": "0.
|
|
203
|
-
"@suss/manifest-aws": "0.
|
|
204
|
-
"@suss/recognize": "0.
|
|
205
|
-
"@suss/sql": "0.
|
|
217
|
+
"@suss/adapter-python": "0.24.0",
|
|
218
|
+
"@suss/adapter-ruby": "0.24.0",
|
|
219
|
+
"@suss/adapter-typescript": "0.24.0",
|
|
220
|
+
"@suss/behavioral-ir": "0.24.0",
|
|
221
|
+
"@suss/contract-graphql": "0.24.0",
|
|
222
|
+
"@suss/extractor": "0.24.0",
|
|
223
|
+
"@suss/manifest-aws": "0.24.0",
|
|
224
|
+
"@suss/recognize": "0.24.0",
|
|
225
|
+
"@suss/sql": "0.24.0",
|
|
206
226
|
"zod": "^4.0.0"
|
|
207
227
|
},
|
|
208
228
|
"devDependencies": {
|
|
229
|
+
"@suss/client-aiohttp": "*",
|
|
209
230
|
"@suss/client-apollo": "*",
|
|
210
231
|
"@suss/client-axios": "*",
|
|
232
|
+
"@suss/client-faraday": "*",
|
|
233
|
+
"@suss/client-httpx": "*",
|
|
234
|
+
"@suss/client-net-http": "*",
|
|
235
|
+
"@suss/client-requests": "*",
|
|
211
236
|
"@suss/client-web": "*",
|
|
212
237
|
"@suss/framework-activerecord": "*",
|
|
213
238
|
"@suss/framework-apollo": "*",
|