@ms-cloudpack/common-types 0.16.1 → 0.17.0
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/DevServer.d.ts +4 -3
- package/lib/DevServer.d.ts.map +1 -1
- package/lib/DevServer.js.map +1 -1
- package/package.json +1 -1
- package/schema/AppConfig.json +21 -3
- package/schema/UserConfig.json +21 -3
package/lib/DevServer.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import type { HttpsConfig } from './HttpsConfig.js';
|
|
|
2
2
|
import type { ShorthandRoute } from './Route.js';
|
|
3
3
|
export interface DevServer {
|
|
4
4
|
/**
|
|
5
|
-
* The domain name of the server.
|
|
5
|
+
* The domain name of the server. If multiple domains are specified, the first one will be
|
|
6
|
+
* used as the primary domain used when opening the browser.
|
|
6
7
|
*/
|
|
7
|
-
domain?: string;
|
|
8
|
+
domain?: string | string[];
|
|
8
9
|
/**
|
|
9
10
|
* An optional dictionary of header key/value pairs to be use with the server.
|
|
10
11
|
* NOTE: The following header values from Cloudpack will "win" against by a user's config:
|
|
@@ -29,7 +30,7 @@ export interface DevServer {
|
|
|
29
30
|
* Everything else is passed directly to the https.createServer() method.
|
|
30
31
|
* If not provided, the server will use http.
|
|
31
32
|
*/
|
|
32
|
-
https?: HttpsConfig;
|
|
33
|
+
https?: true | HttpsConfig;
|
|
33
34
|
/**
|
|
34
35
|
* @deprecated Moved to the root of the config.
|
|
35
36
|
*/
|
package/lib/DevServer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB
|
|
1
|
+
{"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B"}
|
package/lib/DevServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from './HttpsConfig.js';\nimport type { ShorthandRoute } from './Route.js';\n\nexport interface DevServer {\n /**\n * The domain name of the server.\n */\n domain?: string;\n\n /**\n * An optional dictionary of header key/value pairs to be use with the server.\n * NOTE: The following header values from Cloudpack will \"win\" against by a user's config:\n * 'Cache-Control': 'no-cache'\n * 'Access-Control-Allow-Origin': '*'\n */\n requestHeaders?: Record<string, string>;\n\n /**\n * The ports to be used by the server.\n * It can be a number or an array of numbers.\n * If ports are provided, an error will be thrown if none are available.\n * If no ports are provided, the server will attempt to find an available port.\n */\n port?: number | number[];\n\n /**\n * The default path to use when opening the browser.\n */\n defaultPath?: string;\n\n /**\n * The config settings for the https server.\n * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.\n * Everything else is passed directly to the https.createServer() method.\n * If not provided, the server will use http.\n */\n https?: HttpsConfig;\n\n /**\n * @deprecated Moved to the root of the config.\n */\n routes?: ShorthandRoute[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from './HttpsConfig.js';\nimport type { ShorthandRoute } from './Route.js';\n\nexport interface DevServer {\n /**\n * The domain name of the server. If multiple domains are specified, the first one will be\n * used as the primary domain used when opening the browser.\n */\n domain?: string | string[];\n\n /**\n * An optional dictionary of header key/value pairs to be use with the server.\n * NOTE: The following header values from Cloudpack will \"win\" against by a user's config:\n * 'Cache-Control': 'no-cache'\n * 'Access-Control-Allow-Origin': '*'\n */\n requestHeaders?: Record<string, string>;\n\n /**\n * The ports to be used by the server.\n * It can be a number or an array of numbers.\n * If ports are provided, an error will be thrown if none are available.\n * If no ports are provided, the server will attempt to find an available port.\n */\n port?: number | number[];\n\n /**\n * The default path to use when opening the browser.\n */\n defaultPath?: string;\n\n /**\n * The config settings for the https server.\n * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.\n * Everything else is passed directly to the https.createServer() method.\n * If not provided, the server will use http.\n */\n https?: true | HttpsConfig;\n\n /**\n * @deprecated Moved to the root of the config.\n */\n routes?: ShorthandRoute[];\n}\n"]}
|
package/package.json
CHANGED
package/schema/AppConfig.json
CHANGED
|
@@ -112,8 +112,18 @@
|
|
|
112
112
|
"type": "object",
|
|
113
113
|
"properties": {
|
|
114
114
|
"domain": {
|
|
115
|
-
"
|
|
116
|
-
|
|
115
|
+
"anyOf": [
|
|
116
|
+
{
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"description": "The domain name of the server. If multiple domains are specified, the first one will be used as the primary domain used when opening the browser."
|
|
117
127
|
},
|
|
118
128
|
"requestHeaders": {
|
|
119
129
|
"type": "object",
|
|
@@ -141,7 +151,15 @@
|
|
|
141
151
|
"description": "The default path to use when opening the browser."
|
|
142
152
|
},
|
|
143
153
|
"https": {
|
|
144
|
-
"
|
|
154
|
+
"anyOf": [
|
|
155
|
+
{
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"const": true
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"$ref": "#/definitions/HttpsConfig"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
145
163
|
"description": "The config settings for the https server. Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings. Everything else is passed directly to the https.createServer() method. If not provided, the server will use http."
|
|
146
164
|
},
|
|
147
165
|
"routes": {
|
package/schema/UserConfig.json
CHANGED
|
@@ -113,8 +113,18 @@
|
|
|
113
113
|
"type": "object",
|
|
114
114
|
"properties": {
|
|
115
115
|
"domain": {
|
|
116
|
-
"
|
|
117
|
-
|
|
116
|
+
"anyOf": [
|
|
117
|
+
{
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "array",
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"description": "The domain name of the server. If multiple domains are specified, the first one will be used as the primary domain used when opening the browser."
|
|
118
128
|
},
|
|
119
129
|
"requestHeaders": {
|
|
120
130
|
"type": "object",
|
|
@@ -142,7 +152,15 @@
|
|
|
142
152
|
"description": "The default path to use when opening the browser."
|
|
143
153
|
},
|
|
144
154
|
"https": {
|
|
145
|
-
"
|
|
155
|
+
"anyOf": [
|
|
156
|
+
{
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"const": true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"$ref": "#/definitions/HttpsConfig"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
146
164
|
"description": "The config settings for the https server. Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings. Everything else is passed directly to the https.createServer() method. If not provided, the server will use http."
|
|
147
165
|
},
|
|
148
166
|
"routes": {
|