@bobfrankston/miscinfo 1.0.3 → 1.0.4

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.4",
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;
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,