@stacksjs/server 0.70.84 → 0.70.85

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 (2) hide show
  1. package/dist/index.js +0 -63
  2. package/package.json +6 -5
package/dist/index.js CHANGED
@@ -1,68 +1,5 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
-
4
- // src/config.ts
5
- import { ports } from "@stacksjs/config";
6
- function config(options) {
7
- const serversMap = {
8
- frontend: {
9
- host: "localhost",
10
- port: ports.frontend
11
- },
12
- backend: {
13
- host: "localhost",
14
- port: ports.backend
15
- },
16
- api: {
17
- host: "localhost",
18
- port: ports.api
19
- },
20
- admin: {
21
- host: "localhost",
22
- port: ports.admin
23
- },
24
- library: {
25
- host: "localhost",
26
- port: ports.library
27
- },
28
- desktop: {
29
- host: "localhost",
30
- port: ports.desktop
31
- },
32
- docs: {
33
- host: "localhost",
34
- port: ports.docs
35
- },
36
- email: {
37
- host: "localhost",
38
- port: ports.email
39
- },
40
- inspect: {
41
- host: "localhost",
42
- port: ports.inspect
43
- },
44
- "system-tray": {
45
- host: "localhost",
46
- port: ports.systemTray
47
- },
48
- database: {
49
- host: "localhost",
50
- port: ports.database
51
- }
52
- };
53
- if (options.type && options.type in serversMap) {
54
- return {
55
- host: serversMap[options.type].host,
56
- port: serversMap[options.type].port,
57
- open: false
58
- };
59
- }
60
- return {
61
- host: options.host || "stacks.localhost",
62
- port: options.port || 3000,
63
- open: false
64
- };
65
- }
66
3
  // src/controllers/base.ts
67
4
  import { log } from "@stacksjs/logging";
68
5
  import { response } from "@stacksjs/router";
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.70.84",
4
+ "sideEffects": false,
5
+ "version": "0.70.85",
5
6
  "description": "Local development and production-ready.",
6
7
  "author": "Chris Breuer",
7
8
  "contributors": [
@@ -52,11 +53,11 @@
52
53
  "prepublishOnly": "bun run build"
53
54
  },
54
55
  "devDependencies": {
55
- "@stacksjs/config": "0.70.84",
56
+ "@stacksjs/config": "0.70.85",
56
57
  "better-dx": "^0.2.16",
57
- "@stacksjs/path": "0.70.84",
58
- "@stacksjs/router": "0.70.84",
59
- "@stacksjs/validation": "0.70.84",
58
+ "@stacksjs/path": "0.70.85",
59
+ "@stacksjs/router": "0.70.85",
60
+ "@stacksjs/validation": "0.70.85",
60
61
  "bun-plugin-auto-imports": "^0.4.0"
61
62
  }
62
63
  }