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
- // TODO :::: passphrase:
105
+ passphrase: process.env._PLATA_API_SSL_PASS
104
106
  }, app)
105
107
 
106
108
  https.listen(port, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pwi-plata-type",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "main": "index.ts",
5
5
  "bin": {
6
6
  "plata": "bin/plata.ts",
@@ -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__ç = new ç__Name__ç(ç__Name__çConfig.default)
20
+ p._plata._libç__Name__ç = newç__Name__ç(ç__Name__çConfig.default)
17
21
  }
18
22
 
19
23
  return p._plata._libç__Name__ç
@@ -8,4 +8,5 @@ PORT=3050
8
8
  _PLATA_API_ROOT=/api
9
9
  _PLATA_API_SSL_KEY=
10
10
  _PLATA_API_SSL_CERT=
11
+ _PLATA_API_SSL_PASS=
11
12
  _PLATA_API_JSON_SIZE=100kb
@@ -9,4 +9,5 @@ PORT=3050
9
9
  _PLATA_API_ROOT=/api
10
10
  _PLATA_API_SSL_KEY=
11
11
  _PLATA_API_SSL_CERT=
12
+ _PLATA_API_SSL_PASS=
12
13
  _PLATA_API_JSON_SIZE=100kb
@@ -9,4 +9,5 @@ PORT=3050
9
9
  _PLATA_API_ROOT=/api
10
10
  _PLATA_API_SSL_KEY=
11
11
  _PLATA_API_SSL_CERT=
12
+ _PLATA_API_SSL_PASS=
12
13
  _PLATA_API_JSON_SIZE=100kb