@bobfrankston/miscassists 1.0.49 → 1.0.50
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.d.ts +1 -3
- package/index.js +3 -3
- package/jserve.d.ts +0 -9
- package/jserve.js +26 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn } from './dnsassist.js';
|
|
2
2
|
import { ports, mqtt } from '@bobfrankston/miscinfo';
|
|
3
3
|
import { makerPayload } from './maker.js';
|
|
4
|
-
|
|
5
|
-
export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt, makerPayload, jSubSiteInfo, jpriv, jprivs };
|
|
4
|
+
export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt, makerPayload };
|
|
6
5
|
export declare const values: {
|
|
7
6
|
exitRunit: number;
|
|
8
7
|
};
|
|
@@ -67,7 +66,6 @@ declare const _default: {
|
|
|
67
66
|
};
|
|
68
67
|
URL: string;
|
|
69
68
|
};
|
|
70
|
-
jprivs: string[];
|
|
71
69
|
values: {
|
|
72
70
|
exitRunit: number;
|
|
73
71
|
};
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn } from './dnsassist.js';
|
|
2
2
|
import { ports, mqtt } from '@bobfrankston/miscinfo';
|
|
3
|
-
import { jprivs } from './jserve.js';
|
|
4
|
-
export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt
|
|
3
|
+
// import { jSubSiteInfo, jpriv, jprivs } from './jserve.js';
|
|
4
|
+
export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt };
|
|
5
5
|
export const values = {
|
|
6
6
|
exitRunit: 99,
|
|
7
7
|
};
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
default_fqdn,
|
|
14
14
|
ports,
|
|
15
15
|
mqtt,
|
|
16
|
-
jprivs,
|
|
16
|
+
// jprivs,
|
|
17
17
|
values
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
package/jserve.d.ts
CHANGED
package/jserve.js
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
//
|
|
4
|
+
// // This can be passed via the default value or, better, via the JExport
|
|
5
|
+
//
|
|
6
|
+
// // Note that a client entry is
|
|
7
|
+
// // name or pfx:name so you can say "ui:useful"
|
|
8
|
+
// // * means deafult so you can /subpapp rather than /subapp/name
|
|
9
|
+
//
|
|
10
|
+
// export const jprivs = [
|
|
11
|
+
// "admin", // Uber privilege
|
|
12
|
+
// "user", // Normal user
|
|
13
|
+
// "guest", // Low privilege guest
|
|
14
|
+
// "home", // Home control
|
|
15
|
+
// "bbs"]; // bbs (bbt) app
|
|
16
|
+
// export type jpriv = typeof jprivs[number];
|
|
17
|
+
//
|
|
18
|
+
// // export type jpriv = "admin" | "user" | "guest";
|
|
19
|
+
//
|
|
20
|
+
// export interface jSubSiteInfo {
|
|
21
|
+
// app: object; // Express -- so we don't nee the Express definition in miscassists
|
|
22
|
+
// AppInit?: () => Promise<void>
|
|
23
|
+
// subClients?: string[]; // Dirname or path to html file
|
|
24
|
+
// privs?: jpriv[];
|
|
25
|
+
// localLogin?: boolean; // If true, use local login. Allow remember?
|
|
26
|
+
// }
|
|
13
27
|
//# sourceMappingURL=jserve.js.map
|