@webiny/api-event-handler-aws 0.0.0-unstable.7c2def32a7 → 0.0.0-unstable.9609e4e0c9
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.
|
@@ -7,7 +7,7 @@ async function registerWebinyApiChild(container, config) {
|
|
|
7
7
|
await registerApiRequestStack(container, {
|
|
8
8
|
extensions: config.extensions,
|
|
9
9
|
transports: {
|
|
10
|
-
|
|
10
|
+
hostingConfig: (c)=>{
|
|
11
11
|
ManifestPublicUrlsFeature.register(c);
|
|
12
12
|
},
|
|
13
13
|
realtime: (c)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition/registerWebinyApiChild.js","sources":["../../src/composition/registerWebinyApiChild.ts"],"sourcesContent":["import type { Container } from \"@webiny/di\";\nimport { registerApiRequestStack } from \"@webiny/api-event-handler-core\";\nimport { WebsocketsAwsFeature } from \"@webiny/api-websockets-aws\";\nimport { SchedulerAwsFeature } from \"@webiny/api-scheduler-aws\";\nimport { FileManagerS3Feature } from \"@webiny/api-file-manager-s3\";\nimport { ManifestPublicUrlsFeature } from \"~/publicUrls/feature.js\";\nimport type { WebinyApiCompositionConfig } from \"./types.js\";\n\n/**\n * Sets up the per-request CHILD container: the transport-agnostic feature stack (shared with the\n * server transport), with the AWS-specific interleave points supplied as the `transports` adapters.\n *\n * Named for the `child` lifecycle step of `HandlerConfig`, not \"request\", so it matches the contract\n * it implements.\n */\nexport async function registerWebinyApiChild(\n container: Container,\n config: WebinyApiCompositionConfig\n): Promise<void> {\n await registerApiRequestStack(container, {\n extensions: config.extensions,\n transports: {\n // Public URLs: written to the service manifest by the `api` and `admin` Pulumi apps.\n
|
|
1
|
+
{"version":3,"file":"composition/registerWebinyApiChild.js","sources":["../../src/composition/registerWebinyApiChild.ts"],"sourcesContent":["import type { Container } from \"@webiny/di\";\nimport { registerApiRequestStack } from \"@webiny/api-event-handler-core\";\nimport { WebsocketsAwsFeature } from \"@webiny/api-websockets-aws\";\nimport { SchedulerAwsFeature } from \"@webiny/api-scheduler-aws\";\nimport { FileManagerS3Feature } from \"@webiny/api-file-manager-s3\";\nimport { ManifestPublicUrlsFeature } from \"~/publicUrls/feature.js\";\nimport type { WebinyApiCompositionConfig } from \"./types.js\";\n\n/**\n * Sets up the per-request CHILD container: the transport-agnostic feature stack (shared with the\n * server transport), with the AWS-specific interleave points supplied as the `transports` adapters.\n *\n * Named for the `child` lifecycle step of `HandlerConfig`, not \"request\", so it matches the contract\n * it implements.\n */\nexport async function registerWebinyApiChild(\n container: Container,\n config: WebinyApiCompositionConfig\n): Promise<void> {\n await registerApiRequestStack(container, {\n extensions: config.extensions,\n transports: {\n // Public URLs: written to the service manifest by the `api` and `admin` Pulumi apps.\n // Encryption and hashing keep api-core's build-param defaults.\n hostingConfig: c => {\n ManifestPublicUrlsFeature.register(c);\n },\n // Real AWS WebSocket transport (API Gateway Management API), registered right after\n // WebsocketsFeature so it overrides the NullWebsocketsTransport.\n realtime: c => {\n WebsocketsAwsFeature.register(c);\n },\n // Scheduler transport: the scheduler-aws extension (EventBridge Scheduler).\n scheduler: c => {\n SchedulerAwsFeature.register(c);\n },\n // File-manager storage transport: S3 (asset delivery + S3 file operations + schema).\n fileManager: c => {\n FileManagerS3Feature.register(c, {});\n }\n }\n });\n}\n"],"names":["registerWebinyApiChild","container","config","registerApiRequestStack","c","ManifestPublicUrlsFeature","WebsocketsAwsFeature","SchedulerAwsFeature","FileManagerS3Feature"],"mappings":";;;;;AAeO,eAAeA,uBAClBC,SAAoB,EACpBC,MAAkC;IAElC,MAAMC,wBAAwBF,WAAW;QACrC,YAAYC,OAAO,UAAU;QAC7B,YAAY;YAGR,eAAeE,CAAAA;gBACXC,0BAA0B,QAAQ,CAACD;YACvC;YAGA,UAAUA,CAAAA;gBACNE,qBAAqB,QAAQ,CAACF;YAClC;YAEA,WAAWA,CAAAA;gBACPG,oBAAoB,QAAQ,CAACH;YACjC;YAEA,aAAaA,CAAAA;gBACTI,qBAAqB,QAAQ,CAACJ,GAAG,CAAC;YACtC;QACJ;IACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-event-handler-aws",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.9609e4e0c9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,31 +18,31 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@webiny/api-core": "0.0.0-unstable.
|
|
22
|
-
"@webiny/api-event-handler-core": "0.0.0-unstable.
|
|
23
|
-
"@webiny/api-file-manager-s3": "0.0.0-unstable.
|
|
24
|
-
"@webiny/api-graphql": "0.0.0-unstable.
|
|
25
|
-
"@webiny/api-headless-cms-bulk-actions-aws": "0.0.0-unstable.
|
|
26
|
-
"@webiny/api-scheduler": "0.0.0-unstable.
|
|
27
|
-
"@webiny/api-scheduler-aws": "0.0.0-unstable.
|
|
28
|
-
"@webiny/api-websockets-aws": "0.0.0-unstable.
|
|
29
|
-
"@webiny/aws-sdk": "0.0.0-unstable.
|
|
30
|
-
"@webiny/background-tasks-aws": "0.0.0-unstable.
|
|
31
|
-
"@webiny/db-dynamodb": "0.0.0-unstable.
|
|
32
|
-
"@webiny/event-handler-aws": "0.0.0-unstable.
|
|
33
|
-
"@webiny/event-handler-core": "0.0.0-unstable.
|
|
34
|
-
"@webiny/feature": "0.0.0-unstable.
|
|
35
|
-
"@webiny/handler": "0.0.0-unstable.
|
|
21
|
+
"@webiny/api-core": "0.0.0-unstable.9609e4e0c9",
|
|
22
|
+
"@webiny/api-event-handler-core": "0.0.0-unstable.9609e4e0c9",
|
|
23
|
+
"@webiny/api-file-manager-s3": "0.0.0-unstable.9609e4e0c9",
|
|
24
|
+
"@webiny/api-graphql": "0.0.0-unstable.9609e4e0c9",
|
|
25
|
+
"@webiny/api-headless-cms-bulk-actions-aws": "0.0.0-unstable.9609e4e0c9",
|
|
26
|
+
"@webiny/api-scheduler": "0.0.0-unstable.9609e4e0c9",
|
|
27
|
+
"@webiny/api-scheduler-aws": "0.0.0-unstable.9609e4e0c9",
|
|
28
|
+
"@webiny/api-websockets-aws": "0.0.0-unstable.9609e4e0c9",
|
|
29
|
+
"@webiny/aws-sdk": "0.0.0-unstable.9609e4e0c9",
|
|
30
|
+
"@webiny/background-tasks-aws": "0.0.0-unstable.9609e4e0c9",
|
|
31
|
+
"@webiny/db-dynamodb": "0.0.0-unstable.9609e4e0c9",
|
|
32
|
+
"@webiny/event-handler-aws": "0.0.0-unstable.9609e4e0c9",
|
|
33
|
+
"@webiny/event-handler-core": "0.0.0-unstable.9609e4e0c9",
|
|
34
|
+
"@webiny/feature": "0.0.0-unstable.9609e4e0c9",
|
|
35
|
+
"@webiny/handler": "0.0.0-unstable.9609e4e0c9"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@webiny/di": "^2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@webiny/build-tools": "0.0.0-unstable.
|
|
41
|
+
"@webiny/build-tools": "0.0.0-unstable.9609e4e0c9",
|
|
42
42
|
"@webiny/di": "2.0.0",
|
|
43
43
|
"rimraf": "6.1.3",
|
|
44
44
|
"typescript": "7.0.2",
|
|
45
|
-
"vitest": "
|
|
45
|
+
"vitest": "5.0.5"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|