@bobfrankston/miscassists 1.0.16 → 1.0.17
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.ts +2 -2
- package/jserve.ts +3 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn } from './dnsassist.js'
|
|
2
2
|
import { ports, mqtt } from './ports.js'
|
|
3
3
|
import { makerPayload } from './maker.js';
|
|
4
|
-
import { jSubSiteInfo } from './jserve.js';
|
|
4
|
+
import { jSubSiteInfo, jpriv } from './jserve.js';
|
|
5
5
|
|
|
6
6
|
export {
|
|
7
7
|
resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn,
|
|
8
|
-
ports, mqtt, makerPayload, jSubSiteInfo
|
|
8
|
+
ports, mqtt, makerPayload, jSubSiteInfo, jpriv
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default {
|
package/jserve.ts
CHANGED
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
// name or pfx:name so you can say "ui:useful"
|
|
7
7
|
// * means deafult so you can /subpapp rather than /subapp/name
|
|
8
8
|
|
|
9
|
+
export type jpriv = "admin" | "user" | "guest";
|
|
10
|
+
|
|
9
11
|
export interface jSubSiteInfo {
|
|
10
12
|
app: object; // Express -- so we don't nee the Express definition in miscassists
|
|
11
13
|
AppInit?: () => Promise<void>
|
|
12
14
|
subClients?: string[]; // Dirname or path to html file
|
|
15
|
+
privs?: jpriv[];
|
|
13
16
|
}
|