@stacksjs/types 0.58.64 → 0.58.66
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/package.json +2 -2
- package/src/cloud.ts +16 -0
- package/src/index.ts +1 -0
- package/src/request.ts +3 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.66",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"vite-plugin-pwa": "^0.18.1",
|
|
79
79
|
"vite-ssg": "^0.23.6",
|
|
80
80
|
"vitepress": "1.0.0-rc.42",
|
|
81
|
-
"vue": "^3.4.
|
|
81
|
+
"vue": "^3.4.19"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"aws-cdk-lib": "^2.127.0",
|
package/src/cloud.ts
CHANGED
|
@@ -28,6 +28,8 @@ export type CountryCode =
|
|
|
28
28
|
| 'YE' | 'YT'
|
|
29
29
|
| 'ZA' | 'ZM' | 'ZW'
|
|
30
30
|
|
|
31
|
+
type Environment = 'development' | 'staging' | 'production'
|
|
32
|
+
|
|
31
33
|
export interface CloudOptions {
|
|
32
34
|
driver: 'aws'
|
|
33
35
|
|
|
@@ -57,6 +59,18 @@ export interface CloudOptions {
|
|
|
57
59
|
*/
|
|
58
60
|
firewall: FirewallConfig
|
|
59
61
|
|
|
62
|
+
/**
|
|
63
|
+
* **Environments**
|
|
64
|
+
*
|
|
65
|
+
* These are the environments that your cloud will deploy.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* environments: ['production', 'staging', 'development']
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
environments: Environment[]
|
|
73
|
+
|
|
60
74
|
cdn: {
|
|
61
75
|
allowedMethods: 'GET_HEAD' | 'GET_HEAD_OPTIONS' | 'ALL'
|
|
62
76
|
cachedMethods: 'GET_HEAD' | 'GET_HEAD_OPTIONS'
|
|
@@ -67,11 +81,13 @@ export interface CloudOptions {
|
|
|
67
81
|
priceClass?: 'PriceClass_100' | 'PriceClass_200' | 'PriceClass_All'
|
|
68
82
|
originShieldRegion: string
|
|
69
83
|
cookieBehavior: 'none' | 'allowList' | 'all'
|
|
84
|
+
|
|
70
85
|
allowList: {
|
|
71
86
|
cookies: string[]
|
|
72
87
|
headers: string[]
|
|
73
88
|
queryStrings: string[]
|
|
74
89
|
}
|
|
90
|
+
|
|
75
91
|
realtimeLogs: {
|
|
76
92
|
enabled: boolean
|
|
77
93
|
samplingRate: number
|
package/src/index.ts
CHANGED
package/src/request.ts
ADDED