innetjs 2.4.1-beta.0 → 2.4.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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  ;(function () {
4
- const env = {"__INNETJS__PACKAGE_VERSION":"2.4.1-beta.0"};
4
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.4.1"};
5
5
  if (typeof process === 'undefined') {
6
6
  globalThis.process = { env: env };
7
7
  } else if (process.env) {
@@ -1,5 +1,5 @@
1
1
  ;(function () {
2
- const env = {"__INNETJS__PACKAGE_VERSION":"2.4.1-beta.0"};
2
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.4.1"};
3
3
  if (typeof process === 'undefined') {
4
4
  globalThis.process = { env: env };
5
5
  } else if (process.env) {
package/bin/innet CHANGED
@@ -746,7 +746,8 @@ class InnetJS {
746
746
  const server = httpsUsing ? https__default["default"].createServer({ key, cert }, app) : http__default["default"].createServer(app);
747
747
  let port = this.port;
748
748
  const listener = () => {
749
- console.log(`${chalk__default["default"].green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port} and http${httpsUsing ? 's' : ''}://${address__default["default"].ip()}:${port}`);
749
+ const baseUrl = this.baseUrl === '/' ? '' : this.baseUrl;
750
+ console.log(`${chalk__default["default"].green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port}${baseUrl} and http${httpsUsing ? 's' : ''}://${address__default["default"].ip()}:${port}${baseUrl}`);
750
751
  };
751
752
  server.listen(port, listener);
752
753
  server.on('error', (e) => tslib.__awaiter(this, void 0, void 0, function* () {
@@ -784,7 +785,7 @@ class InnetJS {
784
785
  }
785
786
 
786
787
  (function () {
787
- const env = {"__INNETJS__PACKAGE_VERSION":"2.4.1-beta.0"};
788
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.4.1"};
788
789
  if (typeof process === 'undefined') {
789
790
  globalThis.process = { env: env };
790
791
  } else if (process.env) {
package/index.js CHANGED
@@ -636,7 +636,8 @@ class InnetJS {
636
636
  const server = httpsUsing ? https__default["default"].createServer({ key, cert }, app) : http__default["default"].createServer(app);
637
637
  let port = this.port;
638
638
  const listener = () => {
639
- console.log(`${chalk__default["default"].green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port} and http${httpsUsing ? 's' : ''}://${address__default["default"].ip()}:${port}`);
639
+ const baseUrl = this.baseUrl === '/' ? '' : this.baseUrl;
640
+ console.log(`${chalk__default["default"].green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port}${baseUrl} and http${httpsUsing ? 's' : ''}://${address__default["default"].ip()}:${port}${baseUrl}`);
640
641
  };
641
642
  server.listen(port, listener);
642
643
  server.on('error', (e) => tslib.__awaiter(this, void 0, void 0, function* () {
package/index.mjs CHANGED
@@ -601,7 +601,8 @@ class InnetJS {
601
601
  const server = httpsUsing ? https.createServer({ key, cert }, app) : http.createServer(app);
602
602
  let port = this.port;
603
603
  const listener = () => {
604
- console.log(`${chalk.green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port} and http${httpsUsing ? 's' : ''}://${address.ip()}:${port}`);
604
+ const baseUrl = this.baseUrl === '/' ? '' : this.baseUrl;
605
+ console.log(`${chalk.green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port}${baseUrl} and http${httpsUsing ? 's' : ''}://${address.ip()}:${port}${baseUrl}`);
605
606
  };
606
607
  server.listen(port, listener);
607
608
  server.on('error', (e) => __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.4.1-beta.0",
3
+ "version": "2.4.1",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",