From aa49d096b0ec664846fd1e8e13209eb86bfe83ca Mon Sep 17 00:00:00 2001 From: "May B." Date: Sun, 25 Jan 2026 12:02:13 +0100 Subject: [PATCH] feat: export config in opts Allows to get fields like branch without parsing config file --- src/ScreepsAPI.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ScreepsAPI.js b/src/ScreepsAPI.js index 8a9e03c..b6da182 100644 --- a/src/ScreepsAPI.js +++ b/src/ScreepsAPI.js @@ -27,11 +27,10 @@ export class ScreepsAPI extends RawAPI { Object.assign( { hostname: conf.host, - port: conf.port, protocol: conf.secure ? 'https' : 'http', - token: conf.token, - path: conf.path || '/' + path: '/' }, + conf, opts ) )