@ms-cloudpack/create-express-app 1.1.2 → 1.1.4
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/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,67 @@
|
|
|
2
2
|
"name": "@ms-cloudpack/create-express-app",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 26 Jan 2023 08:12:23 GMT",
|
|
6
|
+
"tag": "@ms-cloudpack/create-express-app_v1.1.4",
|
|
7
|
+
"version": "1.1.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"none": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@ms-cloudpack/create-express-app",
|
|
13
|
+
"commit": "d2f471ffe4d99b97c82c87d2ac64f3b9f48f5c62",
|
|
14
|
+
"comment": "Update devDependency @types/express to v4.17.16"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 16 Dec 2022 08:11:23 GMT",
|
|
21
|
+
"tag": "@ms-cloudpack/create-express-app_v1.1.3",
|
|
22
|
+
"version": "1.1.3",
|
|
23
|
+
"comments": {
|
|
24
|
+
"none": [
|
|
25
|
+
{
|
|
26
|
+
"author": "renovate@whitesourcesoftware.com",
|
|
27
|
+
"package": "@ms-cloudpack/create-express-app",
|
|
28
|
+
"commit": "617d7482500d884b909e3141db4bb0826bfb3392",
|
|
29
|
+
"comment": "Update devDependency @types/express to v4.17.15"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Wed, 07 Dec 2022 08:11:46 GMT",
|
|
36
|
+
"tag": "@ms-cloudpack/create-express-app_v1.1.3",
|
|
37
|
+
"version": "1.1.3",
|
|
38
|
+
"comments": {
|
|
39
|
+
"none": [
|
|
40
|
+
{
|
|
41
|
+
"author": "email not defined",
|
|
42
|
+
"package": "@ms-cloudpack/create-express-app",
|
|
43
|
+
"commit": "6063fc391367b3dc90d5cae3a5771ab3eedb21b6",
|
|
44
|
+
"comment": "Update @types devDependencies"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Sat, 03 Dec 2022 08:10:45 GMT",
|
|
51
|
+
"tag": "@ms-cloudpack/create-express-app_v1.1.3",
|
|
52
|
+
"version": "1.1.3",
|
|
53
|
+
"comments": {
|
|
54
|
+
"patch": [
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@ms-cloudpack/create-express-app",
|
|
58
|
+
"comment": "Bump @ms-cloudpack/path-utilities to v2.0.0",
|
|
59
|
+
"commit": "adb6e5b06d2100f33ff9975c2999b81f81b65616"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Tue, 29 Nov 2022 08:10:24 GMT",
|
|
6
66
|
"tag": "@ms-cloudpack/create-express-app_v1.1.2",
|
|
7
67
|
"version": "1.1.2",
|
|
8
68
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @ms-cloudpack/create-express-app
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 03 Dec 2022 08:10:45 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.1.3
|
|
8
|
+
|
|
9
|
+
Sat, 03 Dec 2022 08:10:45 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @ms-cloudpack/path-utilities to v2.0.0
|
|
14
|
+
|
|
7
15
|
## 1.1.2
|
|
8
16
|
|
|
9
|
-
Tue, 29 Nov 2022 08:10:
|
|
17
|
+
Tue, 29 Nov 2022 08:10:24 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
/// <reference types="node" resolution-mode="require"/>
|
|
3
3
|
import type { ServerOptions } from 'https';
|
|
4
4
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
5
|
-
export
|
|
5
|
+
export type HttpsConfig = ServerOptions<typeof IncomingMessage, typeof ServerResponse>;
|
|
6
6
|
export declare function parseHttpsConfig(config: HttpsConfig): HttpsConfig;
|
|
@@ -3,17 +3,17 @@ import { parseHttpsConfig } from './parseHttpsConfig.js';
|
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import { createTestFileStructure } from '@ms-cloudpack/test-utilities';
|
|
6
|
-
const {
|
|
6
|
+
const { rm } = fs.promises;
|
|
7
7
|
describe('parseHttpsConfig', () => {
|
|
8
8
|
let testPath;
|
|
9
9
|
afterEach(async () => {
|
|
10
10
|
if (testPath) {
|
|
11
|
-
await
|
|
11
|
+
await rm(testPath, { recursive: true });
|
|
12
12
|
testPath = undefined;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
it('can read certs from file paths and keeps other properties', async () => {
|
|
16
|
-
|
|
16
|
+
testPath = await createTestFileStructure({
|
|
17
17
|
'certs/mock.ca': 'ca mock',
|
|
18
18
|
'certs/mock.pfx': 'pfx mock',
|
|
19
19
|
'certs/mock.key': 'key mock',
|
|
@@ -37,7 +37,7 @@ describe('parseHttpsConfig', () => {
|
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
it('throws if cert file is not found', async () => {
|
|
40
|
-
|
|
40
|
+
testPath = await createTestFileStructure({
|
|
41
41
|
'certs/mock.ca': 'ca mock',
|
|
42
42
|
'certs/undefined/mock.pfx': 'pfx mock',
|
|
43
43
|
'certs/mock.key': 'key mock',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseHttpsConfig.test.js","sourceRoot":"","sources":["../src/parseHttpsConfig.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"parseHttpsConfig.test.js","sourceRoot":"","sources":["../src/parseHttpsConfig.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC;AAE3B,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAI,QAA4B,CAAC;IAEjC,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,IAAI,QAAQ,EAAE;YACZ,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACxC,QAAQ,GAAG,SAAS,CAAC;SACtB;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QACzE,QAAQ,GAAG,MAAM,uBAAuB,CAAC;YACvC,eAAe,EAAE,SAAS;YAC1B,gBAAgB,EAAE,UAAU;YAC5B,gBAAgB,EAAE,UAAU;YAC5B,iBAAiB,EAAE,W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QAAQ,EAAE,gBAAgB,CAAC;YAC1C,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC;YAC5C,UAAU,EAAE,YAAY;YACxB,WAAW,EAAE,IAAI;SAClB,CAAC;QAEF,IAAI,KAAK,GAAG,KAAK,CAAC;QAClB,IAAI;YACF,gBAAgB,CAAC,WAAW,CAAC,CAAC;SAC/B;QAAC,OAAO,CAAC,EAAE;YACV,KAAK,GAAG,IAAI,CAAC;SACd;QAED,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/create-express-app",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Helper for creating an express app server, abstracting a common plugin setup.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ms-cloudpack/path-utilities": "^
|
|
16
|
+
"@ms-cloudpack/path-utilities": "^2.0.0",
|
|
17
17
|
"compression": "^1.7.4",
|
|
18
18
|
"cors": "^2.8.5",
|
|
19
19
|
"express": "^4.17.3",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@ms-cloudpack/eslint-config-base": "*",
|
|
25
25
|
"@ms-cloudpack/test-utilities": "*",
|
|
26
26
|
"@types/compression": "1.7.2",
|
|
27
|
-
"@types/cors": "2.8.
|
|
28
|
-
"@types/express": "4.17.
|
|
27
|
+
"@types/cors": "2.8.13",
|
|
28
|
+
"@types/express": "4.17.16",
|
|
29
29
|
"@types/get-port": "4.2.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|