@orion-js/http 3.1.1 → 3.1.12

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/lib/start.js +2 -1
  3. package/package.json +6 -5
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Orionjs Team
3
+ Copyright (c) 2022 Orionjs Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/start.js CHANGED
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getApp = exports.startServer = void 0;
7
+ const env_1 = require("@orion-js/env");
7
8
  const express_1 = __importDefault(require("express"));
8
9
  global.appRef = null;
9
- const startServer = (port = Number(process.env.PORT)) => {
10
+ const startServer = (port = Number((0, env_1.internalGetEnv)('http_port', 'PORT'))) => {
10
11
  const app = (0, exports.getApp)();
11
12
  app.listen(port);
12
13
  return app;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-js/http",
3
- "version": "3.1.1",
3
+ "version": "3.1.12",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -17,9 +17,10 @@
17
17
  "upgrade-interactive": "yarn upgrade-interactive"
18
18
  },
19
19
  "dependencies": {
20
- "@orion-js/helpers": "^3.1.1",
21
- "@orion-js/resolvers": "^3.1.1",
22
- "@orion-js/schema": "^3.1.1",
20
+ "@orion-js/env": "^3.1.12",
21
+ "@orion-js/helpers": "^3.1.12",
22
+ "@orion-js/resolvers": "^3.1.12",
23
+ "@orion-js/schema": "^3.1.6",
23
24
  "body-parser": "1.19.0",
24
25
  "express": "4.17.1"
25
26
  },
@@ -39,5 +40,5 @@
39
40
  "publishConfig": {
40
41
  "access": "public"
41
42
  },
42
- "gitHead": "776fc314f67ab21707912ebeadc9ed8b525cbaee"
43
+ "gitHead": "a6b82a931bea3179dfac4099579096c4f7a780bb"
43
44
  }