@goldstack/template-lambda-http-cli 0.5.120 → 0.5.121
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,21 +7,21 @@ import type { TerraformDeployment } from '@goldstack/utils-terraform';
|
|
|
7
7
|
* The domain name that the API should be deployed to (e.g. api.mysite.com)
|
|
8
8
|
*
|
|
9
9
|
* @title API Domain
|
|
10
|
-
* @pattern ^[^\s]
|
|
10
|
+
* @pattern ^[^\s]*$
|
|
11
11
|
*/
|
|
12
12
|
export type APIDomain = string;
|
|
13
13
|
/**
|
|
14
14
|
* The domain name of the Route 53 hosted zone that the domain for this API should be added to.
|
|
15
15
|
*
|
|
16
16
|
* @title Hosted Zone Domain
|
|
17
|
-
* @pattern ^[^\s]
|
|
17
|
+
* @pattern ^[^\s]*$
|
|
18
18
|
*/
|
|
19
19
|
export type HostedZoneDomain = string;
|
|
20
20
|
/**
|
|
21
|
-
* Optional URL for an UI that should be allowed to access this server.
|
|
21
|
+
* Optional URL for an UI that should be allowed to access this server. Must be either `*` or an `http://` or `https://` URL.
|
|
22
22
|
*
|
|
23
23
|
* @title CORS Header
|
|
24
|
-
* @pattern ^[^\s]
|
|
24
|
+
* @pattern ^(\*|https?://[^\s]+)?$
|
|
25
25
|
*/
|
|
26
26
|
export type CorsHeader = string;
|
|
27
27
|
export interface ThisDeploymentConfiguration extends DeploymentConfiguration, LambdaDeploymentConfiguration {
|
package/docs/index.html
CHANGED
|
@@ -112,8 +112,10 @@
|
|
|
112
112
|
is hosted on a different domain to access this API. For instance, for a UI
|
|
113
113
|
that is deployed to the domain
|
|
114
114
|
<code class="inline">ui.mydomain.com</code> the CORS header
|
|
115
|
-
<code class="inline">https://ui.mydomain.com</code> should be supplied.
|
|
116
|
-
|
|
115
|
+
<code class="inline">https://ui.mydomain.com</code> should be supplied.
|
|
116
|
+
The value must be either <code class="inline">*</code> to allow all
|
|
117
|
+
origins or an <code class="inline">http://</code> or
|
|
118
|
+
<code class="inline">https://</code> URL. To learn more about CORS, see the
|
|
117
119
|
<a
|
|
118
120
|
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS"
|
|
119
121
|
class="absolute"
|
|
@@ -50,8 +50,10 @@
|
|
|
50
50
|
is hosted on a different domain to access this API. For instance, for a UI
|
|
51
51
|
that is deployed to the domain
|
|
52
52
|
<code class="inline">ui.mydomain.com</code> the CORS header
|
|
53
|
-
<code class="inline">https://ui.mydomain.com</code> should be supplied.
|
|
54
|
-
|
|
53
|
+
<code class="inline">https://ui.mydomain.com</code> should be supplied.
|
|
54
|
+
The value must be either <code class="inline">*</code> to allow all
|
|
55
|
+
origins or an <code class="inline">http://</code> or
|
|
56
|
+
<code class="inline">https://</code> URL. To learn more about CORS, see the
|
|
55
57
|
<a
|
|
56
58
|
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS"
|
|
57
59
|
class="absolute"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/template-lambda-http-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.121",
|
|
4
4
|
"description": "Utilities for templates that allow a Lambda to function as a web server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@goldstack/infra": "0.4.51",
|
|
50
50
|
"@goldstack/infra-aws": "0.4.80",
|
|
51
|
-
"@goldstack/template-lambda-cli": "0.1.
|
|
52
|
-
"@goldstack/utils-aws-lambda": "0.3.
|
|
51
|
+
"@goldstack/template-lambda-cli": "0.1.91",
|
|
52
|
+
"@goldstack/utils-aws-lambda": "0.3.95",
|
|
53
53
|
"@goldstack/utils-cli": "0.3.40",
|
|
54
54
|
"@goldstack/utils-config": "0.4.51",
|
|
55
55
|
"@goldstack/utils-log": "0.3.43",
|