pwi-plata-type 0.3.7 → 0.3.8
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/bin/plata.ts
CHANGED
|
@@ -59,6 +59,8 @@ const main = async () => {
|
|
|
59
59
|
const port = process.env.PORT ?? 3050
|
|
60
60
|
const app: Express = express()
|
|
61
61
|
|
|
62
|
+
app.disable('x-powered-by')
|
|
63
|
+
|
|
62
64
|
app.use(process.env._PLATA_API_ROOT ?? '/api',await buildExpressRouter())
|
|
63
65
|
|
|
64
66
|
app.use((err, _req, res, _next) => {
|
|
@@ -100,7 +102,7 @@ const main = async () => {
|
|
|
100
102
|
PlataDirs.getProjectDir(),
|
|
101
103
|
process.env._PLATA_API_SSL_KEY
|
|
102
104
|
))),
|
|
103
|
-
|
|
105
|
+
passphrase: process.env._PLATA_API_SSL_PASS
|
|
104
106
|
}, app)
|
|
105
107
|
|
|
106
108
|
https.listen(port, () => {
|
package/package.json
CHANGED
|
@@ -9,11 +9,15 @@ export class ç__Name__ç {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export function newç__Name__ç(config: typeof ç__Name__çConfig.default): ç__Name__ç {
|
|
13
|
+
return new ç__Name__ç(ç__Name__çConfig.default)
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
export function getç__Name__ç(): ç__Name__ç {
|
|
13
17
|
const p = process as any
|
|
14
18
|
|
|
15
19
|
if (p._plata._libç__Name__ç === undefined) {
|
|
16
|
-
p._plata._libç__Name__ç =
|
|
20
|
+
p._plata._libç__Name__ç = newç__Name__ç(ç__Name__çConfig.default)
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
return p._plata._libç__Name__ç
|