slicejs-web-framework 4.0.0 → 4.0.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.
Files changed (70) hide show
  1. package/.opencode/opencode.json +14 -14
  2. package/LICENSE +21 -21
  3. package/README.md +97 -97
  4. package/Slice/Components/Structural/ContextManager/ContextManager.js +422 -422
  5. package/Slice/Components/Structural/ContextManager/ContextManagerDebugger.js +470 -470
  6. package/Slice/Components/Structural/Controller/Controller.js +1406 -1406
  7. package/Slice/Components/Structural/Controller/allowedValuesValidation.js +52 -52
  8. package/Slice/Components/Structural/Debugger/Debugger.html +72 -72
  9. package/Slice/Components/Structural/Debugger/Debugger.js +1505 -1505
  10. package/Slice/Components/Structural/EventManager/EventManager.js +651 -651
  11. package/Slice/Components/Structural/EventManager/EventManagerDebugger.js +985 -985
  12. package/Slice/Components/Structural/LeakInspector/LeakInspector.js +296 -296
  13. package/Slice/Components/Structural/Logger/Log.js +10 -10
  14. package/Slice/Components/Structural/Logger/LogViewer/LogViewer.js +662 -662
  15. package/Slice/Components/Structural/Logger/Logger.js +225 -225
  16. package/Slice/Components/Structural/Router/Router.js +793 -793
  17. package/Slice/Components/Structural/StylesManager/StylesManager.js +82 -82
  18. package/Slice/Components/Structural/StylesManager/ThemeManager/ThemeManager.js +162 -162
  19. package/Slice/Slice.js +686 -697
  20. package/Slice/tests/build-bundled-component-without-category.test.js +103 -103
  21. package/Slice/tests/build-js-only-visual-components.test.js +144 -144
  22. package/Slice/tests/build-singleton.test.js +244 -244
  23. package/Slice/tests/bundle-v2-runtime-contract.test.js +738 -738
  24. package/Slice/tests/context-patch-use.test.js +95 -95
  25. package/Slice/tests/destroy-cascade.test.js +215 -215
  26. package/Slice/tests/event-emitters.test.js +79 -79
  27. package/Slice/tests/event-registry.test.js +141 -141
  28. package/Slice/tests/fixtures/real-runtime-loader.mjs +21 -21
  29. package/Slice/tests/leak-orphans.test.js +131 -131
  30. package/Slice/tests/props-allowed-values-validation.test.js +119 -119
  31. package/Slice/tests/public-env-runtime-accessors.test.js +44 -44
  32. package/Slice/tests/public-env-typed-accessors.test.js +66 -66
  33. package/Slice/tests/router-loading-finally.test.js +68 -68
  34. package/api/framework/devDepsOptimizer.js +335 -335
  35. package/api/framework/express.js +3 -3
  36. package/api/framework/precompressedStatic.js +93 -93
  37. package/api/framework/publicEnvResolver.js +123 -123
  38. package/api/framework/securityMiddleware.js +197 -197
  39. package/api/framework/server.js +411 -411
  40. package/api/index.js +7 -7
  41. package/api/tests/dev-deps-optimizer.test.js +137 -137
  42. package/api/tests/dev-server-external.test.js +56 -56
  43. package/api/tests/precompressed-static.test.js +119 -119
  44. package/api/tests/public-env-resolver.test.js +193 -193
  45. package/package.json +49 -49
  46. package/sliceConfig.schema.json +122 -122
  47. package/src/App/index.html +69 -69
  48. package/src/App/index.js +20 -20
  49. package/src/App/style.css +11 -11
  50. package/src/Components/AppComponents/AboutSection/AboutSection.css +9 -9
  51. package/src/Components/AppComponents/AboutSection/AboutSection.html +8 -8
  52. package/src/Components/AppComponents/AboutSection/AboutSection.js +12 -12
  53. package/src/Components/AppComponents/AppShell/AppShell.css +10 -10
  54. package/src/Components/AppComponents/AppShell/AppShell.html +4 -4
  55. package/src/Components/AppComponents/AppShell/AppShell.js +36 -36
  56. package/src/Components/AppComponents/HomeSection/HomeSection.css +20 -20
  57. package/src/Components/AppComponents/HomeSection/HomeSection.html +10 -10
  58. package/src/Components/AppComponents/HomeSection/HomeSection.js +19 -19
  59. package/src/Components/components.js +8 -8
  60. package/src/public/Styles/sliceStyles.css +34 -34
  61. package/src/public/Themes/Dark.css +42 -42
  62. package/src/public/Themes/Light.css +31 -31
  63. package/src/public/Themes/Slice.css +47 -47
  64. package/src/public/manifest.json +15 -15
  65. package/src/public/robots.txt +4 -4
  66. package/src/public/sitemap.xml +8 -8
  67. package/src/routes.js +9 -9
  68. package/src/sliceConfig.json +72 -72
  69. package/tests/router-emit-ordering.test.js +63 -63
  70. package/types/index.d.ts +219 -219
@@ -1,193 +1,193 @@
1
- import test from 'node:test';
2
- import assert from 'node:assert/strict';
3
- import { mkdtemp, rm, writeFile } from 'node:fs/promises';
4
- import path from 'node:path';
5
- import { tmpdir } from 'node:os';
6
-
7
- const resolverModulePath = new URL('../framework/publicEnvResolver.js', import.meta.url);
8
-
9
- async function withTempEnvFile(contents, callback) {
10
- const dir = await mkdtemp(path.join(tmpdir(), 'slice-public-env-'));
11
- const envFilePath = path.join(dir, '.env');
12
-
13
- try {
14
- await writeFile(envFilePath, contents, 'utf8');
15
- await callback(envFilePath);
16
- } finally {
17
- await rm(dir, { recursive: true, force: true });
18
- }
19
- }
20
-
21
- test('resolvePublicEnv filters only SLICE_PUBLIC_ keys', async () => {
22
- const { resolvePublicEnv } = await import(resolverModulePath.href);
23
-
24
- await withTempEnvFile(
25
- ['SLICE_PUBLIC_FROM_FILE=file-visible', 'PRIVATE_KEY=hidden-file-value', 'SLICE_API_URL=hidden-file-api-url'].join('\n'),
26
- async (envFilePath) => {
27
- const payload = resolvePublicEnv({
28
- mode: 'development',
29
- envFilePath,
30
- processEnv: {
31
- SLICE_PUBLIC_FROM_PROCESS: 'process-visible',
32
- SECRET_TOKEN: 'hidden-process-token',
33
- NODE_ENV: 'development',
34
- },
35
- });
36
-
37
- assert.equal(payload.mode, 'development');
38
- assert.deepEqual(payload.env, {
39
- SLICE_PUBLIC_FROM_FILE: 'file-visible',
40
- SLICE_PUBLIC_FROM_PROCESS: 'process-visible',
41
- });
42
- }
43
- );
44
- });
45
-
46
- test('resolvePublicEnv uses process.env values over .env values', async () => {
47
- const { resolvePublicEnv } = await import(resolverModulePath.href);
48
-
49
- await withTempEnvFile('SLICE_PUBLIC_API_URL=https://from-file.example', async (envFilePath) => {
50
- const payload = resolvePublicEnv({
51
- mode: 'development',
52
- envFilePath,
53
- processEnv: {
54
- SLICE_PUBLIC_API_URL: 'https://from-process.example',
55
- },
56
- });
57
-
58
- assert.equal(payload.mode, 'development');
59
- assert.equal(payload.env.SLICE_PUBLIC_API_URL, 'https://from-process.example');
60
- });
61
- });
62
-
63
- test('resolvePublicEnv warns about suspicious public key names without exposing values', async () => {
64
- const { resolvePublicEnv } = await import(resolverModulePath.href);
65
- const warnings = [];
66
- const logger = {
67
- warn: (...args) => warnings.push(args.map(String).join(' ')),
68
- };
69
-
70
- await withTempEnvFile('SLICE_PUBLIC_API_KEY=super-secret-value', async (envFilePath) => {
71
- const payload = resolvePublicEnv({
72
- mode: 'development',
73
- envFilePath,
74
- processEnv: {},
75
- logger,
76
- });
77
-
78
- assert.equal(payload.mode, 'development');
79
- assert.equal(payload.env.SLICE_PUBLIC_API_KEY, 'super-secret-value');
80
- assert.equal(warnings.length, 1);
81
- assert.match(warnings[0], /SLICE_PUBLIC_API_KEY/);
82
- assert.doesNotMatch(warnings[0], /super-secret-value/);
83
- });
84
- });
85
-
86
- test('resolvePublicEnv warns once when suspicious key appears in .env and processEnv', async () => {
87
- const { resolvePublicEnv } = await import(resolverModulePath.href);
88
- const warnings = [];
89
- const logger = {
90
- warn: (...args) => warnings.push(args.map(String).join(' ')),
91
- };
92
-
93
- await withTempEnvFile('SLICE_PUBLIC_API_KEY=from-file-secret', async (envFilePath) => {
94
- const payload = resolvePublicEnv({
95
- mode: 'development',
96
- envFilePath,
97
- processEnv: {
98
- SLICE_PUBLIC_API_KEY: 'from-process-secret',
99
- },
100
- logger,
101
- });
102
-
103
- assert.equal(payload.env.SLICE_PUBLIC_API_KEY, 'from-process-secret');
104
- assert.equal(warnings.length, 1);
105
- assert.match(warnings[0], /SLICE_PUBLIC_API_KEY/);
106
- assert.doesNotMatch(warnings[0], /from-file-secret|from-process-secret/);
107
- });
108
- });
109
-
110
- test('resolvePublicEnv parses first key when .env starts with BOM', async () => {
111
- const { resolvePublicEnv } = await import(resolverModulePath.href);
112
-
113
- await withTempEnvFile('\uFEFFSLICE_PUBLIC_TITLE=Slice App', async (envFilePath) => {
114
- const payload = resolvePublicEnv({
115
- mode: 'development',
116
- envFilePath,
117
- processEnv: {},
118
- });
119
-
120
- assert.equal(payload.env.SLICE_PUBLIC_TITLE, 'Slice App');
121
- });
122
- });
123
-
124
- test('resolvePublicEnv strips inline comments for unquoted values', async () => {
125
- const { resolvePublicEnv } = await import(resolverModulePath.href);
126
-
127
- await withTempEnvFile('SLICE_PUBLIC_ORIGIN=https://slice.dev # dev origin', async (envFilePath) => {
128
- const payload = resolvePublicEnv({
129
- mode: 'development',
130
- envFilePath,
131
- processEnv: {},
132
- });
133
-
134
- assert.equal(payload.env.SLICE_PUBLIC_ORIGIN, 'https://slice.dev');
135
- });
136
- });
137
-
138
- test('resolvePublicEnv strips trailing comments after quoted values', async () => {
139
- const { resolvePublicEnv } = await import(resolverModulePath.href);
140
-
141
- await withTempEnvFile('SLICE_PUBLIC_X="value" # comment', async (envFilePath) => {
142
- const payload = resolvePublicEnv({
143
- mode: 'development',
144
- envFilePath,
145
- processEnv: {},
146
- });
147
-
148
- assert.equal(payload.env.SLICE_PUBLIC_X, 'value');
149
- });
150
- });
151
-
152
- test('createPublicEnvProvider caches in production and recomputes in development', async () => {
153
- const { createPublicEnvProvider } = await import(resolverModulePath.href);
154
-
155
- await withTempEnvFile('SLICE_PUBLIC_COUNTER=from-file', async (envFilePath) => {
156
- let processValue = 'first-value';
157
- const processEnv = {
158
- get SLICE_PUBLIC_COUNTER() {
159
- return processValue;
160
- },
161
- };
162
-
163
- const productionProvider = createPublicEnvProvider({
164
- mode: 'production',
165
- envFilePath,
166
- processEnv,
167
- });
168
- assert.equal(typeof productionProvider.getPayload, 'function');
169
-
170
- const firstProduction = productionProvider.getPayload();
171
- processValue = 'second-value';
172
- const secondProduction = productionProvider.getPayload();
173
-
174
- assert.equal(firstProduction.mode, 'production');
175
- assert.equal(firstProduction.env.SLICE_PUBLIC_COUNTER, 'first-value');
176
- assert.equal(secondProduction.env.SLICE_PUBLIC_COUNTER, 'first-value');
177
-
178
- const developmentProvider = createPublicEnvProvider({
179
- mode: 'development',
180
- envFilePath,
181
- processEnv,
182
- });
183
- assert.equal(typeof developmentProvider.getPayload, 'function');
184
-
185
- const firstDevelopment = developmentProvider.getPayload();
186
- processValue = 'third-value';
187
- const secondDevelopment = developmentProvider.getPayload();
188
-
189
- assert.equal(firstDevelopment.mode, 'development');
190
- assert.equal(firstDevelopment.env.SLICE_PUBLIC_COUNTER, 'second-value');
191
- assert.equal(secondDevelopment.env.SLICE_PUBLIC_COUNTER, 'third-value');
192
- });
193
- });
1
+ import test from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { mkdtemp, rm, writeFile } from 'node:fs/promises';
4
+ import path from 'node:path';
5
+ import { tmpdir } from 'node:os';
6
+
7
+ const resolverModulePath = new URL('../framework/publicEnvResolver.js', import.meta.url);
8
+
9
+ async function withTempEnvFile(contents, callback) {
10
+ const dir = await mkdtemp(path.join(tmpdir(), 'slice-public-env-'));
11
+ const envFilePath = path.join(dir, '.env');
12
+
13
+ try {
14
+ await writeFile(envFilePath, contents, 'utf8');
15
+ await callback(envFilePath);
16
+ } finally {
17
+ await rm(dir, { recursive: true, force: true });
18
+ }
19
+ }
20
+
21
+ test('resolvePublicEnv filters only SLICE_PUBLIC_ keys', async () => {
22
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
23
+
24
+ await withTempEnvFile(
25
+ ['SLICE_PUBLIC_FROM_FILE=file-visible', 'PRIVATE_KEY=hidden-file-value', 'SLICE_API_URL=hidden-file-api-url'].join('\n'),
26
+ async (envFilePath) => {
27
+ const payload = resolvePublicEnv({
28
+ mode: 'development',
29
+ envFilePath,
30
+ processEnv: {
31
+ SLICE_PUBLIC_FROM_PROCESS: 'process-visible',
32
+ SECRET_TOKEN: 'hidden-process-token',
33
+ NODE_ENV: 'development',
34
+ },
35
+ });
36
+
37
+ assert.equal(payload.mode, 'development');
38
+ assert.deepEqual(payload.env, {
39
+ SLICE_PUBLIC_FROM_FILE: 'file-visible',
40
+ SLICE_PUBLIC_FROM_PROCESS: 'process-visible',
41
+ });
42
+ }
43
+ );
44
+ });
45
+
46
+ test('resolvePublicEnv uses process.env values over .env values', async () => {
47
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
48
+
49
+ await withTempEnvFile('SLICE_PUBLIC_API_URL=https://from-file.example', async (envFilePath) => {
50
+ const payload = resolvePublicEnv({
51
+ mode: 'development',
52
+ envFilePath,
53
+ processEnv: {
54
+ SLICE_PUBLIC_API_URL: 'https://from-process.example',
55
+ },
56
+ });
57
+
58
+ assert.equal(payload.mode, 'development');
59
+ assert.equal(payload.env.SLICE_PUBLIC_API_URL, 'https://from-process.example');
60
+ });
61
+ });
62
+
63
+ test('resolvePublicEnv warns about suspicious public key names without exposing values', async () => {
64
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
65
+ const warnings = [];
66
+ const logger = {
67
+ warn: (...args) => warnings.push(args.map(String).join(' ')),
68
+ };
69
+
70
+ await withTempEnvFile('SLICE_PUBLIC_API_KEY=super-secret-value', async (envFilePath) => {
71
+ const payload = resolvePublicEnv({
72
+ mode: 'development',
73
+ envFilePath,
74
+ processEnv: {},
75
+ logger,
76
+ });
77
+
78
+ assert.equal(payload.mode, 'development');
79
+ assert.equal(payload.env.SLICE_PUBLIC_API_KEY, 'super-secret-value');
80
+ assert.equal(warnings.length, 1);
81
+ assert.match(warnings[0], /SLICE_PUBLIC_API_KEY/);
82
+ assert.doesNotMatch(warnings[0], /super-secret-value/);
83
+ });
84
+ });
85
+
86
+ test('resolvePublicEnv warns once when suspicious key appears in .env and processEnv', async () => {
87
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
88
+ const warnings = [];
89
+ const logger = {
90
+ warn: (...args) => warnings.push(args.map(String).join(' ')),
91
+ };
92
+
93
+ await withTempEnvFile('SLICE_PUBLIC_API_KEY=from-file-secret', async (envFilePath) => {
94
+ const payload = resolvePublicEnv({
95
+ mode: 'development',
96
+ envFilePath,
97
+ processEnv: {
98
+ SLICE_PUBLIC_API_KEY: 'from-process-secret',
99
+ },
100
+ logger,
101
+ });
102
+
103
+ assert.equal(payload.env.SLICE_PUBLIC_API_KEY, 'from-process-secret');
104
+ assert.equal(warnings.length, 1);
105
+ assert.match(warnings[0], /SLICE_PUBLIC_API_KEY/);
106
+ assert.doesNotMatch(warnings[0], /from-file-secret|from-process-secret/);
107
+ });
108
+ });
109
+
110
+ test('resolvePublicEnv parses first key when .env starts with BOM', async () => {
111
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
112
+
113
+ await withTempEnvFile('\uFEFFSLICE_PUBLIC_TITLE=Slice App', async (envFilePath) => {
114
+ const payload = resolvePublicEnv({
115
+ mode: 'development',
116
+ envFilePath,
117
+ processEnv: {},
118
+ });
119
+
120
+ assert.equal(payload.env.SLICE_PUBLIC_TITLE, 'Slice App');
121
+ });
122
+ });
123
+
124
+ test('resolvePublicEnv strips inline comments for unquoted values', async () => {
125
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
126
+
127
+ await withTempEnvFile('SLICE_PUBLIC_ORIGIN=https://slice.dev # dev origin', async (envFilePath) => {
128
+ const payload = resolvePublicEnv({
129
+ mode: 'development',
130
+ envFilePath,
131
+ processEnv: {},
132
+ });
133
+
134
+ assert.equal(payload.env.SLICE_PUBLIC_ORIGIN, 'https://slice.dev');
135
+ });
136
+ });
137
+
138
+ test('resolvePublicEnv strips trailing comments after quoted values', async () => {
139
+ const { resolvePublicEnv } = await import(resolverModulePath.href);
140
+
141
+ await withTempEnvFile('SLICE_PUBLIC_X="value" # comment', async (envFilePath) => {
142
+ const payload = resolvePublicEnv({
143
+ mode: 'development',
144
+ envFilePath,
145
+ processEnv: {},
146
+ });
147
+
148
+ assert.equal(payload.env.SLICE_PUBLIC_X, 'value');
149
+ });
150
+ });
151
+
152
+ test('createPublicEnvProvider caches in production and recomputes in development', async () => {
153
+ const { createPublicEnvProvider } = await import(resolverModulePath.href);
154
+
155
+ await withTempEnvFile('SLICE_PUBLIC_COUNTER=from-file', async (envFilePath) => {
156
+ let processValue = 'first-value';
157
+ const processEnv = {
158
+ get SLICE_PUBLIC_COUNTER() {
159
+ return processValue;
160
+ },
161
+ };
162
+
163
+ const productionProvider = createPublicEnvProvider({
164
+ mode: 'production',
165
+ envFilePath,
166
+ processEnv,
167
+ });
168
+ assert.equal(typeof productionProvider.getPayload, 'function');
169
+
170
+ const firstProduction = productionProvider.getPayload();
171
+ processValue = 'second-value';
172
+ const secondProduction = productionProvider.getPayload();
173
+
174
+ assert.equal(firstProduction.mode, 'production');
175
+ assert.equal(firstProduction.env.SLICE_PUBLIC_COUNTER, 'first-value');
176
+ assert.equal(secondProduction.env.SLICE_PUBLIC_COUNTER, 'first-value');
177
+
178
+ const developmentProvider = createPublicEnvProvider({
179
+ mode: 'development',
180
+ envFilePath,
181
+ processEnv,
182
+ });
183
+ assert.equal(typeof developmentProvider.getPayload, 'function');
184
+
185
+ const firstDevelopment = developmentProvider.getPayload();
186
+ processValue = 'third-value';
187
+ const secondDevelopment = developmentProvider.getPayload();
188
+
189
+ assert.equal(firstDevelopment.mode, 'development');
190
+ assert.equal(firstDevelopment.env.SLICE_PUBLIC_COUNTER, 'second-value');
191
+ assert.equal(secondDevelopment.env.SLICE_PUBLIC_COUNTER, 'third-value');
192
+ });
193
+ });
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
- {
2
- "name": "slicejs-web-framework",
3
- "version": "4.0.0",
4
- "description": "",
5
- "engines": {
6
- "node": ">=20"
7
- },
8
- "scripts": {
9
- "dev": "node ./node_modules/slicejs-cli/client.js dev",
10
- "build": "node ./node_modules/slicejs-cli/client.js build",
11
- "start": "node ./node_modules/slicejs-cli/client.js start",
12
- "test": "echo \"Error: no test specified\" && exit 1",
13
- "slice:init": "node ./node_modules/slicejs-cli/client.js init",
14
- "slice:create": "node ./node_modules/slicejs-cli/client.js component create",
15
- "slice:delete": "node ./node_modules/slicejs-cli/client.js component delete",
16
- "slice:list": "node ./node_modules/slicejs-cli/client.js component list",
17
- "slice:start": "node ./node_modules/slicejs-cli/client.js start",
18
- "format": "prettier --write \"**/*.js\"",
19
- "run": "node ./node_modules/slicejs-cli/client.js dev",
20
- "slice:modify": "node ./node_modules/slicejs-cli/client.js modify"
21
- },
22
- "keywords": [],
23
- "author": "",
24
- "license": "ISC",
25
- "type": "module",
26
- "exports": {
27
- ".": "./Slice/Slice.js",
28
- "./api/framework/express.js": "./api/framework/express.js",
29
- "./api/framework/server.js": "./api/framework/server.js",
30
- "./api/framework/devDepsOptimizer.js": "./api/framework/devDepsOptimizer.js"
31
- },
32
- "types": "./types/index.d.ts",
33
- "dependencies": {
34
- "compression": "^1.8.1",
35
- "es-module-lexer": "^2.3.0",
36
- "esbuild": "^0.28.1",
37
- "express": "^4.19.2"
38
- },
39
- "devDependencies": {
40
- "prettier": "3.3.3"
41
- },
42
- "prettier": {
43
- "trailingComma": "es5",
44
- "tabWidth": 3,
45
- "semi": true,
46
- "singleQuote": true,
47
- "printWidth": 120
48
- }
49
- }
1
+ {
2
+ "name": "slicejs-web-framework",
3
+ "version": "4.0.1",
4
+ "description": "",
5
+ "engines": {
6
+ "node": ">=20"
7
+ },
8
+ "scripts": {
9
+ "dev": "node ./node_modules/slicejs-cli/client.js dev",
10
+ "build": "node ./node_modules/slicejs-cli/client.js build",
11
+ "start": "node ./node_modules/slicejs-cli/client.js start",
12
+ "test": "echo \"Error: no test specified\" && exit 1",
13
+ "slice:init": "node ./node_modules/slicejs-cli/client.js init",
14
+ "slice:create": "node ./node_modules/slicejs-cli/client.js component create",
15
+ "slice:delete": "node ./node_modules/slicejs-cli/client.js component delete",
16
+ "slice:list": "node ./node_modules/slicejs-cli/client.js component list",
17
+ "slice:start": "node ./node_modules/slicejs-cli/client.js start",
18
+ "format": "prettier --write \"**/*.js\"",
19
+ "run": "node ./node_modules/slicejs-cli/client.js dev",
20
+ "slice:modify": "node ./node_modules/slicejs-cli/client.js modify"
21
+ },
22
+ "keywords": [],
23
+ "author": "",
24
+ "license": "ISC",
25
+ "type": "module",
26
+ "exports": {
27
+ ".": "./Slice/Slice.js",
28
+ "./api/framework/express.js": "./api/framework/express.js",
29
+ "./api/framework/server.js": "./api/framework/server.js",
30
+ "./api/framework/devDepsOptimizer.js": "./api/framework/devDepsOptimizer.js"
31
+ },
32
+ "types": "./types/index.d.ts",
33
+ "dependencies": {
34
+ "compression": "^1.8.1",
35
+ "es-module-lexer": "^2.3.0",
36
+ "esbuild": "^0.28.1",
37
+ "express": "^4.19.2"
38
+ },
39
+ "devDependencies": {
40
+ "prettier": "3.3.3"
41
+ },
42
+ "prettier": {
43
+ "trailingComma": "es5",
44
+ "tabWidth": 3,
45
+ "semi": true,
46
+ "singleQuote": true,
47
+ "printWidth": 120
48
+ }
49
+ }