@open-wa/wa-automate 4.46.0 → 4.46.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/dist/cli/index.js CHANGED
@@ -103,7 +103,7 @@ function start() {
103
103
  }
104
104
  try {
105
105
  const client = yield (0, index_1.create)(Object.assign({}, createConfig));
106
- (0, server_1.setupHttpServer)(cliConfig);
106
+ yield (0, server_1.setupHttpServer)(cliConfig);
107
107
  if (cliConfig.autoReject) {
108
108
  yield client.autoReject(cliConfig.onCall);
109
109
  }
@@ -34,7 +34,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.setupSocketServer = exports.setupBotPressHandler = exports.setupChatwoot = exports.setupTwilioCompatibleWebhook = exports.setupMediaMiddleware = exports.listListeners = exports.getCommands = exports.setupRefocusDisengageMiddleware = exports.setupSwaggerStatsMiddleware = exports.setupApiDocs = exports.setupAuthenticationLayer = exports.enableCORSRequests = exports.setUpExpressApp = exports.setupHttpServer = exports.server = exports.app = void 0;
35
35
  //@ts-ignore
36
36
  const express_1 = __importDefault(require("express"));
37
- const node_https_1 = __importDefault(require("node:https"));
37
+ const https_1 = __importDefault(require("https"));
38
38
  const node_http_1 = __importDefault(require("node:http"));
39
39
  const collections_1 = require("./collections");
40
40
  const express_robots_txt_1 = __importDefault(require("express-robots-txt"));
@@ -99,7 +99,7 @@ const setupHttpServer = (cliConfig) => {
99
99
  });
100
100
  if (privContents && certContents) {
101
101
  const options = { key: privContents, cert: certContents };
102
- exports.server = node_https_1.default.createServer(options, exports.app);
102
+ exports.server = https_1.default.createServer(options, exports.app);
103
103
  return;
104
104
  }
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.46.0",
3
+ "version": "4.46.1",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",