@xeplr/base-apis 2.0.0 → 2.0.2

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.
Files changed (2) hide show
  1. package/index.js +9 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,13 @@
1
+ // Only for apps that use createApp's DEFAULT gate. Deliberately NOT a plain
2
+ // `requiredEnv`: an app that answers the auth question another way — auth:false
3
+ // for the auth service itself, or auth:{middleware} for its own check — never
4
+ // reaches AUTH_URL, and forcing it to set one would be a variable it must
5
+ // invent a value for. Same split as @xeplr/email's requiredEnv vs
6
+ // templatesRequiredEnv: one list per capability, spread only if you use it.
7
+ var gateRequiredEnv = ['AUTH_URL'];
8
+
1
9
  module.exports = {
10
+ gateRequiredEnv: gateRequiredEnv,
2
11
  createApp: require('./express'),
3
12
  createHttpServer: require('./http'),
4
13
  checkEnv: require('./lib/checkEnv'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/base-apis",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Base API bootstrapper — Express and plain HTTP server factories with middleware injection",
5
5
  "main": "index.js",
6
6
  "bin": {