@ms-cloudpack/common-types 0.13.0 → 0.13.1
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/lib/CloudpackConfig.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export type CloudpackConfig = Omit<AppConfig, 'routes' | 'devServer'> & {
|
|
|
23
23
|
* Generated config settings.
|
|
24
24
|
*/
|
|
25
25
|
generated: GeneratedConfig;
|
|
26
|
+
/**
|
|
27
|
+
* An immutable snapshot of the generated config as it is when start or init commands first begin
|
|
28
|
+
*/
|
|
29
|
+
generatedSnapshot?: Readonly<GeneratedConfig>;
|
|
26
30
|
/**
|
|
27
31
|
* Routes which have been expanded from shorthand entries.
|
|
28
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudpackConfig.d.ts","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AAEH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG;IACtE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEtC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB,CAAC"}
|
|
1
|
+
{"version":3,"file":"CloudpackConfig.d.ts","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AAEH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG;IACtE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEtC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAE9C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudpackConfig.js","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { GeneratedConfig } from './GeneratedConfig.js';\nimport type { AppConfig } from './AppConfig.js';\nimport type { BundleMode } from './BundleMode.js';\nimport type { Route } from './Route.js';\nimport type { DevServer } from './DevServer.js';\n\n/**\n * The merged result of user-provided and generated configuration for Cloudpack.\n */\n\nexport type CloudpackConfig = Omit<AppConfig, 'routes' | 'devServer'> & {\n /**\n * The path to the app's package.\n */\n appPath: string;\n\n /**\n * Dev server settings.\n */\n devServer?: Omit<DevServer, 'routes'>;\n\n /**\n * Mode to run the app in.\n */\n mode: BundleMode;\n\n /**\n * Generated config settings.\n */\n generated: GeneratedConfig;\n\n /**\n * Routes which have been expanded from shorthand entries.\n */\n routes?: Route[];\n};\n"]}
|
|
1
|
+
{"version":3,"file":"CloudpackConfig.js","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { GeneratedConfig } from './GeneratedConfig.js';\nimport type { AppConfig } from './AppConfig.js';\nimport type { BundleMode } from './BundleMode.js';\nimport type { Route } from './Route.js';\nimport type { DevServer } from './DevServer.js';\n\n/**\n * The merged result of user-provided and generated configuration for Cloudpack.\n */\n\nexport type CloudpackConfig = Omit<AppConfig, 'routes' | 'devServer'> & {\n /**\n * The path to the app's package.\n */\n appPath: string;\n\n /**\n * Dev server settings.\n */\n devServer?: Omit<DevServer, 'routes'>;\n\n /**\n * Mode to run the app in.\n */\n mode: BundleMode;\n\n /**\n * Generated config settings.\n */\n generated: GeneratedConfig;\n\n /**\n * An immutable snapshot of the generated config as it is when start or init commands first begin\n */\n generatedSnapshot?: Readonly<GeneratedConfig>;\n\n /**\n * Routes which have been expanded from shorthand entries.\n */\n routes?: Route[];\n};\n"]}
|
package/package.json
CHANGED
package/schema/AppConfig.json
CHANGED
|
@@ -157,6 +157,10 @@
|
|
|
157
157
|
"HttpsConfig": {
|
|
158
158
|
"type": "object",
|
|
159
159
|
"properties": {
|
|
160
|
+
"ALPNCallback": {
|
|
161
|
+
"not": {},
|
|
162
|
+
"description": "If set, this will be called when a client opens a connection using the ALPN extension. One argument will be passed to the callback: an object containing `servername` and `protocols` fields, respectively containing the server name from the SNI extension (if any) and an array of ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, which will be returned to the client as the selected ALPN protocol, or `undefined`, to reject the connection with a fatal alert. If a string is returned that does not match one of the client's ALPN protocols, an error will be thrown. This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error."
|
|
163
|
+
},
|
|
160
164
|
"ca": {
|
|
161
165
|
"anyOf": [
|
|
162
166
|
{
|
|
@@ -213,7 +217,7 @@
|
|
|
213
217
|
},
|
|
214
218
|
"dhparam": {
|
|
215
219
|
"type": "string",
|
|
216
|
-
"description": "Diffie
|
|
220
|
+
"description": "`'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy. If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available. ECDHE-based perfect forward secrecy will still be available."
|
|
217
221
|
},
|
|
218
222
|
"ecdhCurve": {
|
|
219
223
|
"type": "string",
|
|
@@ -231,7 +235,14 @@
|
|
|
231
235
|
{
|
|
232
236
|
"type": "array",
|
|
233
237
|
"items": {
|
|
234
|
-
"
|
|
238
|
+
"anyOf": [
|
|
239
|
+
{
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"$ref": "#/definitions/KeyObject"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
235
246
|
}
|
|
236
247
|
}
|
|
237
248
|
],
|
|
@@ -370,15 +381,56 @@
|
|
|
370
381
|
"description": "If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.",
|
|
371
382
|
"default": 0
|
|
372
383
|
},
|
|
373
|
-
"
|
|
384
|
+
"requestTimeout": {
|
|
374
385
|
"type": "number",
|
|
375
|
-
"description": "
|
|
376
|
-
"default":
|
|
386
|
+
"description": "Sets the timeout value in milliseconds for receiving the entire request from the client.",
|
|
387
|
+
"default": 300000
|
|
388
|
+
},
|
|
389
|
+
"joinDuplicateHeaders": {
|
|
390
|
+
"type": "boolean",
|
|
391
|
+
"description": "It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.",
|
|
392
|
+
"default": false
|
|
393
|
+
},
|
|
394
|
+
"keepAliveTimeout": {
|
|
395
|
+
"type": "number",
|
|
396
|
+
"description": "The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed.",
|
|
397
|
+
"default": 5000
|
|
398
|
+
},
|
|
399
|
+
"connectionsCheckingInterval": {
|
|
400
|
+
"type": "number",
|
|
401
|
+
"description": "Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.",
|
|
402
|
+
"default": 30000
|
|
403
|
+
},
|
|
404
|
+
"highWaterMark": {
|
|
405
|
+
"type": "number",
|
|
406
|
+
"description": "Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`. This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`. Default:"
|
|
377
407
|
},
|
|
378
408
|
"insecureHTTPParser": {
|
|
379
409
|
"type": "boolean",
|
|
380
|
-
"description": "Use an insecure HTTP parser that accepts invalid HTTP headers when true
|
|
410
|
+
"description": "Use an insecure HTTP parser that accepts invalid HTTP headers when `true`. Using the insecure parser should be avoided. See --insecure-http-parser for more information.",
|
|
381
411
|
"default": false
|
|
412
|
+
},
|
|
413
|
+
"maxHeaderSize": {
|
|
414
|
+
"type": "number",
|
|
415
|
+
"description": "Optionally overrides the value of `--max-http-header-size` for requests received by this server, i.e. the maximum length of request headers in bytes.",
|
|
416
|
+
"default": 16384
|
|
417
|
+
},
|
|
418
|
+
"uniqueHeaders": {
|
|
419
|
+
"type": "array",
|
|
420
|
+
"items": {
|
|
421
|
+
"anyOf": [
|
|
422
|
+
{
|
|
423
|
+
"type": "string"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"type": "array",
|
|
427
|
+
"items": {
|
|
428
|
+
"type": "string"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"description": "A list of response headers that should be sent only once. If the header's value is an array, the items will be joined using `; `."
|
|
382
434
|
}
|
|
383
435
|
},
|
|
384
436
|
"additionalProperties": false,
|
package/schema/UserConfig.json
CHANGED
|
@@ -158,6 +158,10 @@
|
|
|
158
158
|
"HttpsConfig": {
|
|
159
159
|
"type": "object",
|
|
160
160
|
"properties": {
|
|
161
|
+
"ALPNCallback": {
|
|
162
|
+
"not": {},
|
|
163
|
+
"description": "If set, this will be called when a client opens a connection using the ALPN extension. One argument will be passed to the callback: an object containing `servername` and `protocols` fields, respectively containing the server name from the SNI extension (if any) and an array of ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, which will be returned to the client as the selected ALPN protocol, or `undefined`, to reject the connection with a fatal alert. If a string is returned that does not match one of the client's ALPN protocols, an error will be thrown. This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error."
|
|
164
|
+
},
|
|
161
165
|
"ca": {
|
|
162
166
|
"anyOf": [
|
|
163
167
|
{
|
|
@@ -214,7 +218,7 @@
|
|
|
214
218
|
},
|
|
215
219
|
"dhparam": {
|
|
216
220
|
"type": "string",
|
|
217
|
-
"description": "Diffie
|
|
221
|
+
"description": "`'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy. If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available. ECDHE-based perfect forward secrecy will still be available."
|
|
218
222
|
},
|
|
219
223
|
"ecdhCurve": {
|
|
220
224
|
"type": "string",
|
|
@@ -232,7 +236,14 @@
|
|
|
232
236
|
{
|
|
233
237
|
"type": "array",
|
|
234
238
|
"items": {
|
|
235
|
-
"
|
|
239
|
+
"anyOf": [
|
|
240
|
+
{
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"$ref": "#/definitions/KeyObject"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
236
247
|
}
|
|
237
248
|
}
|
|
238
249
|
],
|
|
@@ -371,15 +382,56 @@
|
|
|
371
382
|
"description": "If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.",
|
|
372
383
|
"default": 0
|
|
373
384
|
},
|
|
374
|
-
"
|
|
385
|
+
"requestTimeout": {
|
|
375
386
|
"type": "number",
|
|
376
|
-
"description": "
|
|
377
|
-
"default":
|
|
387
|
+
"description": "Sets the timeout value in milliseconds for receiving the entire request from the client.",
|
|
388
|
+
"default": 300000
|
|
389
|
+
},
|
|
390
|
+
"joinDuplicateHeaders": {
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"description": "It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.",
|
|
393
|
+
"default": false
|
|
394
|
+
},
|
|
395
|
+
"keepAliveTimeout": {
|
|
396
|
+
"type": "number",
|
|
397
|
+
"description": "The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed.",
|
|
398
|
+
"default": 5000
|
|
399
|
+
},
|
|
400
|
+
"connectionsCheckingInterval": {
|
|
401
|
+
"type": "number",
|
|
402
|
+
"description": "Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.",
|
|
403
|
+
"default": 30000
|
|
404
|
+
},
|
|
405
|
+
"highWaterMark": {
|
|
406
|
+
"type": "number",
|
|
407
|
+
"description": "Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`. This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`. Default:"
|
|
378
408
|
},
|
|
379
409
|
"insecureHTTPParser": {
|
|
380
410
|
"type": "boolean",
|
|
381
|
-
"description": "Use an insecure HTTP parser that accepts invalid HTTP headers when true
|
|
411
|
+
"description": "Use an insecure HTTP parser that accepts invalid HTTP headers when `true`. Using the insecure parser should be avoided. See --insecure-http-parser for more information.",
|
|
382
412
|
"default": false
|
|
413
|
+
},
|
|
414
|
+
"maxHeaderSize": {
|
|
415
|
+
"type": "number",
|
|
416
|
+
"description": "Optionally overrides the value of `--max-http-header-size` for requests received by this server, i.e. the maximum length of request headers in bytes.",
|
|
417
|
+
"default": 16384
|
|
418
|
+
},
|
|
419
|
+
"uniqueHeaders": {
|
|
420
|
+
"type": "array",
|
|
421
|
+
"items": {
|
|
422
|
+
"anyOf": [
|
|
423
|
+
{
|
|
424
|
+
"type": "string"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"type": "array",
|
|
428
|
+
"items": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"description": "A list of response headers that should be sent only once. If the header's value is an array, the items will be joined using `; `."
|
|
383
435
|
}
|
|
384
436
|
},
|
|
385
437
|
"additionalProperties": false,
|