pmcf 6.66.0 → 6.66.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.66.0",
3
+ "version": "6.66.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/constants.mjs CHANGED
@@ -7,4 +7,5 @@ export const PROTOCOL_QUIC = "quic";
7
7
  export const FAMILY_UNIX = "unix";
8
8
  export const FAMILY_DNS = "dns";
9
9
  export const FAMILY_IPV4_IPV6 = new Set([FAMILY_IPV4, FAMILY_IPV6]);
10
+ export const FAMILY_DNS_IPV4_IPV6 = new Set([FAMILY_DNS, FAMILY_IPV4, FAMILY_IPV6]);
10
11
 
@@ -145,6 +145,8 @@ export class CoreService extends base {
145
145
  filter = undefined;
146
146
  }
147
147
 
148
+ const seen = new Set();
149
+
148
150
  for (const e of data) {
149
151
  if (type && e.type.name !== type) {
150
152
  continue;
@@ -172,7 +174,11 @@ export class CoreService extends base {
172
174
  }
173
175
 
174
176
  if (e.scheme || e.pathname) {
175
- result.push(new HTTPEndpoint(this, na, options));
177
+ const he = new HTTPEndpoint(this, na, options);
178
+ if (!seen.has(he.url.toString())) {
179
+ seen.add(he.url.toString());
180
+ result.push(he);
181
+ }
176
182
  } else {
177
183
  result.push(new Endpoint(this, na, options));
178
184
  }
package/src/endpoint.mjs CHANGED
@@ -169,7 +169,7 @@ export class DomainNameEndpoint extends PortEndpoint {
169
169
  }
170
170
 
171
171
  /**
172
- * Endpoint based on http
172
+ * Endpoint based on url
173
173
  */
174
174
  export class HTTPEndpoint extends BaseEndpoint {
175
175
  static name = "url_endpoint";