@econ-v1/ports 7.6.66 → 7.6.68
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/dist/nat-profile.d.ts +4 -0
- package/dist/nat-profile.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/nat-profile.js +1 -1
package/dist/nat-profile.d.ts
CHANGED
|
@@ -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;;;;
|
|
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
package/src/nat-profile.js
CHANGED
|
@@ -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 {};
|