@bobfrankston/miscassists 1.0.39 → 1.0.42

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/checkaddress.js CHANGED
@@ -1,130 +1,135 @@
1
- // From y:\dev\homecontrol\Others\LifX\Apps\lzlan\lants-address.ts
2
- export {};
1
+ import os, { networkInterfaces } from 'os';
3
2
  // Quck hack - using namespace to hid this until we debug and integrate it for v6 support
4
- // namespace hidden {
5
- // type netinfo = os.NetworkInterfaceInfo & { ints: { address: number, mask: number } }
6
- // const NetworkInterfaces: netinfo[] = []; // Need to fix this signature
7
- // export function assureNetworkInterfaces() {
8
- // // Note we don't detect changes to the interfaces
9
- // if (networkInterfaces.length > 0) return;
10
- // const netifs = os.networkInterfaces();
11
- // for (const dev in netifs) {
12
- // netifs[dev].forEach((info) => {
13
- // let family = info.family;
14
- // if (typeof family == "number")
15
- // family = `IPv${family}`; // Strange change work-around
16
- // if (family !== 'IPv4' || info.internal === true) {
17
- // return;
18
- // }
19
- // // let info4 = info as os.NetworkInterfaceInfoIPv4;
20
- // // (<any>info)['broadcast'] = _getBroadcastAddress(info4);
21
- // const mask = ipToUnsignedInt(info.netmask);
22
- // const address = ipToUnsignedInt(info.address) & mask;
23
- // const ni = { ...info, ints: { mask, address } };
24
- // NetworkInterfaces.push(ni);
25
- // })
26
- // }
27
- // return NetworkInterfaces;
28
- // };
29
- // export function isLocalIp4Address(ip4Address: string) {
30
- // if (ip4Address == '127.0.0.1')
31
- // return true;
32
- // const ipa = ipToUnsignedInt(ip4Address);
33
- // assureNetworkInterfaces();
34
- // return NetworkInterfaces.some((ni) => (ni.ints.address & ni.ints.mask) === (ipa & ni.ints.mask));
35
- // }
36
- // function ipToUnsignedInt(ipAddress: string): number {
37
- // const parts = ipAddress.split('.');
38
- // if (parts.length !== 4) {
39
- // throw new Error('Invalid IP address format');
40
- // }
41
- // const num = parts.map((part) => parseInt(part, 10));
42
- // if (num.some((part) => isNaN(part) || part < 0 || part > 255)) {
43
- // throw new Error(`Invalid IP address ${ipAddress}`);
44
- // }
45
- // const signed = (num[0] << 24) + (num[1] << 16) + (num[2] << 8) + num[3];
46
- // const unsigned = signed >>> 0;
47
- // return unsigned;
48
- // }
49
- // let pretendRemote = false;
50
- // export function isLocalIpAddress(ipAddress: string) {
51
- // // '::ffff:172.20.3.39'
52
- // if (pretendRemote) return false;
53
- // ipAddress = ipAddress.toLowerCase(); // Safety
54
- // if (ipAddress.startsWith('fe80:'))
55
- // return true; // Link local
56
- // if (ipAddress == "::1")
57
- // return true;
58
- // ipAddress = ipAddress.replace(/^::ffff:/, ''); // If it's like V5
59
- // if (/^[0-9.]+$/.test(ipAddress))
60
- // return isLocalIp4Address(ipAddress)
61
- // return isIPv6LocalAddress(ipAddress);
62
- // // const localIps = getLocalAddresses();
63
- // // for (const localIp of localIps) {
64
- // // const range = new AddressInfo(localIp);
65
- // // if (range.family === 'IPv4' && net.isIPv4(ipAddress)) {
66
- // // if (range.address === ipAddress) {
67
- // // return true;
68
- // // }
69
- // // } else if (range.family === 'IPv6' && net.isIPv6(ipAddress)) {
70
- // // if (range.address === ipAddress) {
71
- // // return true;
72
- // // }
73
- // // }
74
- // // }
75
- // return false;
76
- // }
77
- // // function isIPv6LocalAddress(ipv6Address: string): boolean {
78
- // // const interfaces = networkInterfaces();
79
- // // for (const interfaceName of Object.keys(interfaces)) {
80
- // // const addresses = interfaces[interfaceName].filter(
81
- // // (iface) => iface.family === 'IPv6'
82
- // // );
83
- // // for (const iface of addresses) {
84
- // // if (iface.address === ipv6Address) {
85
- // // return true;
86
- // // }
87
- // // }
88
- // // }
89
- // // return false;
90
- // // }
91
- // function isIPv6LocalAddress(ipv6Address: string): boolean {
92
- // const interfaces = networkInterfaces();
93
- // for (const interfaceName of Object.keys(interfaces)) {
94
- // const addresses = interfaces[interfaceName].filter((iface) => iface.family === 'IPv6');
95
- // for (const iface of addresses) {
96
- // if (iface.cidr) {
97
- // const [ifaceAddress, networkMask] = iface.cidr.split('/');
98
- // if (isSameNetwork(ipv6Address, networkMask, ifaceAddress)) {
99
- // return true;
100
- // }
101
- // }
102
- // }
103
- // }
104
- // return false;
105
- // }
106
- // function isSameNetwork(ipv6Address: string, networkMaskLength: string, ifaceAddress: string): boolean {
107
- // const maskLength = parseInt(networkMaskLength, 10);
108
- // const bufferLength = Math.ceil(maskLength / 8);
109
- // const addressBuffer = Buffer.from(ipv6Address.split(':').map((part) => parseInt(part, 16)));
110
- // const ifaceBuffer = Buffer.from(ifaceAddress.split(':').map((part) => parseInt(part, 16)));
111
- // for (let i = 0; i < bufferLength; i++) {
112
- // const maskBits = Math.min(maskLength - i * 8, 8);
113
- // const mask = (0xff00 >> maskBits) & 0xff;
114
- // if ((addressBuffer[i] & mask) !== ifaceBuffer[i]) {
115
- // return false;
116
- // }
117
- // }
118
- // return true;
119
- // }
120
- // // Example usage
121
- // // const ipv6AddressToCheck = 'fdb7:3df3:9615:193e:3743:1a24:69e8:127a';
122
- // // const isLocalAddress = isIPv6LocalAddress(ipv6AddressToCheck);
123
- // // console.log(`Is IPv6 Address ${ipv6AddressToCheck} on the same local network? ${isLocalAddress}`);
124
- // // // Example usage
125
- // // const ipv6AddressToCheck = 'fdb7:3df3:9615:193e:3743:1a24:69e8:127a';
126
- // // const networkMask = 'ffff:ffff:ffff:ffff::'; // Replace with the actual subnet mask
127
- // // const isLocalAddress = isIPv6LocalAddress(ipv6AddressToCheck, networkMask);
128
- // // console.log(`Is IPv6 Address ${ipv6AddressToCheck} on the same local network? ${isLocalAddress}`);
129
- // }
3
+ var hidden;
4
+ (function (hidden) {
5
+ const NetworkInterfaces = []; // Need to fix this signature
6
+ function assureNetworkInterfaces() {
7
+ // Note we don't detect changes to the interfaces
8
+ if (networkInterfaces.length > 0)
9
+ return;
10
+ const netifs = os.networkInterfaces();
11
+ for (const dev in netifs) {
12
+ netifs[dev].forEach((info) => {
13
+ let family = info.family;
14
+ if (typeof family == "number")
15
+ family = `IPv${family}`; // Strange change work-around
16
+ if (family !== 'IPv4' || info.internal === true) {
17
+ return;
18
+ }
19
+ // let info4 = info as os.NetworkInterfaceInfoIPv4;
20
+ // (<any>info)['broadcast'] = _getBroadcastAddress(info4);
21
+ const mask = ipToUnsignedInt(info.netmask);
22
+ const address = ipToUnsignedInt(info.address) & mask;
23
+ const ni = { ...info, ints: { mask, address } };
24
+ NetworkInterfaces.push(ni);
25
+ });
26
+ }
27
+ return NetworkInterfaces;
28
+ }
29
+ hidden.assureNetworkInterfaces = assureNetworkInterfaces;
30
+ ;
31
+ function isLocalIp4Address(ip4Address) {
32
+ if (ip4Address == '127.0.0.1')
33
+ return true;
34
+ const ipa = ipToUnsignedInt(ip4Address);
35
+ assureNetworkInterfaces();
36
+ return NetworkInterfaces.some((ni) => (ni.ints.address & ni.ints.mask) === (ipa & ni.ints.mask));
37
+ }
38
+ hidden.isLocalIp4Address = isLocalIp4Address;
39
+ function ipToUnsignedInt(ipAddress) {
40
+ const parts = ipAddress.split('.');
41
+ if (parts.length !== 4) {
42
+ throw new Error('Invalid IP address format');
43
+ }
44
+ const num = parts.map((part) => parseInt(part, 10));
45
+ if (num.some((part) => isNaN(part) || part < 0 || part > 255)) {
46
+ throw new Error(`Invalid IP address ${ipAddress}`);
47
+ }
48
+ const signed = (num[0] << 24) + (num[1] << 16) + (num[2] << 8) + num[3];
49
+ const unsigned = signed >>> 0;
50
+ return unsigned;
51
+ }
52
+ let pretendRemote = false;
53
+ function isLocalIpAddress(ipAddress) {
54
+ // '::ffff:172.20.3.39'
55
+ if (pretendRemote)
56
+ return false;
57
+ ipAddress = ipAddress.toLowerCase(); // Safety
58
+ if (ipAddress.startsWith('fe80:'))
59
+ return true; // Link local
60
+ if (ipAddress == "::1")
61
+ return true;
62
+ ipAddress = ipAddress.replace(/^::ffff:/, ''); // If it's like V5
63
+ if (/^[0-9.]+$/.test(ipAddress))
64
+ return isLocalIp4Address(ipAddress);
65
+ return isIPv6LocalAddress(ipAddress);
66
+ // const localIps = getLocalAddresses();
67
+ // for (const localIp of localIps) {
68
+ // const range = new AddressInfo(localIp);
69
+ // if (range.family === 'IPv4' && net.isIPv4(ipAddress)) {
70
+ // if (range.address === ipAddress) {
71
+ // return true;
72
+ // }
73
+ // } else if (range.family === 'IPv6' && net.isIPv6(ipAddress)) {
74
+ // if (range.address === ipAddress) {
75
+ // return true;
76
+ // }
77
+ // }
78
+ // }
79
+ return false;
80
+ }
81
+ hidden.isLocalIpAddress = isLocalIpAddress;
82
+ // function isIPv6LocalAddress(ipv6Address: string): boolean {
83
+ // const interfaces = networkInterfaces();
84
+ // for (const interfaceName of Object.keys(interfaces)) {
85
+ // const addresses = interfaces[interfaceName].filter(
86
+ // (iface) => iface.family === 'IPv6'
87
+ // );
88
+ // for (const iface of addresses) {
89
+ // if (iface.address === ipv6Address) {
90
+ // return true;
91
+ // }
92
+ // }
93
+ // }
94
+ // return false;
95
+ // }
96
+ function isIPv6LocalAddress(ipv6Address) {
97
+ const interfaces = networkInterfaces();
98
+ for (const interfaceName of Object.keys(interfaces)) {
99
+ const addresses = interfaces[interfaceName].filter((iface) => iface.family === 'IPv6');
100
+ for (const iface of addresses) {
101
+ if (iface.cidr) {
102
+ const [ifaceAddress, networkMask] = iface.cidr.split('/');
103
+ if (isSameNetwork(ipv6Address, networkMask, ifaceAddress)) {
104
+ return true;
105
+ }
106
+ }
107
+ }
108
+ }
109
+ return false;
110
+ }
111
+ function isSameNetwork(ipv6Address, networkMaskLength, ifaceAddress) {
112
+ const maskLength = parseInt(networkMaskLength, 10);
113
+ const bufferLength = Math.ceil(maskLength / 8);
114
+ const addressBuffer = Buffer.from(ipv6Address.split(':').map((part) => parseInt(part, 16)));
115
+ const ifaceBuffer = Buffer.from(ifaceAddress.split(':').map((part) => parseInt(part, 16)));
116
+ for (let i = 0; i < bufferLength; i++) {
117
+ const maskBits = Math.min(maskLength - i * 8, 8);
118
+ const mask = (0xff00 >> maskBits) & 0xff;
119
+ if ((addressBuffer[i] & mask) !== ifaceBuffer[i]) {
120
+ return false;
121
+ }
122
+ }
123
+ return true;
124
+ }
125
+ // Example usage
126
+ // const ipv6AddressToCheck = 'fdb7:3df3:9615:193e:3743:1a24:69e8:127a';
127
+ // const isLocalAddress = isIPv6LocalAddress(ipv6AddressToCheck);
128
+ // console.log(`Is IPv6 Address ${ipv6AddressToCheck} on the same local network? ${isLocalAddress}`);
129
+ // // Example usage
130
+ // const ipv6AddressToCheck = 'fdb7:3df3:9615:193e:3743:1a24:69e8:127a';
131
+ // const networkMask = 'ffff:ffff:ffff:ffff::'; // Replace with the actual subnet mask
132
+ // const isLocalAddress = isIPv6LocalAddress(ipv6AddressToCheck, networkMask);
133
+ // console.log(`Is IPv6 Address ${ipv6AddressToCheck} on the same local network? ${isLocalAddress}`);
134
+ })(hidden || (hidden = {}));
130
135
  //# sourceMappingURL=checkaddress.js.map
package/index.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn } from './dnsassist.js';
2
2
  import { ports, mqtt } from './ports.js';
3
3
  import { jprivs } from './jserve.js';
4
- // Misc values
4
+ export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt, jprivs };
5
5
  export const values = {
6
- exitRunit: 99
6
+ exitRunit: 99,
7
7
  };
8
- export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt, jprivs };
9
8
  export default {
10
9
  resolve4,
11
10
  resolveLocal4,
package/package.json CHANGED
@@ -1,35 +1,29 @@
1
1
  {
2
2
  "name": "@bobfrankston/miscassists",
3
- "version": "1.0.39",
4
- "description": "Miscellaneous Node.js utilities",
3
+ "version": "1.0.42",
4
+ "description": "",
5
5
  "main": "index.js",
6
- "types": "index.d.ts",
6
+ "module": "main.js",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "release": "tsc && git add -A && git diff-index --quiet HEAD || git commit -m \"Pre-release changes\" && npm version patch -m \"Release %s\" && git push && git push --tags && sleep 5 && npm publish --loglevel=error"
9
+ "build": "tsc",
10
+ "prerelease:local": "git add -A && (git diff-index --quiet HEAD || git commit -m \"Pre-release commit\")",
11
+ "preversion": "npm run build && git add -A",
12
+ "postversion": "git push && git push --tags",
13
+ "release": "npm run prerelease:local && npm version patch && npm publish"
10
14
  },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "keywords": [
15
- "misc",
16
- "constants"
17
- ],
18
- "author": "Bob Frankston",
15
+ "keywords": [],
16
+ "author": "",
19
17
  "license": "ISC",
20
18
  "type": "module",
21
19
  "dependencies": {
22
20
  "esm": "^3.2.25"
23
21
  },
24
22
  "devDependencies": {
25
- "@types/node": "^25.0.6"
23
+ "@types/node": "^20.12.7"
26
24
  },
27
25
  "repository": {
28
26
  "type": "git",
29
- "url": "git+https://github.com/BobFrankston/miscassists.git"
30
- },
31
- "bugs": {
32
- "url": "https://github.com/BobFrankston/miscassists/issues"
33
- },
34
- "homepage": "https://github.com/BobFrankston/miscassists#readme"
27
+ "url": "https://github.com/BobFrankston/miscassists.git"
28
+ }
35
29
  }
package/ports.js CHANGED
@@ -14,12 +14,10 @@ export const ports = {
14
14
  jvport: 9180, // These are copied in hlib
15
15
  jvports: 9143,
16
16
  sqltcp: 9098,
17
- sqldbg: 9096,
18
17
  sqlhttp: 9099, // For now
19
18
  sqlproxy2: 9097, // Replace sqlproxy and share a port for http/https
20
19
  sqlproxy: 9080,
21
20
  sqlproxys: 9043,
22
- pinst: 9299, // Used for my pings server [currently it has a local value because --install-links isn't cooperating]
23
21
  mlplanel: 9300, // Note: This must jibe with mlpanel since we copy it to another system
24
22
  mlpanels: 9301,
25
23
  wizzer: 9310, // Work in progress Wiz control. Internal only so not https for now
@@ -32,17 +30,9 @@ export const ports = {
32
30
  syncer: 9317,
33
31
  lifxer: 9318,
34
32
  itemw: 9319,
33
+ pinst: 9299, // Used for my pings server [currently it has a local value because --install-links isn't cooperating]
35
34
  stephanie: 9320, // For testing stephanie site locally
36
- asyncer: 9321,
37
- // 9322 is used by Windows
38
- psyncer: 9324, // Used for the powershell version
39
- rmfAlpha2: 9325, // So we can try alternative clients.
40
- gcard: 9326,
41
- oauth: 9326, // Same as gcard because sahred
42
- logit: 9328,
43
- carder: 9329,
44
- cardaid: 9330,
45
- httpUDP: 9331, // HTTP UDP server
35
+ httpudp: 9321
46
36
  };
47
37
  const mqttHost = "pi4c";
48
38
  const mqttPort = 1883;
@@ -1,12 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npx tsc)",
5
- "Bash(dir:*)",
6
- "Bash(npx tsc:*)",
7
- "Bash(git config:*)",
8
- "Bash(npm config set:*)",
9
- "Bash(git add:*)"
10
- ]
11
- }
12
- }
package/.gitattributes DELETED
@@ -1,5 +0,0 @@
1
- * text=auto eol=lf
2
- *.ts text eol=lf
3
- *.js text eol=lf
4
- *.json text eol=lf
5
- *.md text eol=lf
package/README.md DELETED
@@ -1,21 +0,0 @@
1
- # @bobfrankston/miscassists
2
-
3
- <!-- Reminder: See c:\users\bob\onedrive\documents\ai\programming.md -->
4
-
5
- Miscellaneous Node.js utilities including DNS helpers, port definitions, and server utilities.
6
-
7
- ## Installation
8
-
9
- ```bash
10
- npm install @bobfrankston/miscassists
11
- ```
12
-
13
- ## Usage
14
-
15
- ```javascript
16
- import { resolve4, isLocalIP, ports, jprivs, values} from '@bobfrankston/miscassists';
17
- ```
18
-
19
- ## License
20
-
21
- ISC
package/checkaddress.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=checkaddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkaddress.d.ts","sourceRoot":"","sources":["checkaddress.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkaddress.js","sourceRoot":"","sources":["checkaddress.ts"],"names":[],"mappings":"AAAA,kEAAkE;;AAKlE,yFAAyF;AACzF,qBAAqB;AACrB,2FAA2F;AAE3F,6EAA6E;AAE7E,k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kE;AAClE,kDAAkD;AAClD,iEAAiE;AACjE,sGAAsG;AACtG,+CAA+C;AAC/C,oCAAoC;AACpC,iFAAiF;AACjF,mFAAmF;AACnF,uCAAuC;AACvC,wBAAwB;AACxB,oBAAoB;AACpB,gBAAgB;AAChB,YAAY;AACZ,wBAAwB;AACxB,QAAQ;AAER,8GAA8G;AAC9G,8DAA8D;AAC9D,0DAA0D;AAC1D,uGAAuG;AACvG,sGAAsG;AAEtG,mDAAmD;AACnD,gEAAgE;AAChE,wDAAwD;AACxD,kEAAkE;AAClE,gCAAgC;AAChC,gBAAgB;AAChB,YAAY;AACZ,uBAAuB;AACvB,QAAQ;AAER,uBAAuB;AACvB,+EAA+E;AAC/E,wEAAwE;AACxE,4GAA4G;AAG5G,0BAA0B;AAC1B,+EAA+E;AAC/E,6FAA6F;AAC7F,qFAAqF;AACrF,4GAA4G;AAC5G,IAAI"}
package/dnsassist.d.ts DELETED
@@ -1,19 +0,0 @@
1
- /***
2
- * return IPv4 address giving local addresses priority
3
- */
4
- export declare const default_fqdn = "aaz.lt";
5
- export declare function resolve4(name: string, local?: boolean): Promise<string>;
6
- export declare function resolveLocal4(name: string): Promise<string>;
7
- interface localIPAndMask {
8
- ipn: number;
9
- mask: number;
10
- s: {
11
- ip: string;
12
- mask: string;
13
- };
14
- }
15
- export declare let localIPAndMasks: localIPAndMask[];
16
- export declare function isLocalIP(ip: string): boolean;
17
- export declare function isThisMachine(ip: string): boolean;
18
- export {};
19
- //# sourceMappingURL=dnsassist.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dnsassist.d.ts","sourceRoot":"","sources":["dnsassist.ts"],"names":[],"mappings":"AAGA;;GAEG;AAEH,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB7E;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MA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ACxD,IAAI,EAAE,KAAK,KAAK,IAAI,EAAE,IAAI,WAAW,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7D,OAAO,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACjC,CAAC;AAAA,CAAC"}
package/index.d.ts DELETED
@@ -1,81 +0,0 @@
1
- import { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn } from './dnsassist.js';
2
- import { ports, mqtt } from './ports.js';
3
- import { makerPayload } from './maker.js';
4
- import { jSubSiteInfo, jpriv, jprivs } from './jserve.js';
5
- export declare const values: {
6
- exitRunit: number;
7
- };
8
- export { resolve4, resolveLocal4, isLocalIP, isThisMachine, default_fqdn, ports, mqtt, jprivs };
9
- export type { makerPayload, jSubSiteInfo, jpriv };
10
- declare const _default: {
11
- resolve4: typeof resolve4;
12
- resolveLocal4: typeof resolveLocal4;
13
- isLocalIP: typeof isLocalIP;
14
- isThisMachine: typeof isThisMachine;
15
- default_fqdn: string;
16
- ports: {
17
- jserve2: number;
18
- jserve2s: number;
19
- devlisten: number;
20
- halisten: number;
21
- rmfsite: number;
22
- rmfsites: number;
23
- rmfprod: number;
24
- rmfbeta: number;
25
- rmfalpha: number;
26
- shim: number;
27
- shims: number;
28
- jvport: number;
29
- jvports: number;
30
- sqltcp: number;
31
- sqldbg: number;
32
- sqlhttp: number;
33
- sqlproxy2: number;
34
- sqlproxy: number;
35
- sqlproxys: number;
36
- pinst: number;
37
- mlplanel: number;
38
- mlpanels: number;
39
- wizzer: number;
40
- pserve: number;
41
- vserve: number;
42
- checkmake: number;
43
- bbt: number;
44
- backts: number;
45
- backserve: number;
46
- syncer: number;
47
- lifxer: number;
48
- itemw: number;
49
- stephanie: number;
50
- asyncer: number;
51
- psyncer: number;
52
- rmfAlpha2: number;
53
- gcard: number;
54
- oauth: number;
55
- logit: number;
56
- carder: number;
57
- cardaid: number;
58
- httpUDP: number;
59
- };
60
- mqtt: {
61
- host: string;
62
- port: number;
63
- topic: {
64
- rmf: string;
65
- subtopics: {
66
- restart: string;
67
- };
68
- devqtt: {
69
- top: string;
70
- sub: string;
71
- };
72
- };
73
- URL: string;
74
- };
75
- jprivs: string[];
76
- values: {
77
- exitRunit: number;
78
- };
79
- };
80
- export default _default;
81
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAChG,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1D,eAAO,MAAM,MAAM;;CAElB,CAAA;AAED,OAAO,EACH,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAC/D,KAAK,EAAE,IAAI,EAAE,MAAM,EACtB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAUC"}
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAChG,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAExC,OAAO,EAAuB,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1D,cAAc;AAEd,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,SAAS,EAAE,EAAE;CAChB,CAAA;AAED,OAAO,EACH,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAC/D,KAAK,EAAE,IAAI,EAAE,MAAM,EACtB,CAAC;AAIF,eAAe;IACX,QAAQ;IACR,aAAa;IACb,SAAS;IACT,aAAa;IACb,YAAY;IACZ,KAAK;IACL,IAAI;IACJ,MAAM;IACN,MAAM;CACT,CAAA"}
package/jserve.d.ts DELETED
@@ -1,10 +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
- }
10
- //# sourceMappingURL=jserve.d.ts.map
package/jserve.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"jserve.d.ts","sourceRoot":"","sources":["jserve.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM,UAKT,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAI1C,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB"}
package/jserve.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"jserve.js","sourceRoot":"","sources":["jserve.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,uEAAuE;AAEvE,8BAA8B;AAC9B,gDAAgD;AAChD,iEAAiE;AAEjE,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,OAAO,EAAa,iBAAiB;IACrC,MAAM,EAAc,cAAc;IAClC,OAAO,EAAa,sBAAsB;IAC1C,MAAM,EAAc,eAAe;IACnC,KAAK;CAAC,CAAC,CAAa,gBAAgB"}
package/maker.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export interface makerPayload {
2
- content: {
3
- name: string;
4
- value: string;
5
- displayName: string;
6
- deviceId: string;
7
- descriptionText: string;
8
- unit: object;
9
- data: object;
10
- };
11
- }
12
- //# sourceMappingURL=maker.d.ts.map
package/maker.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"maker.d.ts","sourceRoot":"","sources":["maker.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAA;KACf,CAAA;CACJ"}
package/maker.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"maker.js","sourceRoot":"","sources":["maker.ts"],"names":[],"mappings":"AAAA,iCAAiC"}
package/ports.d.ts DELETED
@@ -1,60 +0,0 @@
1
- export declare const ports: {
2
- jserve2: number;
3
- jserve2s: number;
4
- devlisten: number;
5
- halisten: number;
6
- rmfsite: number;
7
- rmfsites: number;
8
- rmfprod: number;
9
- rmfbeta: number;
10
- rmfalpha: number;
11
- shim: number;
12
- shims: number;
13
- jvport: number;
14
- jvports: number;
15
- sqltcp: number;
16
- sqldbg: number;
17
- sqlhttp: number;
18
- sqlproxy2: number;
19
- sqlproxy: number;
20
- sqlproxys: number;
21
- pinst: number;
22
- mlplanel: number;
23
- mlpanels: number;
24
- wizzer: number;
25
- pserve: number;
26
- vserve: number;
27
- checkmake: number;
28
- bbt: number;
29
- backts: number;
30
- backserve: number;
31
- syncer: number;
32
- lifxer: number;
33
- itemw: number;
34
- stephanie: number;
35
- asyncer: number;
36
- psyncer: number;
37
- rmfAlpha2: number;
38
- gcard: number;
39
- oauth: number;
40
- logit: number;
41
- carder: number;
42
- cardaid: number;
43
- httpUDP: number;
44
- };
45
- export declare const mqtt: {
46
- host: string;
47
- port: number;
48
- topic: {
49
- rmf: string;
50
- subtopics: {
51
- restart: string;
52
- };
53
- devqtt: {
54
- top: string;
55
- sub: string;
56
- };
57
- };
58
- URL: string;
59
- };
60
- //# sourceMappingURL=ports.d.ts.map
package/ports.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["ports.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DjB,CAAA;AAKD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;CAchB,CAAA"}
package/ports.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ports.js","sourceRoot":"","sources":["ports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,OAAO,EAAG,KAAK;IACf,QAAQ,EAAE,KAAK,EAAS,mDAAmD;IAE3E,SAAS,EAAE,IAAI,EAAS,+BAA+B;IACvD,QAAQ,EAAE,IAAI,EAAU,sCAAsC;IAE9D,OAAO,EAAE,IAAI,EAAW,+CAA+C;IACvE,QAAQ,EAAE,IAAI,EAAU,oDAAoD;IAE5E,OAAO,EAAE,IAAI,EAAW,oDAAoD;IAC5E,OAAO,EAAE,IAAI,EAAW,8CAA8C;IACtE,QAAQ,EAAE,IAAI,EAAU,uCAAuC;IAE/D,IAAI,EAAE,IAAI,EAAc,0CAA0C;IAClE,KA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