pmcf 6.65.4 → 6.65.5

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.65.4",
3
+ "version": "6.65.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -171,7 +171,7 @@ export class CoreService extends base {
171
171
  continue;
172
172
  }
173
173
 
174
- if (e.pathname) {
174
+ if (e.scheme || e.pathname) {
175
175
  result.push(new HTTPEndpoint(this, na, options));
176
176
  } else {
177
177
  result.push(new Endpoint(this, na, options));
package/src/endpoint.mjs CHANGED
@@ -186,6 +186,7 @@ export class HTTPEndpoint extends BaseEndpoint {
186
186
  * @param {Service} service
187
187
  * @param {string|URL} address
188
188
  * @param {object} data
189
+ * @param {string} data.scheme
189
190
  * @param {number} data.port
190
191
  * @param {string} data.pathname
191
192
  * @param {string} data.family
@@ -200,8 +201,11 @@ export class HTTPEndpoint extends BaseEndpoint {
200
201
  } else {
201
202
  this.family = data.family ?? address.family;
202
203
 
203
- this.url = new URL(
204
- (data.tls ? "https://" : "http://") +
204
+ const scheme = data.scheme ?
205
+ `${data.scheme}://` :
206
+ (data.tls ? "https://" : "http://");
207
+
208
+ this.url = new URL(scheme +
205
209
  (data.family === FAMILY_IPV6
206
210
  ? "[" + address.address + "]"
207
211
  : address.address) +
@@ -10,7 +10,7 @@ export class openldap extends CoreService {
10
10
  systemdService: "slapd.service",
11
11
  systemUserName: "ldap",
12
12
  systemGroupName: "ldap",
13
- extends: ["ldap", "ldapi"]
13
+ extends: ["ldap", "ldaps", "ldapi"]
14
14
  };
15
15
 
16
16
  static {