@pwrdrvr/microapps-cdk 0.0.29 → 0.2.6
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/.jsii +3108 -1362
- package/API.md +240 -53
- package/README.md +236 -135
- package/lib/MicroApps.d.ts +86 -50
- package/lib/MicroApps.js +30 -16
- package/lib/MicroAppsAPIGwy.d.ts +42 -37
- package/lib/MicroAppsAPIGwy.js +19 -18
- package/lib/MicroAppsCF.d.ts +115 -57
- package/lib/MicroAppsCF.js +31 -21
- package/lib/MicroAppsS3.d.ts +51 -46
- package/lib/MicroAppsS3.js +23 -22
- package/lib/MicroAppsSvcs.d.ts +123 -44
- package/lib/MicroAppsSvcs.js +112 -42
- package/lib/microapps-deployer/index.js +93 -89
- package/lib/microapps-deployer/index.js.map +3 -3
- package/lib/microapps-router/index.js.map +2 -2
- package/package.json +15 -36
- package/patches/@aws-cdk+aws-apigatewayv2-alpha+2.8.0-alpha.0.patch +39 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "MicroApps framework, by PwrDrvr LLC, delivered as an AWS CDK construct that provides the DynamoDB, Router service, Deploy service, API Gateway, and CloudFront distribution.",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "
|
|
6
|
+
"url": "https://github.com/pwrdrvr/microapps-core"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "npx projen build",
|
|
@@ -36,10 +36,12 @@
|
|
|
36
36
|
"organization": false
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@aws-cdk/assert": "^
|
|
39
|
+
"@aws-cdk/assert": "^2.8.0",
|
|
40
|
+
"@aws-cdk/aws-apigatewayv2-alpha": "2.8.0-alpha.0",
|
|
40
41
|
"@types/node": "^12.0.0",
|
|
41
42
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
42
43
|
"@typescript-eslint/parser": "^4.33.0",
|
|
44
|
+
"aws-cdk-lib": "^2.8.0",
|
|
43
45
|
"esbuild": "^0.14.11",
|
|
44
46
|
"eslint": "^7.32.0",
|
|
45
47
|
"eslint-import-resolver-node": "^0.3.6",
|
|
@@ -51,60 +53,37 @@
|
|
|
51
53
|
"jsii-pacmak": "^1.52.1",
|
|
52
54
|
"json-schema": "^0.4.0",
|
|
53
55
|
"npm-check-updates": "^11",
|
|
56
|
+
"patch-package": "^6.4.7",
|
|
54
57
|
"projen": "0.34.20",
|
|
55
58
|
"standard-version": "^9",
|
|
56
59
|
"typescript": "^4.5.4"
|
|
57
60
|
},
|
|
58
61
|
"peerDependencies": {
|
|
59
|
-
"@aws-cdk/aws-apigatewayv2": "
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"@aws-cdk/aws-cloudfront": "^1.135.0",
|
|
63
|
-
"@aws-cdk/aws-cloudfront-origins": "^1.135.0",
|
|
64
|
-
"@aws-cdk/aws-dynamodb": "^1.135.0",
|
|
65
|
-
"@aws-cdk/aws-ecr": "^1.135.0",
|
|
66
|
-
"@aws-cdk/aws-iam": "^1.135.0",
|
|
67
|
-
"@aws-cdk/aws-lambda": "^1.135.0",
|
|
68
|
-
"@aws-cdk/aws-lambda-nodejs": "^1.135.0",
|
|
69
|
-
"@aws-cdk/aws-logs": "^1.135.0",
|
|
70
|
-
"@aws-cdk/aws-route53": "^1.135.0",
|
|
71
|
-
"@aws-cdk/aws-route53-targets": "^1.135.0",
|
|
72
|
-
"@aws-cdk/aws-s3": "^1.135.0",
|
|
73
|
-
"@aws-cdk/core": "^1.135.0",
|
|
74
|
-
"constructs": "^3.2.27"
|
|
62
|
+
"@aws-cdk/aws-apigatewayv2-alpha": "2.8.0-alpha.0",
|
|
63
|
+
"aws-cdk-lib": "^2.8.0",
|
|
64
|
+
"constructs": "^10.0.5"
|
|
75
65
|
},
|
|
76
66
|
"dependencies": {
|
|
77
|
-
"
|
|
78
|
-
"@aws-cdk/aws-apigatewayv2-integrations": "^1.135.0",
|
|
79
|
-
"@aws-cdk/aws-certificatemanager": "^1.135.0",
|
|
80
|
-
"@aws-cdk/aws-cloudfront": "^1.135.0",
|
|
81
|
-
"@aws-cdk/aws-cloudfront-origins": "^1.135.0",
|
|
82
|
-
"@aws-cdk/aws-dynamodb": "^1.135.0",
|
|
83
|
-
"@aws-cdk/aws-ecr": "^1.135.0",
|
|
84
|
-
"@aws-cdk/aws-iam": "^1.135.0",
|
|
85
|
-
"@aws-cdk/aws-lambda": "^1.135.0",
|
|
86
|
-
"@aws-cdk/aws-lambda-nodejs": "^1.135.0",
|
|
87
|
-
"@aws-cdk/aws-logs": "^1.135.0",
|
|
88
|
-
"@aws-cdk/aws-route53": "^1.135.0",
|
|
89
|
-
"@aws-cdk/aws-route53-targets": "^1.135.0",
|
|
90
|
-
"@aws-cdk/aws-s3": "^1.135.0",
|
|
91
|
-
"@aws-cdk/core": "^1.135.0"
|
|
67
|
+
"aws-cdk-lib": "^2.8.0"
|
|
92
68
|
},
|
|
93
69
|
"bundledDependencies": [],
|
|
94
70
|
"keywords": [
|
|
95
|
-
"
|
|
71
|
+
"awscdk",
|
|
72
|
+
"cdk",
|
|
73
|
+
"microapps"
|
|
96
74
|
],
|
|
97
75
|
"engines": {
|
|
98
76
|
"node": ">= 12.0.0"
|
|
99
77
|
},
|
|
100
78
|
"main": "lib/index.js",
|
|
101
79
|
"license": "MIT",
|
|
80
|
+
"homepage": "https://github.com/pwrdrvr/microapps-core",
|
|
102
81
|
"publishConfig": {
|
|
103
82
|
"access": "public"
|
|
104
83
|
},
|
|
105
|
-
"version": "0.
|
|
84
|
+
"version": "0.2.6",
|
|
106
85
|
"types": "lib/index.d.ts",
|
|
107
|
-
"stability": "
|
|
86
|
+
"stability": "experimental",
|
|
108
87
|
"jsii": {
|
|
109
88
|
"outdir": "dist",
|
|
110
89
|
"targets": {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
diff --git a/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/integration.d.ts b/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/integration.d.ts
|
|
2
|
+
index ed6a643..415d1ce 100644
|
|
3
|
+
--- a/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/integration.d.ts
|
|
4
|
+
+++ b/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/integration.d.ts
|
|
5
|
+
@@ -339,7 +339,7 @@ export interface HttpRouteIntegrationBindOptions {
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class HttpRouteIntegration {
|
|
8
|
+
private readonly id;
|
|
9
|
+
- private integration?;
|
|
10
|
+
+ protected integration?: HttpIntegration;
|
|
11
|
+
/**
|
|
12
|
+
* (experimental) Initialize an integration for a route on http api.
|
|
13
|
+
*
|
|
14
|
+
diff --git a/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.d.ts b/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.d.ts
|
|
15
|
+
index 7bd7dd9..9d297b9 100644
|
|
16
|
+
--- a/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.d.ts
|
|
17
|
+
+++ b/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.d.ts
|
|
18
|
+
@@ -241,7 +241,7 @@ export declare class HttpRoute extends Resource implements IHttpRoute {
|
|
19
|
+
* @experimental
|
|
20
|
+
*/
|
|
21
|
+
constructor(scope: Construct, id: string, props: HttpRouteProps);
|
|
22
|
+
- private produceRouteArn;
|
|
23
|
+
+ public produceRouteArn(method: HttpMethod): string;
|
|
24
|
+
/**
|
|
25
|
+
* (experimental) Grant access to invoke the route.
|
|
26
|
+
*
|
|
27
|
+
diff --git a/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.js b/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.js
|
|
28
|
+
index 0fa1475..72d6d28 100644
|
|
29
|
+
--- a/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.js
|
|
30
|
+
+++ b/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.js
|
|
31
|
+
@@ -145,7 +145,7 @@ class HttpRoute extends aws_cdk_lib_1.Resource {
|
|
32
|
+
grantInvoke(grantee, options = {}) {
|
|
33
|
+
var _c;
|
|
34
|
+
jsiiDeprecationWarnings._aws_cdk_aws_apigatewayv2_alpha_GrantInvokeOptions(options);
|
|
35
|
+
- if (!this.authBindResult || this.authBindResult.authorizationType !== HttpRouteAuthorizationType.AWS_IAM) {
|
|
36
|
+
+ if (this.authBindResult && this.authBindResult.authorizationType !== HttpRouteAuthorizationType.AWS_IAM) {
|
|
37
|
+
throw new Error('To use grantInvoke, you must use IAM authorization');
|
|
38
|
+
}
|
|
39
|
+
const httpMethods = Array.from(new Set((_c = options.httpMethods) !== null && _c !== void 0 ? _c : [this.method]));
|