elit 3.5.9 → 3.6.0
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/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/README.md +1 -1
- package/dist/build.d.ts +1 -1
- package/dist/cli.cjs +3 -4
- package/dist/cli.mjs +3 -4
- package/dist/config.d.ts +1 -1
- package/dist/coverage.d.ts +1 -1
- package/dist/desktop-auto-render.d.ts +1 -1
- package/dist/render-context.d.ts +1 -1
- package/dist/{server-FCdUqabc.d.ts → server-CcBFc2F5.d.ts} +1 -1
- package/dist/server.cjs +3 -4
- package/dist/server.d.ts +1 -1
- package/dist/server.js +3 -4
- package/dist/server.mjs +3 -4
- package/package.json +1 -1
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/README.md
CHANGED
|
@@ -955,7 +955,7 @@ The package also exports `elit/test`, `elit/test-runtime`, and `elit/test-report
|
|
|
955
955
|
|
|
956
956
|
Latest release notes live in [CHANGELOG.md](CHANGELOG.md).
|
|
957
957
|
|
|
958
|
-
Highlights in `v3.
|
|
958
|
+
Highlights in `v3.6.0`:
|
|
959
959
|
|
|
960
960
|
- Added `elit pm` for detached background process management of shell commands, file targets, and WAPK apps.
|
|
961
961
|
- Added `pm.apps[]` and `pm.dataDir` in `elit.config.*` for config-first process manager workflows.
|
package/dist/build.d.ts
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -61325,14 +61325,13 @@ var sendError = (res, code, msg) => {
|
|
|
61325
61325
|
var send404 = (res, msg = "Not Found") => sendError(res, 404, msg);
|
|
61326
61326
|
var send403 = (res, msg = "Forbidden") => sendError(res, 403, msg);
|
|
61327
61327
|
var send500 = (res, msg = "Internal Server Error") => sendError(res, 500, msg);
|
|
61328
|
-
async function resolveWorkspaceElitImportBasePath(rootDir, basePath,
|
|
61328
|
+
async function resolveWorkspaceElitImportBasePath(rootDir, basePath, _mode) {
|
|
61329
61329
|
const resolvedRootDir = await realpath(resolve(rootDir));
|
|
61330
61330
|
try {
|
|
61331
61331
|
const packageJsonBuffer = await readFile(join(resolvedRootDir, "package.json"));
|
|
61332
61332
|
const packageJson = JSON.parse(packageJsonBuffer.toString());
|
|
61333
61333
|
if (packageJson.name === "elit") {
|
|
61334
|
-
|
|
61335
|
-
return basePath ? `${basePath}/${workspaceDir}` : `/${workspaceDir}`;
|
|
61334
|
+
return basePath ? `${basePath}/dist` : "/dist";
|
|
61336
61335
|
}
|
|
61337
61336
|
} catch {
|
|
61338
61337
|
}
|
|
@@ -61340,7 +61339,7 @@ async function resolveWorkspaceElitImportBasePath(rootDir, basePath, mode) {
|
|
|
61340
61339
|
}
|
|
61341
61340
|
var createElitImportMap = async (rootDir, basePath = "", mode = "dev") => {
|
|
61342
61341
|
const workspaceImportBasePath = await resolveWorkspaceElitImportBasePath(rootDir, basePath, mode);
|
|
61343
|
-
const fileExt =
|
|
61342
|
+
const fileExt = ".js";
|
|
61344
61343
|
const elitImports = workspaceImportBasePath ? {
|
|
61345
61344
|
"elit": `${workspaceImportBasePath}/index${fileExt}`,
|
|
61346
61345
|
"elit/": `${workspaceImportBasePath}/`,
|
package/dist/cli.mjs
CHANGED
|
@@ -61310,14 +61310,13 @@ var sendError = (res, code, msg) => {
|
|
|
61310
61310
|
var send404 = (res, msg = "Not Found") => sendError(res, 404, msg);
|
|
61311
61311
|
var send403 = (res, msg = "Forbidden") => sendError(res, 403, msg);
|
|
61312
61312
|
var send500 = (res, msg = "Internal Server Error") => sendError(res, 500, msg);
|
|
61313
|
-
async function resolveWorkspaceElitImportBasePath(rootDir, basePath,
|
|
61313
|
+
async function resolveWorkspaceElitImportBasePath(rootDir, basePath, _mode) {
|
|
61314
61314
|
const resolvedRootDir = await realpath(resolve(rootDir));
|
|
61315
61315
|
try {
|
|
61316
61316
|
const packageJsonBuffer = await readFile(join(resolvedRootDir, "package.json"));
|
|
61317
61317
|
const packageJson = JSON.parse(packageJsonBuffer.toString());
|
|
61318
61318
|
if (packageJson.name === "elit") {
|
|
61319
|
-
|
|
61320
|
-
return basePath ? `${basePath}/${workspaceDir}` : `/${workspaceDir}`;
|
|
61319
|
+
return basePath ? `${basePath}/dist` : "/dist";
|
|
61321
61320
|
}
|
|
61322
61321
|
} catch {
|
|
61323
61322
|
}
|
|
@@ -61325,7 +61324,7 @@ async function resolveWorkspaceElitImportBasePath(rootDir, basePath, mode) {
|
|
|
61325
61324
|
}
|
|
61326
61325
|
var createElitImportMap = async (rootDir, basePath = "", mode = "dev") => {
|
|
61327
61326
|
const workspaceImportBasePath = await resolveWorkspaceElitImportBasePath(rootDir, basePath, mode);
|
|
61328
|
-
const fileExt =
|
|
61327
|
+
const fileExt = ".js";
|
|
61329
61328
|
const elitImports = workspaceImportBasePath ? {
|
|
61330
61329
|
"elit": `${workspaceImportBasePath}/index${fileExt}`,
|
|
61331
61330
|
"elit/": `${workspaceImportBasePath}/`,
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DevServerOptions, B as BuildOptions, P as PreviewOptions, T as TestOptions } from './server-
|
|
1
|
+
import { D as DevServerOptions, B as BuildOptions, P as PreviewOptions, T as TestOptions } from './server-CcBFc2F5.js';
|
|
2
2
|
import './http.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import './ws.js';
|
package/dist/coverage.d.ts
CHANGED
package/dist/render-context.d.ts
CHANGED
|
@@ -376,7 +376,7 @@ declare const json: (res: ServerResponse, data: any, status?: number) => ServerR
|
|
|
376
376
|
declare const text: (res: ServerResponse, data: string, status?: number) => ServerResponse;
|
|
377
377
|
declare const html: (res: ServerResponse, data: string, status?: number) => ServerResponse;
|
|
378
378
|
declare const status: (res: ServerResponse, code: number, message?: string) => ServerResponse;
|
|
379
|
-
declare function resolveWorkspaceElitImportBasePath(rootDir: string, basePath: string,
|
|
379
|
+
declare function resolveWorkspaceElitImportBasePath(rootDir: string, basePath: string, _mode: 'dev' | 'preview'): Promise<string | undefined>;
|
|
380
380
|
declare const createElitImportMap: (rootDir: string, basePath?: string, mode?: "dev" | "preview") => Promise<string>;
|
|
381
381
|
/**
|
|
382
382
|
* Clear import map cache (useful when packages are added/removed)
|
package/dist/server.cjs
CHANGED
|
@@ -56706,14 +56706,13 @@ var sendError = (res, code, msg) => {
|
|
|
56706
56706
|
var send404 = (res, msg = "Not Found") => sendError(res, 404, msg);
|
|
56707
56707
|
var send403 = (res, msg = "Forbidden") => sendError(res, 403, msg);
|
|
56708
56708
|
var send500 = (res, msg = "Internal Server Error") => sendError(res, 500, msg);
|
|
56709
|
-
async function resolveWorkspaceElitImportBasePath(rootDir, basePath,
|
|
56709
|
+
async function resolveWorkspaceElitImportBasePath(rootDir, basePath, _mode) {
|
|
56710
56710
|
const resolvedRootDir = await realpath(resolve(rootDir));
|
|
56711
56711
|
try {
|
|
56712
56712
|
const packageJsonBuffer = await readFile(join(resolvedRootDir, "package.json"));
|
|
56713
56713
|
const packageJson = JSON.parse(packageJsonBuffer.toString());
|
|
56714
56714
|
if (packageJson.name === "elit") {
|
|
56715
|
-
|
|
56716
|
-
return basePath ? `${basePath}/${workspaceDir}` : `/${workspaceDir}`;
|
|
56715
|
+
return basePath ? `${basePath}/dist` : "/dist";
|
|
56717
56716
|
}
|
|
56718
56717
|
} catch {
|
|
56719
56718
|
}
|
|
@@ -56721,7 +56720,7 @@ async function resolveWorkspaceElitImportBasePath(rootDir, basePath, mode) {
|
|
|
56721
56720
|
}
|
|
56722
56721
|
var createElitImportMap = async (rootDir, basePath = "", mode = "dev") => {
|
|
56723
56722
|
const workspaceImportBasePath = await resolveWorkspaceElitImportBasePath(rootDir, basePath, mode);
|
|
56724
|
-
const fileExt =
|
|
56723
|
+
const fileExt = ".js";
|
|
56725
56724
|
const elitImports = workspaceImportBasePath ? {
|
|
56726
56725
|
"elit": `${workspaceImportBasePath}/index${fileExt}`,
|
|
56727
56726
|
"elit/": `${workspaceImportBasePath}/`,
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './http.js';
|
|
2
2
|
import './ws.js';
|
|
3
|
-
export { E as ElitRequest, c as ElitResponse, H as HttpMethod, M as Middleware, S as ServerRouteContext, d as ServerRouteHandler, e as ServerRouter, f as SharedState, g as SharedStateOptions, h as StateChangeHandler, i as StateManager, j as bodyLimit, k as cacheControl, l as clearImportMapCache, m as compress, n as cors, o as createDevServer, p as createElitImportMap, q as createProxyHandler, r as errorHandler, s as html, t as json, u as logger, v as rateLimit, w as resolveWorkspaceElitImportBasePath, x as security, y as status, z as text } from './server-
|
|
3
|
+
export { E as ElitRequest, c as ElitResponse, H as HttpMethod, M as Middleware, S as ServerRouteContext, d as ServerRouteHandler, e as ServerRouter, f as SharedState, g as SharedStateOptions, h as StateChangeHandler, i as StateManager, j as bodyLimit, k as cacheControl, l as clearImportMapCache, m as compress, n as cors, o as createDevServer, p as createElitImportMap, q as createProxyHandler, r as errorHandler, s as html, t as json, u as logger, v as rateLimit, w as resolveWorkspaceElitImportBasePath, x as security, y as status, z as text } from './server-CcBFc2F5.js';
|
|
4
4
|
import 'node:events';
|
|
5
5
|
import 'events';
|
|
6
6
|
import 'http';
|
package/dist/server.js
CHANGED
|
@@ -63433,14 +63433,13 @@ tell application "System Events" to get value of property list item "CFBundleNam
|
|
|
63433
63433
|
var send404 = (res, msg = "Not Found") => sendError(res, 404, msg);
|
|
63434
63434
|
var send403 = (res, msg = "Forbidden") => sendError(res, 403, msg);
|
|
63435
63435
|
var send500 = (res, msg = "Internal Server Error") => sendError(res, 500, msg);
|
|
63436
|
-
async function resolveWorkspaceElitImportBasePath(rootDir, basePath,
|
|
63436
|
+
async function resolveWorkspaceElitImportBasePath(rootDir, basePath, _mode) {
|
|
63437
63437
|
const resolvedRootDir = await realpath(resolve(rootDir));
|
|
63438
63438
|
try {
|
|
63439
63439
|
const packageJsonBuffer = await readFile(join(resolvedRootDir, "package.json"));
|
|
63440
63440
|
const packageJson = JSON.parse(packageJsonBuffer.toString());
|
|
63441
63441
|
if (packageJson.name === "elit") {
|
|
63442
|
-
|
|
63443
|
-
return basePath ? `${basePath}/${workspaceDir}` : `/${workspaceDir}`;
|
|
63442
|
+
return basePath ? `${basePath}/dist` : "/dist";
|
|
63444
63443
|
}
|
|
63445
63444
|
} catch {
|
|
63446
63445
|
}
|
|
@@ -63448,7 +63447,7 @@ tell application "System Events" to get value of property list item "CFBundleNam
|
|
|
63448
63447
|
}
|
|
63449
63448
|
var createElitImportMap = async (rootDir, basePath = "", mode = "dev") => {
|
|
63450
63449
|
const workspaceImportBasePath = await resolveWorkspaceElitImportBasePath(rootDir, basePath, mode);
|
|
63451
|
-
const fileExt =
|
|
63450
|
+
const fileExt = ".js";
|
|
63452
63451
|
const elitImports = workspaceImportBasePath ? {
|
|
63453
63452
|
"elit": `${workspaceImportBasePath}/index${fileExt}`,
|
|
63454
63453
|
"elit/": `${workspaceImportBasePath}/`,
|
package/dist/server.mjs
CHANGED
|
@@ -56688,14 +56688,13 @@ var sendError = (res, code, msg) => {
|
|
|
56688
56688
|
var send404 = (res, msg = "Not Found") => sendError(res, 404, msg);
|
|
56689
56689
|
var send403 = (res, msg = "Forbidden") => sendError(res, 403, msg);
|
|
56690
56690
|
var send500 = (res, msg = "Internal Server Error") => sendError(res, 500, msg);
|
|
56691
|
-
async function resolveWorkspaceElitImportBasePath(rootDir, basePath,
|
|
56691
|
+
async function resolveWorkspaceElitImportBasePath(rootDir, basePath, _mode) {
|
|
56692
56692
|
const resolvedRootDir = await realpath(resolve(rootDir));
|
|
56693
56693
|
try {
|
|
56694
56694
|
const packageJsonBuffer = await readFile(join(resolvedRootDir, "package.json"));
|
|
56695
56695
|
const packageJson = JSON.parse(packageJsonBuffer.toString());
|
|
56696
56696
|
if (packageJson.name === "elit") {
|
|
56697
|
-
|
|
56698
|
-
return basePath ? `${basePath}/${workspaceDir}` : `/${workspaceDir}`;
|
|
56697
|
+
return basePath ? `${basePath}/dist` : "/dist";
|
|
56699
56698
|
}
|
|
56700
56699
|
} catch {
|
|
56701
56700
|
}
|
|
@@ -56703,7 +56702,7 @@ async function resolveWorkspaceElitImportBasePath(rootDir, basePath, mode) {
|
|
|
56703
56702
|
}
|
|
56704
56703
|
var createElitImportMap = async (rootDir, basePath = "", mode = "dev") => {
|
|
56705
56704
|
const workspaceImportBasePath = await resolveWorkspaceElitImportBasePath(rootDir, basePath, mode);
|
|
56706
|
-
const fileExt =
|
|
56705
|
+
const fileExt = ".js";
|
|
56707
56706
|
const elitImports = workspaceImportBasePath ? {
|
|
56708
56707
|
"elit": `${workspaceImportBasePath}/index${fileExt}`,
|
|
56709
56708
|
"elit/": `${workspaceImportBasePath}/`,
|