eddev 2.0.0-beta.143 → 2.0.0-beta.144
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/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/project/config.d.ts +67 -60
- package/dist/node/project/config.d.ts.map +1 -1
- package/dist/node/project/config.js +4 -0
- package/dist/node/types/block-type.d.ts +16 -16
- package/dist/node/types/view-type.d.ts +7 -7
- package/package.json +1 -1
- package/dist/app/server/define-server-config.d.ts +0 -1
- package/dist/app/server/define-server-config.d.ts.map +0 -1
- package/dist/app/server/define-server-config.js +0 -1
- package/dist/app/server/server-config.d.ts +0 -1
- package/dist/app/server/server-config.d.ts.map +0 -1
- package/dist/app/server/server-config.js +0 -1
- package/dist/app/server/utils/content-security-policy.d.ts +0 -17
- package/dist/app/server/utils/content-security-policy.d.ts.map +0 -1
- package/dist/app/server/utils/content-security-policy.js +0 -41
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-beta.
|
|
1
|
+
export declare const VERSION = "2.0.0-beta.144";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.0.0-beta.
|
|
1
|
+
export const VERSION = "2.0.0-beta.144";
|
|
@@ -9,20 +9,20 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
9
9
|
provider: z.ZodLiteral<"ga4">;
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
provider: "ga4";
|
|
13
12
|
id: string;
|
|
14
|
-
}, {
|
|
15
13
|
provider: "ga4";
|
|
14
|
+
}, {
|
|
16
15
|
id: string;
|
|
16
|
+
provider: "ga4";
|
|
17
17
|
}>, z.ZodObject<{
|
|
18
18
|
provider: z.ZodLiteral<"gtm">;
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
provider: "gtm";
|
|
22
21
|
id: string;
|
|
23
|
-
}, {
|
|
24
22
|
provider: "gtm";
|
|
23
|
+
}, {
|
|
25
24
|
id: string;
|
|
25
|
+
provider: "gtm";
|
|
26
26
|
}>]>, "many">>;
|
|
27
27
|
serverless: z.ZodObject<{
|
|
28
28
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -50,31 +50,35 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
50
50
|
autoDetect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
51
51
|
nonce: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
52
52
|
commonOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
53
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
nonce: boolean;
|
|
54
56
|
enabled: boolean;
|
|
55
57
|
autoDetect: boolean;
|
|
56
|
-
|
|
58
|
+
values?: Record<string, string> | undefined;
|
|
57
59
|
commonOrigins?: string[] | undefined;
|
|
58
60
|
}, {
|
|
59
61
|
enabled: boolean;
|
|
60
|
-
|
|
62
|
+
values?: Record<string, string> | undefined;
|
|
61
63
|
nonce?: boolean | undefined;
|
|
64
|
+
autoDetect?: boolean | undefined;
|
|
62
65
|
commonOrigins?: string[] | undefined;
|
|
63
66
|
}>>;
|
|
64
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
plugins: "proxy" | "remote";
|
|
65
69
|
enabled: boolean;
|
|
66
70
|
uploads: "proxy" | "remote";
|
|
67
|
-
|
|
68
|
-
admin: "proxy" | "hide";
|
|
71
|
+
admin: "hide" | "proxy";
|
|
69
72
|
originProtection: {
|
|
70
73
|
requireLogin: boolean;
|
|
71
74
|
};
|
|
72
75
|
themeAssets: string[];
|
|
73
76
|
endpoints: Record<string, string>;
|
|
74
77
|
csp: {
|
|
78
|
+
nonce: boolean;
|
|
75
79
|
enabled: boolean;
|
|
76
80
|
autoDetect: boolean;
|
|
77
|
-
|
|
81
|
+
values?: Record<string, string> | undefined;
|
|
78
82
|
commonOrigins?: string[] | undefined;
|
|
79
83
|
};
|
|
80
84
|
cors?: {
|
|
@@ -83,9 +87,9 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
83
87
|
}, {
|
|
84
88
|
uploads: "proxy" | "remote";
|
|
85
89
|
endpoints: Record<string, string>;
|
|
86
|
-
enabled?: boolean | undefined;
|
|
87
90
|
plugins?: "proxy" | "remote" | undefined;
|
|
88
|
-
|
|
91
|
+
enabled?: boolean | undefined;
|
|
92
|
+
admin?: "hide" | "proxy" | undefined;
|
|
89
93
|
originProtection?: {
|
|
90
94
|
requireLogin?: boolean | undefined;
|
|
91
95
|
} | undefined;
|
|
@@ -95,8 +99,9 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
95
99
|
} | undefined;
|
|
96
100
|
csp?: {
|
|
97
101
|
enabled: boolean;
|
|
98
|
-
|
|
102
|
+
values?: Record<string, string> | undefined;
|
|
99
103
|
nonce?: boolean | undefined;
|
|
104
|
+
autoDetect?: boolean | undefined;
|
|
100
105
|
commonOrigins?: string[] | undefined;
|
|
101
106
|
} | undefined;
|
|
102
107
|
}>;
|
|
@@ -119,37 +124,37 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
119
124
|
dataCache: z.ZodDefault<z.ZodEnum<["in-memory", "kv", "none"]>>;
|
|
120
125
|
}, "strip", z.ZodTypeAny, {
|
|
121
126
|
isr: boolean;
|
|
122
|
-
dataCache: "
|
|
127
|
+
dataCache: "none" | "in-memory" | "kv";
|
|
123
128
|
}, {
|
|
124
129
|
isr?: boolean | undefined;
|
|
125
|
-
dataCache?: "
|
|
130
|
+
dataCache?: "none" | "in-memory" | "kv" | undefined;
|
|
126
131
|
}>>>;
|
|
127
132
|
pageDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
128
133
|
appDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
129
134
|
queryHooksTTL: z.ZodDefault<z.ZodNumber>;
|
|
130
135
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
serverless: {
|
|
132
|
-
isr: boolean;
|
|
133
|
-
dataCache: "in-memory" | "kv" | "none";
|
|
134
|
-
};
|
|
135
136
|
wordpress: {
|
|
136
137
|
strategy: "always" | "ssr-always-fresh";
|
|
137
138
|
cacheHeaders: boolean;
|
|
138
139
|
transients: boolean;
|
|
139
140
|
};
|
|
141
|
+
serverless: {
|
|
142
|
+
isr: boolean;
|
|
143
|
+
dataCache: "none" | "in-memory" | "kv";
|
|
144
|
+
};
|
|
140
145
|
pageDataTTL: number;
|
|
141
146
|
appDataTTL: number;
|
|
142
147
|
queryHooksTTL: number;
|
|
143
148
|
}, {
|
|
144
|
-
serverless?: {
|
|
145
|
-
isr?: boolean | undefined;
|
|
146
|
-
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
147
|
-
} | undefined;
|
|
148
149
|
wordpress?: {
|
|
149
150
|
strategy: "always" | "ssr-always-fresh";
|
|
150
151
|
cacheHeaders?: boolean | undefined;
|
|
151
152
|
transients?: boolean | undefined;
|
|
152
153
|
} | undefined;
|
|
154
|
+
serverless?: {
|
|
155
|
+
isr?: boolean | undefined;
|
|
156
|
+
dataCache?: "none" | "in-memory" | "kv" | undefined;
|
|
157
|
+
} | undefined;
|
|
153
158
|
pageDataTTL?: number | undefined;
|
|
154
159
|
appDataTTL?: number | undefined;
|
|
155
160
|
queryHooksTTL?: number | undefined;
|
|
@@ -157,59 +162,60 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
157
162
|
devUI: z.ZodDefault<z.ZodEnum<["disabled", "enabled"]>>;
|
|
158
163
|
}, "strip", z.ZodTypeAny, {
|
|
159
164
|
version: "2";
|
|
165
|
+
cache: Record<string, {
|
|
166
|
+
wordpress: {
|
|
167
|
+
strategy: "always" | "ssr-always-fresh";
|
|
168
|
+
cacheHeaders: boolean;
|
|
169
|
+
transients: boolean;
|
|
170
|
+
};
|
|
171
|
+
serverless: {
|
|
172
|
+
isr: boolean;
|
|
173
|
+
dataCache: "none" | "in-memory" | "kv";
|
|
174
|
+
};
|
|
175
|
+
pageDataTTL: number;
|
|
176
|
+
appDataTTL: number;
|
|
177
|
+
queryHooksTTL: number;
|
|
178
|
+
}>;
|
|
160
179
|
legacyMetadata: boolean;
|
|
161
180
|
legacyStitches: boolean;
|
|
162
181
|
serverless: {
|
|
182
|
+
plugins: "proxy" | "remote";
|
|
163
183
|
enabled: boolean;
|
|
164
184
|
uploads: "proxy" | "remote";
|
|
165
|
-
|
|
166
|
-
admin: "proxy" | "hide";
|
|
185
|
+
admin: "hide" | "proxy";
|
|
167
186
|
originProtection: {
|
|
168
187
|
requireLogin: boolean;
|
|
169
188
|
};
|
|
170
189
|
themeAssets: string[];
|
|
171
190
|
endpoints: Record<string, string>;
|
|
172
191
|
csp: {
|
|
192
|
+
nonce: boolean;
|
|
173
193
|
enabled: boolean;
|
|
174
194
|
autoDetect: boolean;
|
|
175
|
-
|
|
195
|
+
values?: Record<string, string> | undefined;
|
|
176
196
|
commonOrigins?: string[] | undefined;
|
|
177
197
|
};
|
|
178
198
|
cors?: {
|
|
179
199
|
origins?: string[] | undefined;
|
|
180
200
|
} | undefined;
|
|
181
201
|
};
|
|
182
|
-
|
|
183
|
-
serverless: {
|
|
184
|
-
isr: boolean;
|
|
185
|
-
dataCache: "in-memory" | "kv" | "none";
|
|
186
|
-
};
|
|
187
|
-
wordpress: {
|
|
188
|
-
strategy: "always" | "ssr-always-fresh";
|
|
189
|
-
cacheHeaders: boolean;
|
|
190
|
-
transients: boolean;
|
|
191
|
-
};
|
|
192
|
-
pageDataTTL: number;
|
|
193
|
-
appDataTTL: number;
|
|
194
|
-
queryHooksTTL: number;
|
|
195
|
-
}>;
|
|
196
|
-
devUI: "enabled" | "disabled";
|
|
202
|
+
devUI: "disabled" | "enabled";
|
|
197
203
|
$schema?: string | undefined;
|
|
198
204
|
trackers?: ({
|
|
199
|
-
provider: "ga4";
|
|
200
205
|
id: string;
|
|
206
|
+
provider: "ga4";
|
|
201
207
|
} | {
|
|
202
|
-
provider: "gtm";
|
|
203
208
|
id: string;
|
|
209
|
+
provider: "gtm";
|
|
204
210
|
})[] | undefined;
|
|
205
211
|
}, {
|
|
206
212
|
version: "1" | "2";
|
|
207
213
|
serverless: {
|
|
208
214
|
uploads: "proxy" | "remote";
|
|
209
215
|
endpoints: Record<string, string>;
|
|
210
|
-
enabled?: boolean | undefined;
|
|
211
216
|
plugins?: "proxy" | "remote" | undefined;
|
|
212
|
-
|
|
217
|
+
enabled?: boolean | undefined;
|
|
218
|
+
admin?: "hide" | "proxy" | undefined;
|
|
213
219
|
originProtection?: {
|
|
214
220
|
requireLogin?: boolean | undefined;
|
|
215
221
|
} | undefined;
|
|
@@ -219,36 +225,37 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
219
225
|
} | undefined;
|
|
220
226
|
csp?: {
|
|
221
227
|
enabled: boolean;
|
|
222
|
-
|
|
228
|
+
values?: Record<string, string> | undefined;
|
|
223
229
|
nonce?: boolean | undefined;
|
|
230
|
+
autoDetect?: boolean | undefined;
|
|
224
231
|
commonOrigins?: string[] | undefined;
|
|
225
232
|
} | undefined;
|
|
226
233
|
};
|
|
227
|
-
$schema?: string | undefined;
|
|
228
|
-
legacyMetadata?: boolean | undefined;
|
|
229
|
-
legacyStitches?: boolean | undefined;
|
|
230
|
-
trackers?: ({
|
|
231
|
-
provider: "ga4";
|
|
232
|
-
id: string;
|
|
233
|
-
} | {
|
|
234
|
-
provider: "gtm";
|
|
235
|
-
id: string;
|
|
236
|
-
})[] | undefined;
|
|
237
234
|
cache?: Record<string, {
|
|
238
|
-
serverless?: {
|
|
239
|
-
isr?: boolean | undefined;
|
|
240
|
-
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
241
|
-
} | undefined;
|
|
242
235
|
wordpress?: {
|
|
243
236
|
strategy: "always" | "ssr-always-fresh";
|
|
244
237
|
cacheHeaders?: boolean | undefined;
|
|
245
238
|
transients?: boolean | undefined;
|
|
246
239
|
} | undefined;
|
|
240
|
+
serverless?: {
|
|
241
|
+
isr?: boolean | undefined;
|
|
242
|
+
dataCache?: "none" | "in-memory" | "kv" | undefined;
|
|
243
|
+
} | undefined;
|
|
247
244
|
pageDataTTL?: number | undefined;
|
|
248
245
|
appDataTTL?: number | undefined;
|
|
249
246
|
queryHooksTTL?: number | undefined;
|
|
250
247
|
}> | undefined;
|
|
251
|
-
|
|
248
|
+
$schema?: string | undefined;
|
|
249
|
+
legacyMetadata?: boolean | undefined;
|
|
250
|
+
legacyStitches?: boolean | undefined;
|
|
251
|
+
trackers?: ({
|
|
252
|
+
id: string;
|
|
253
|
+
provider: "ga4";
|
|
254
|
+
} | {
|
|
255
|
+
id: string;
|
|
256
|
+
provider: "gtm";
|
|
257
|
+
})[] | undefined;
|
|
258
|
+
devUI?: "disabled" | "enabled" | undefined;
|
|
252
259
|
}>;
|
|
253
260
|
export type EDConfig = z.infer<typeof EDConfigSchema>;
|
|
254
261
|
export declare class Configurator {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/project/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/project/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiJzB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAErD,qBAAa,YAAY;IAGI,OAAO,EAAE,OAAO;IAF3C,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB,OAAO;WAEM,MAAM,CAAC,OAAO,EAAE,OAAO;IAM9B,IAAI;YAQI,kBAAkB;YAYlB,UAAU;IAiCxB,OAAO,CAAC,WAAW;IAOnB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;CAUzD"}
|
|
@@ -84,6 +84,10 @@ export const EDConfigSchema = z.object({
|
|
|
84
84
|
.array()
|
|
85
85
|
.describe("A list of common origins, to be shared amoungst all directives. Items should be things like 'hubspot.com' or '*.hubspot.com'")
|
|
86
86
|
.optional(),
|
|
87
|
+
values: z
|
|
88
|
+
.record(z.string())
|
|
89
|
+
.optional()
|
|
90
|
+
.describe("A map of CSP directives to their values. Keys should be camelCase."),
|
|
87
91
|
})
|
|
88
92
|
.default({ enabled: true })
|
|
89
93
|
.describe("Content Security Policy settings"),
|
|
@@ -35,24 +35,24 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
35
35
|
frontendMode: z.ZodDefault<z.ZodEnum<["hidden", "childrenOnly", "default"]>>;
|
|
36
36
|
inserter: z.ZodDefault<z.ZodBoolean>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
|
|
38
|
+
title: string;
|
|
39
|
+
mode: "both" | "edit" | "preview";
|
|
40
|
+
slug: string;
|
|
41
|
+
tags: string[];
|
|
42
|
+
flags: Record<string, any>;
|
|
43
|
+
category: string;
|
|
39
44
|
acfName: string;
|
|
40
45
|
fileName: string;
|
|
41
|
-
slug: string;
|
|
42
46
|
graphqlFieldName: string;
|
|
43
|
-
title: string;
|
|
44
|
-
category: string;
|
|
45
47
|
types: string[];
|
|
46
|
-
mode: "preview" | "edit" | "both";
|
|
47
|
-
tags: string[];
|
|
48
|
-
flags: Record<string, any>;
|
|
49
48
|
childTags: string[];
|
|
50
49
|
childBlocks: string[];
|
|
51
50
|
parent: string[];
|
|
52
51
|
ancestors: string[];
|
|
53
52
|
dynamic: boolean;
|
|
53
|
+
cache: boolean;
|
|
54
54
|
allowMultiple: boolean;
|
|
55
|
-
frontendMode: "
|
|
55
|
+
frontendMode: "hidden" | "default" | "childrenOnly";
|
|
56
56
|
inserter: boolean;
|
|
57
57
|
description?: string | undefined;
|
|
58
58
|
icon?: string | undefined;
|
|
@@ -63,32 +63,32 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
63
63
|
fieldName: string;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, {
|
|
66
|
+
title: string;
|
|
67
|
+
slug: string;
|
|
66
68
|
acfName: string;
|
|
67
69
|
fileName: string;
|
|
68
|
-
slug: string;
|
|
69
70
|
graphqlFieldName: string;
|
|
70
|
-
title: string;
|
|
71
71
|
types: string[];
|
|
72
|
-
|
|
72
|
+
mode?: "both" | "edit" | "preview" | undefined;
|
|
73
|
+
tags?: string[] | undefined;
|
|
74
|
+
flags?: Record<string, any> | undefined;
|
|
73
75
|
description?: string | undefined;
|
|
74
|
-
category?: string | undefined;
|
|
75
76
|
icon?: string | undefined;
|
|
77
|
+
category?: string | undefined;
|
|
76
78
|
keywords?: string[] | undefined;
|
|
77
79
|
templates?: string[] | null | undefined;
|
|
78
|
-
mode?: "preview" | "edit" | "both" | undefined;
|
|
79
|
-
tags?: string[] | undefined;
|
|
80
|
-
flags?: Record<string, any> | undefined;
|
|
81
80
|
childTags?: string[] | undefined;
|
|
82
81
|
childBlocks?: string[] | undefined;
|
|
83
82
|
parent?: string[] | undefined;
|
|
84
83
|
ancestors?: string[] | undefined;
|
|
85
84
|
dynamic?: boolean | undefined;
|
|
85
|
+
cache?: boolean | undefined;
|
|
86
86
|
allowMultiple?: boolean | undefined;
|
|
87
87
|
postMetaBlock?: {
|
|
88
88
|
postTypes: string[];
|
|
89
89
|
fieldName: string;
|
|
90
90
|
} | undefined;
|
|
91
|
-
frontendMode?: "
|
|
91
|
+
frontendMode?: "hidden" | "default" | "childrenOnly" | undefined;
|
|
92
92
|
inserter?: boolean | undefined;
|
|
93
93
|
}>;
|
|
94
94
|
export type BlockMetadata = z.infer<typeof BlockMetaSchema>;
|
|
@@ -9,21 +9,21 @@ export declare const ViewMetaSchema: z.ZodObject<{
|
|
|
9
9
|
routePattern: z.ZodOptional<z.ZodString>;
|
|
10
10
|
postType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
cache: boolean;
|
|
13
|
-
fileName: string;
|
|
14
|
-
slug: string;
|
|
15
12
|
title: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
fileName: string;
|
|
15
|
+
cache: boolean;
|
|
16
16
|
isCustomTemplate: boolean;
|
|
17
|
-
routePattern?: string | undefined;
|
|
18
17
|
postType?: string[] | undefined;
|
|
18
|
+
routePattern?: string | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
fileName: string;
|
|
21
|
-
slug: string;
|
|
22
20
|
title: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
fileName: string;
|
|
23
|
+
postType?: string[] | undefined;
|
|
23
24
|
cache?: boolean | undefined;
|
|
24
25
|
isCustomTemplate?: boolean | undefined;
|
|
25
26
|
routePattern?: string | undefined;
|
|
26
|
-
postType?: string[] | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type ViewMetadata = z.infer<typeof ViewMetaSchema>;
|
|
29
29
|
export type ViewMetadataConstructor = z.input<typeof ViewMetaSchema>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=define-server-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define-server-config.d.ts","sourceRoot":"","sources":["../../../src/app/server/define-server-config.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=server-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../../src/app/server/server-config.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RouteMetaTag, TrackerTags } from "../../lib/routing";
|
|
2
|
-
declare const CSP_KEYS: string[];
|
|
3
|
-
export type CSPKey = (typeof CSP_KEYS)[number];
|
|
4
|
-
export type CSPHeaderBuilderParams = Record<CSPKey, Set<string>>;
|
|
5
|
-
export type ContentSecurityPolicyRequestContext = {
|
|
6
|
-
url: string;
|
|
7
|
-
type: "page";
|
|
8
|
-
tags: RouteMetaTag[];
|
|
9
|
-
};
|
|
10
|
-
export declare class SecureHeaderBuilder {
|
|
11
|
-
protected values: CSPHeaderBuilderParams;
|
|
12
|
-
addNonce(): void;
|
|
13
|
-
addTrackingTags(tags: TrackerTags): void;
|
|
14
|
-
addMetaTags(tags: RouteMetaTag[]): void;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=content-security-policy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-security-policy.d.ts","sourceRoot":"","sources":["../../../../src/app/server/utils/content-security-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,QAAA,MAAM,QAAQ,UAyBb,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;AAEhE,MAAM,MAAM,mCAAmC,GAAG;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB,CAAA;AAED,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,MAAM,EAAE,sBAAsB,CAAK;IAE7C,QAAQ;IAER,eAAe,CAAC,IAAI,EAAE,WAAW;IAEjC,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE;CACjC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const CSP_KEYS = [
|
|
2
|
-
"childSrc",
|
|
3
|
-
"connectSrc",
|
|
4
|
-
"defaultSrc",
|
|
5
|
-
"fencedFrameSrc",
|
|
6
|
-
"fontSrc",
|
|
7
|
-
"frameSrc",
|
|
8
|
-
"imgSrc",
|
|
9
|
-
"manifestSrc",
|
|
10
|
-
"mediaSrc",
|
|
11
|
-
"objectSrc",
|
|
12
|
-
"scriptSrc",
|
|
13
|
-
"scriptSrcElem",
|
|
14
|
-
"scriptSrcAttr",
|
|
15
|
-
"styleSrc",
|
|
16
|
-
"styleSrcElem",
|
|
17
|
-
"styleSrcAttr",
|
|
18
|
-
"workerSrc",
|
|
19
|
-
"baseUri",
|
|
20
|
-
"formAction",
|
|
21
|
-
"frameAncestors",
|
|
22
|
-
"reportTo",
|
|
23
|
-
"requireTrustedTypesFor",
|
|
24
|
-
"trustedTypes",
|
|
25
|
-
"upgradeInsecureRequests",
|
|
26
|
-
];
|
|
27
|
-
export class SecureHeaderBuilder {
|
|
28
|
-
values = {};
|
|
29
|
-
addNonce() { }
|
|
30
|
-
addTrackingTags(tags) { }
|
|
31
|
-
addMetaTags(tags) { }
|
|
32
|
-
}
|
|
33
|
-
// default-src 'self' vercel.com *.vercel.com *.vercel.sh vercel.live *.stripe.com twitter.com *.twitter.com *.github.com *.codesandbox.io https://risk.clearbit.com wss://*.vercel.com localhost:* chrome-extension://*
|
|
34
|
-
// script-src 'self' 'unsafe-eval' 'unsafe-inline' www.google.com www.google-analytics.com www.googleadservices.com www.gstatic.com *.youtube.com *.youtube-nocookie.com *.ytimg.com *.twimg.com cdn.ampproject.org www.googletagmanager.com *.googleapis.com *.heapanalytics.com heapanalytics.com *.fides-cdn.ethyca.com *.ethyca.com cdn.ethyca.com cdn.vercel-insights.com va.vercel-scripts.com vercel.com *.vercel.com *.vercel.sh vercel.live *.stripe.com twitter.com *.twitter.com *.github.com *.codesandbox.io https://risk.clearbit.com wss://*.vercel.com localhost:* chrome-extension://*
|
|
35
|
-
// child-src *.youtube.com *.youtube-nocookie.com *.stripe.com www.google.com td.doubleclick.net github.com calendly.com *.vusercontent.net vercel.com *.vercel.com *.vercel.sh vercel.live *.stripe.com twitter.com *.twitter.com *.github.com *.codesandbox.io https://risk.clearbit.com wss://*.vercel.com localhost:* chrome-extension://*
|
|
36
|
-
// style-src 'self' 'unsafe-inline' *.googleapis.com heapanalytics.com vercel.com *.vercel.com *.vercel.sh vercel.live *.stripe.com twitter.com *.twitter.com *.github.com *.codesandbox.io https://risk.clearbit.com wss://*.vercel.com localhost:* chrome-extension://*
|
|
37
|
-
// img-src * blob: data:
|
|
38
|
-
// media-src 'self' videos.ctfassets.net user-images.githubusercontent.com replicate.delivery blob: data: vercel.com *.vercel.com *.vercel.sh vercel.live *.stripe.com twitter.com *.twitter.com *.github.com *.codesandbox.io https://risk.clearbit.com wss://*.vercel.com localhost:* chrome-extension://*
|
|
39
|
-
// connect-src wss://ws-us3.pusher.com data: *
|
|
40
|
-
// font-src 'self' *.vercel.com *.gstatic.com vercel.live
|
|
41
|
-
// worker-src 'self' *.vercel.com blob:
|