@bobfrankston/miscinfo 1.0.3 → 1.0.5

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,2 +1,2 @@
1
- export { default_fqdn, ports, mqtt } from './ports.js';
1
+ export { default_fqdn, ports, mqtt, endsWithFQDN } from './ports.js';
2
2
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { default_fqdn, ports, mqtt } from './ports.js';
1
+ export { default_fqdn, ports, mqtt, endsWithFQDN } from './ports.js';
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/miscinfo",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Browser-compatible shared constants including port definitions and MQTT configuration",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/ports.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /** Default fully qualified domain name */
2
2
  export declare const default_fqdn = "aaz.lt";
3
+ export declare function endsWithFQDN(dns: string): boolean;
3
4
  /** Centralized port definitions for all services */
4
5
  export declare const ports: {
5
6
  jserve2: number;
@@ -39,6 +40,8 @@ export declare const ports: {
39
40
  rmfAlpha2: number;
40
41
  carder: number;
41
42
  cardaid: number;
43
+ oauth: number;
44
+ alerter: number;
42
45
  };
43
46
  /** MQTT broker configuration */
44
47
  export declare const mqtt: {
package/ports.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /** Default fully qualified domain name */
2
2
  export const default_fqdn = 'aaz.lt';
3
+ export function endsWithFQDN(dns) { return /\.aaz\.lt$/i.test(dns); }
3
4
  /** Centralized port definitions for all services */
4
5
  export const ports = {
5
6
  jserve2: 10080,
@@ -39,7 +40,9 @@ export const ports = {
39
40
  psyncer: 9324, // Used for the powershell version ??
40
41
  rmfAlpha2: 9325, // So we can try alternative clients.
41
42
  carder: 9329,
42
- cardaid: 9330
43
+ cardaid: 9330,
44
+ oauth: 9331,
45
+ alerter: 9332
43
46
  };
44
47
  const mqttHost = "pi4c";
45
48
  const mqttPort = 1883;