@econ-v1/ports 7.6.65 → 7.6.67

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.
@@ -11,6 +11,10 @@ export type NatProfile = {
11
11
  */
12
12
  export type NatProbePort = {
13
13
  measure(): Promise<NatProfile>;
14
+ networkIdentity?(): {
15
+ srflxDiversityKey: string;
16
+ family: "v4" | "v6";
17
+ } | undefined;
14
18
  invalidate(): void;
15
19
  close(): void;
16
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"nat-profile.d.ts","sourceRoot":"","sources":["../src/nat-profile.js"],"names":[],"mappings":"sBACc,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS;yBACzD;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAAC;;;;2BAE/H;IAAC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAAC,UAAU,IAAI,IAAI,CAAC;IAAC,KAAK,IAAI,IAAI,CAAA;CAAC;;;;oCAEnE,CAAC,UAAU,EAAE,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC"}
1
+ {"version":3,"file":"nat-profile.d.ts","sourceRoot":"","sources":["../src/nat-profile.js"],"names":[],"mappings":"sBACc,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS;yBACzD;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAAC;;;;2BAE/H;IAAC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAAC,eAAe,CAAC,IAAI;QAAC,iBAAiB,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;KAAC,GAAG,SAAS,CAAC;IAAC,UAAU,IAAI,IAAI,CAAC;IAAC,KAAK,IAAI,IAAI,CAAA;CAAC;;;;oCAErJ,CAAC,UAAU,EAAE,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@econ-v1/ports",
3
- "version": "7.6.65",
3
+ "version": "7.6.67",
4
4
  "description": "Platform-neutral ports for Node client applications",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "Node contributors",
@@ -2,7 +2,7 @@
2
2
  /** @typedef {"none" | "cone" | "symmetric" | "udp_blocked" | "unknown"} NatType */
3
3
  /** @typedef {{nat_type: NatType, cgnat: boolean | null, double_nat: boolean | null, signals: readonly string[], measured_at: number | null}} NatProfile */
4
4
  /** Session-cached, privacy-safe browser measurement. Invalidating cancels stale results.
5
- * @typedef {{measure(): Promise<NatProfile>, invalidate(): void, close(): void}} NatProbePort */
5
+ * @typedef {{measure(): Promise<NatProfile>, networkIdentity?(): {srflxDiversityKey: string, family: "v4" | "v6"} | undefined, invalidate(): void, close(): void}} NatProbePort */
6
6
  /** Subscribe to network changes; the returned function removes the subscription.
7
7
  * @typedef {(invalidate: () => void) => (() => void)} NatNetworkChangesPort */
8
8
  export {};