@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 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
- import { jSubSiteInfo, jpriv, jprivs } from './jserve.js';
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, jprivs };
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
@@ -1,9 +0,0 @@
1
- export declare const jprivs: string[];
2
- export type jpriv = typeof jprivs[number];
3
- export interface jSubSiteInfo {
4
- app: object;
5
- AppInit?: () => Promise<void>;
6
- subClients?: string[];
7
- privs?: jpriv[];
8
- localLogin?: boolean;
9
- }
package/jserve.js CHANGED
@@ -1,13 +1,27 @@
1
- // Support for connecting with jserve
2
- // This can be passed via the default value or, better, via the JExport
3
- // Note that a client entry is
4
- // name or pfx:name so you can say "ui:useful"
5
- // * means deafult so you can /subpapp rather than /subapp/name
6
- export const jprivs = [
7
- "admin", // Uber privilege
8
- "user", // Normal user
9
- "guest", // Low privilege guest
10
- "home", // Home control
11
- "bbs"
12
- ]; // bbs (bbt) app
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/miscassists",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Miscelleanous assists for various tasks including defining port numbers",
5
5
  "main": "index.js",
6
6
  "module": "main.js",