Skip to content

Commit c65caaf

Browse files
committed
format for links
1 parent a0b621f commit c65caaf

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,19 @@
558558
"description": "Password of username. If not set here it must be provided when connecting."
559559
},
560560
"https": {
561-
"description": "Use SSL to access to API.",
561+
"description": "Use SSL/TLS to access the server.",
562562
"type": "boolean",
563563
"default": false
564564
},
565565
"links": {
566566
"description": "Extra links for the server.",
567-
"type": "object"
567+
"type": "object",
568+
"patternProperties": {
569+
".*": {
570+
"type": "string",
571+
"format": "uri"
572+
}
573+
}
568574
},
569575
"docker-compose": {
570576
"type": "object",

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class AtelierAPI {
228228
headers["Cache-Control"] = "no-cache";
229229

230230
const proto = this._config.https ? "https" : "http";
231-
const http: any = this._config.https ? httpsModule : httpModule;
231+
const http = this._config.https ? httpsModule : httpModule;
232232
const agent = new http.Agent({
233233
keepAlive: true,
234234
maxSockets: 10,

0 commit comments

Comments
 (0)