@ms-cloudpack/common-types 0.27.7 → 0.28.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/BundleContext.d.ts +6 -2
- package/lib/BundleContext.d.ts.map +1 -1
- package/lib/BundleContext.js.map +1 -1
- package/lib/ServerConfig.d.ts +6 -0
- package/lib/ServerConfig.d.ts.map +1 -1
- package/lib/ServerConfig.js.map +1 -1
- package/package.json +1 -1
- package/schema/AppConfig.json +8 -0
- package/schema/UserConfig.json +8 -0
package/lib/BundleContext.d.ts
CHANGED
|
@@ -8,8 +8,12 @@ export interface BundleContext {
|
|
|
8
8
|
*/
|
|
9
9
|
moduleType: ModuleType;
|
|
10
10
|
/**
|
|
11
|
-
* True if any of the entry files are typescript.
|
|
11
|
+
* True if any of the entry files are typescript, or obviously JSX based on the extension.
|
|
12
|
+
*
|
|
13
|
+
* Note that this calculation does *not* parse the files to check for JSX syntax in files
|
|
14
|
+
* without a specific extension. It also only accounts for *entry files* (so things like
|
|
15
|
+
* `index.js` which imports `./foo.jsx` wouldn't be detected).
|
|
12
16
|
*/
|
|
13
|
-
|
|
17
|
+
requiresTranspile: boolean;
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=BundleContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleContext.d.ts","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,eAAe,CAAC;IAExB;;;OAGG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB
|
|
1
|
+
{"version":3,"file":"BundleContext.d.ts","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,eAAe,CAAC;IAExB;;;OAGG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;;;;;OAMG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC5B"}
|
package/lib/BundleContext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleContext.js","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { ModuleType } from './ModuleType.js';\n\nexport interface BundleContext {\n config: CloudpackConfig;\n\n /**\n * Detected module type of the entry files. This will be 'cjs' or 'amd' if any entry file was\n * detected as that type, or 'esm' is the default.\n */\n moduleType: ModuleType;\n\n /**\n * True if any of the entry files are typescript.\n */\n
|
|
1
|
+
{"version":3,"file":"BundleContext.js","sourceRoot":"","sources":["../src/BundleContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { ModuleType } from './ModuleType.js';\n\nexport interface BundleContext {\n config: CloudpackConfig;\n\n /**\n * Detected module type of the entry files. This will be 'cjs' or 'amd' if any entry file was\n * detected as that type, or 'esm' is the default.\n */\n moduleType: ModuleType;\n\n /**\n * True if any of the entry files are typescript, or obviously JSX based on the extension.\n *\n * Note that this calculation does *not* parse the files to check for JSX syntax in files\n * without a specific extension. It also only accounts for *entry files* (so things like\n * `index.js` which imports `./foo.jsx` wouldn't be detected).\n */\n requiresTranspile: boolean;\n}\n"]}
|
package/lib/ServerConfig.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export interface ServerConfig {
|
|
|
27
27
|
* @default ''
|
|
28
28
|
*/
|
|
29
29
|
defaultPath?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to automatically open the browser when the server starts, or a specific URL to open.
|
|
32
|
+
* (You can also use the `--open` or `--no-open` CLI options.)
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
open?: boolean | string;
|
|
30
36
|
/**
|
|
31
37
|
* The config settings for the https server.
|
|
32
38
|
* Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerConfig.d.ts","sourceRoot":"","sources":["../src/ServerConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE3B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC;IAE3B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B"}
|
|
1
|
+
{"version":3,"file":"ServerConfig.d.ts","sourceRoot":"","sources":["../src/ServerConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE3B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAExB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC;IAE3B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B"}
|
package/lib/ServerConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerConfig.js","sourceRoot":"","sources":["../src/ServerConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from './HttpsConfig.js';\nimport type { ShorthandRoute } from './Route.js';\n\nexport interface ServerConfig {\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 * @default 'localhost'\n */\n domain?: string | string[];\n\n /**\n * Additional header key/value pairs to be added to every response.\n *\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 * Port(s) to try when starting the server. If provided, an error will be thrown if none of\n * the ports are available.\n *\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 under the domain to use when opening the browser.\n * @default ''\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 * Whether to show the Cloudpack overlay (status badge and dialog) in the app UI.\n *\n * It's not recommended to change this unless the overlay is interfering with UI elements or tests\n * (and if it's only needed in a specific case, use the `--show-overlay <when>` CLI option).\n * @default 'always'\n */\n showOverlay?: 'always' | 'errors-only' | 'never';\n\n /**\n * @deprecated Moved to the root of the config.\n */\n routes?: ShorthandRoute[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ServerConfig.js","sourceRoot":"","sources":["../src/ServerConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from './HttpsConfig.js';\nimport type { ShorthandRoute } from './Route.js';\n\nexport interface ServerConfig {\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 * @default 'localhost'\n */\n domain?: string | string[];\n\n /**\n * Additional header key/value pairs to be added to every response.\n *\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 * Port(s) to try when starting the server. If provided, an error will be thrown if none of\n * the ports are available.\n *\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 under the domain to use when opening the browser.\n * @default ''\n */\n defaultPath?: string;\n\n /**\n * Whether to automatically open the browser when the server starts, or a specific URL to open.\n * (You can also use the `--open` or `--no-open` CLI options.)\n * @default true\n */\n open?: boolean | 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 * Whether to show the Cloudpack overlay (status badge and dialog) in the app UI.\n *\n * It's not recommended to change this unless the overlay is interfering with UI elements or tests\n * (and if it's only needed in a specific case, use the `--show-overlay <when>` CLI option).\n * @default 'always'\n */\n showOverlay?: 'always' | 'errors-only' | 'never';\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
|
@@ -153,6 +153,14 @@
|
|
|
153
153
|
"description": "The default path under the domain to use when opening the browser.",
|
|
154
154
|
"default": ""
|
|
155
155
|
},
|
|
156
|
+
"open": {
|
|
157
|
+
"type": [
|
|
158
|
+
"boolean",
|
|
159
|
+
"string"
|
|
160
|
+
],
|
|
161
|
+
"description": "Whether to automatically open the browser when the server starts, or a specific URL to open. (You can also use the `--open` or `--no-open` CLI options.)",
|
|
162
|
+
"default": true
|
|
163
|
+
},
|
|
156
164
|
"https": {
|
|
157
165
|
"anyOf": [
|
|
158
166
|
{
|
package/schema/UserConfig.json
CHANGED
|
@@ -154,6 +154,14 @@
|
|
|
154
154
|
"description": "The default path under the domain to use when opening the browser.",
|
|
155
155
|
"default": ""
|
|
156
156
|
},
|
|
157
|
+
"open": {
|
|
158
|
+
"type": [
|
|
159
|
+
"boolean",
|
|
160
|
+
"string"
|
|
161
|
+
],
|
|
162
|
+
"description": "Whether to automatically open the browser when the server starts, or a specific URL to open. (You can also use the `--open` or `--no-open` CLI options.)",
|
|
163
|
+
"default": true
|
|
164
|
+
},
|
|
157
165
|
"https": {
|
|
158
166
|
"anyOf": [
|
|
159
167
|
{
|