minimonolith 0.26.8 → 0.26.9
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/index.js +2 -1
- package/package.json +1 -1
- package/src/server/getHttpsServerFactory/index.js +13 -0
- package/src/server/index.js +2 -1
package/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import SERVER_MODULE from './src/server/index.js';
|
|
|
3
3
|
import AUTOTEST_MODULE from './src/autotest/index.js';
|
|
4
4
|
|
|
5
5
|
const { getNewAPI } = API_MODULE;
|
|
6
|
-
const { getServerFactory } = SERVER_MODULE;
|
|
6
|
+
const { getServerFactory, getHttpsServerFactory } = SERVER_MODULE;
|
|
7
7
|
const { getMethodTest } = AUTOTEST_MODULE;
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
getServerFactory,
|
|
11
|
+
getHttpsServerFactory,
|
|
11
12
|
getNewAPI,
|
|
12
13
|
getMethodTest,
|
|
13
14
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import https from 'https';
|
|
2
|
+
|
|
3
|
+
import getNodejsServerHandler from '../getNodejsServerHandler/index.js';
|
|
4
|
+
|
|
5
|
+
export default async ({ key, cert }) => {
|
|
6
|
+
|
|
7
|
+
return (lambdaHandler) => {
|
|
8
|
+
const serverHandler = getNodejsServerHandler(lambdaHandler);
|
|
9
|
+
|
|
10
|
+
const server = https.createServer({ key, cert }, serverHandler);
|
|
11
|
+
return server;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/src/server/index.js
CHANGED