elit 3.6.9 → 3.7.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.
Files changed (50) hide show
  1. package/Cargo.lock +380 -449
  2. package/Cargo.toml +3 -3
  3. package/dist/build.cjs +1 -1
  4. package/dist/build.d.ts +1 -1
  5. package/dist/build.js +14 -10
  6. package/dist/build.mjs +1 -1
  7. package/dist/cli.cjs +1607 -6431
  8. package/dist/cli.d.ts +10 -3
  9. package/dist/cli.mjs +1611 -6435
  10. package/dist/config.cjs +7 -2
  11. package/dist/config.d.ts +4 -4
  12. package/dist/config.js +20 -11
  13. package/dist/config.mjs +7 -2
  14. package/dist/{contracts-D7KIS-TK.d.ts → contracts-Av9yuqDM.d.ts} +11 -4
  15. package/dist/dev-build.d.ts +2 -1
  16. package/dist/dev-build.js +13 -9
  17. package/dist/https.cjs +7 -2
  18. package/dist/https.js +7 -2
  19. package/dist/https.mjs +7 -2
  20. package/dist/index.cjs +340 -52
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +340 -52
  23. package/dist/index.mjs +340 -52
  24. package/dist/native.cjs +340 -52
  25. package/dist/native.js +340 -52
  26. package/dist/native.mjs +340 -52
  27. package/dist/pm.cjs +7 -2
  28. package/dist/pm.d.ts +3 -3
  29. package/dist/pm.js +20 -11
  30. package/dist/pm.mjs +7 -2
  31. package/dist/preview-build.d.ts +2 -2
  32. package/dist/preview-build.js +13 -9
  33. package/dist/server.cjs +861 -5998
  34. package/dist/server.d.ts +3 -2
  35. package/dist/server.js +12178 -4468
  36. package/dist/server.mjs +861 -5998
  37. package/dist/smtp-server.js +514 -44
  38. package/dist/test-runtime.cjs +20 -0
  39. package/dist/test-runtime.js +33 -9
  40. package/dist/test-runtime.mjs +20 -0
  41. package/dist/test.cjs +27 -2
  42. package/dist/test.js +40 -11
  43. package/dist/test.mjs +27 -2
  44. package/dist/{types-BayMVo_k.d.ts → types-CLGrLRTl.d.ts} +8 -2
  45. package/dist/{types-fiLday0L.d.ts → types-CYEpzeEi.d.ts} +10 -0
  46. package/dist/types.d.ts +52 -36
  47. package/dist/wss.cjs +7 -2
  48. package/dist/wss.js +7 -2
  49. package/dist/wss.mjs +7 -2
  50. package/package.json +7 -2
package/dist/pm.cjs CHANGED
@@ -5,8 +5,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn, res, err) => function __init() {
9
+ if (err) throw err[0];
10
+ try {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ } catch (e) {
13
+ throw err = [e], e;
14
+ }
10
15
  };
11
16
  var __export = (target, all) => {
12
17
  for (var name in all)
package/dist/pm.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PmRuntimeName, a as PmProxyStrategy, W as WapkRunConfig, b as PmProxyConfig, c as PmRestartPolicy, d as PmMemoryAction, e as WapkGoogleDriveConfig, f as PmConfig, g as PmAppConfig, E as ElitConfig } from './types-BayMVo_k.js';
2
- import './types-fiLday0L.js';
1
+ import { P as PmRuntimeName, a as PmProxyStrategy, W as WapkRunConfig, b as PmProxyConfig, c as PmRestartPolicy, d as PmMemoryAction, e as WapkGoogleDriveConfig, f as PmConfig, g as PmAppConfig, E as ElitConfig } from './types-CLGrLRTl.js';
2
+ import './types-CYEpzeEi.js';
3
3
  import './types-DPOgoGs-.js';
4
4
  import 'node:events';
5
5
  import './websocket-BLBEAnhp.js';
@@ -7,10 +7,10 @@ import 'events';
7
7
  import 'http';
8
8
  import 'ws';
9
9
  import './types-BR4wMiVx.js';
10
+ import './contracts-Av9yuqDM.js';
10
11
  import './types-C4gKykuG.js';
11
12
  import 'net';
12
13
  import 'smtp-server';
13
- import './contracts-D7KIS-TK.js';
14
14
  import './contracts-_0p1-15U.js';
15
15
 
16
16
  declare const DEFAULT_PM_DATA_DIR: string;
package/dist/pm.js CHANGED
@@ -12,11 +12,20 @@
12
12
  if (typeof require !== "undefined") return require.apply(this, arguments);
13
13
  throw Error('Dynamic require of "' + x + '" is not supported');
14
14
  });
15
- var __esm = (fn, res) => function __init() {
16
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ var __esm = (fn, res, err) => function __init() {
16
+ if (err) throw err[0];
17
+ try {
18
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
19
+ } catch (e) {
20
+ throw err = [e], e;
21
+ }
17
22
  };
18
23
  var __commonJS = (cb, mod) => function __require2() {
19
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
24
+ try {
25
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
+ } catch (e) {
27
+ throw mod = 0, e;
28
+ }
20
29
  };
21
30
  var __export = (target, all) => {
22
31
  for (var name in all)
@@ -1388,8 +1397,8 @@ is not a problem with esbuild. You need to fix your environment instead.
1388
1397
  if (isFirstPacket) {
1389
1398
  isFirstPacket = false;
1390
1399
  let binaryVersion = String.fromCharCode(...bytes);
1391
- if (binaryVersion !== "0.27.7") {
1392
- throw new Error(`Cannot start service: Host version "${"0.27.7"}" does not match binary version ${quote(binaryVersion)}`);
1400
+ if (binaryVersion !== "0.28.1") {
1401
+ throw new Error(`Cannot start service: Host version "${"0.28.1"}" does not match binary version ${quote(binaryVersion)}`);
1393
1402
  }
1394
1403
  return;
1395
1404
  }
@@ -2522,7 +2531,7 @@ for your current platform.`);
2522
2531
  "node_modules",
2523
2532
  ".cache",
2524
2533
  "esbuild",
2525
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
2534
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.1"}-${path.basename(subpath)}`
2526
2535
  );
2527
2536
  if (!fs2.existsSync(binTargetPath)) {
2528
2537
  fs2.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -2555,7 +2564,7 @@ for your current platform.`);
2555
2564
  }
2556
2565
  }
2557
2566
  var _a;
2558
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
2567
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.1";
2559
2568
  var esbuildCommandAndArgs = () => {
2560
2569
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
2561
2570
  throw new Error(
@@ -2622,7 +2631,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2622
2631
  }
2623
2632
  }
2624
2633
  };
2625
- var version = "0.27.7";
2634
+ var version = "0.28.1";
2626
2635
  var build = (options) => ensureServiceIsRunning().build(options);
2627
2636
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2628
2637
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2725,7 +2734,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2725
2734
  var ensureServiceIsRunning = () => {
2726
2735
  if (longLivedService) return longLivedService;
2727
2736
  let [command, args] = esbuildCommandAndArgs();
2728
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
2737
+ let child = child_process.spawn(command, args.concat(`--service=${"0.28.1"}`, "--ping"), {
2729
2738
  windowsHide: true,
2730
2739
  stdio: ["pipe", "pipe", "inherit"],
2731
2740
  cwd: defaultWD
@@ -2829,7 +2838,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2829
2838
  esbuild: node_exports
2830
2839
  });
2831
2840
  callback(service);
2832
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
2841
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.28.1"}`), {
2833
2842
  cwd: defaultWD,
2834
2843
  windowsHide: true,
2835
2844
  input: stdin,
@@ -2849,7 +2858,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2849
2858
  var startWorkerThreadService = (worker_threads2) => {
2850
2859
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2851
2860
  let worker = new worker_threads2.Worker(__filename, {
2852
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
2861
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.1" },
2853
2862
  transferList: [workerPort],
2854
2863
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2855
2864
  //
package/dist/pm.mjs CHANGED
@@ -7,8 +7,13 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  if (typeof require !== "undefined") return require.apply(this, arguments);
8
8
  throw Error('Dynamic require of "' + x + '" is not supported');
9
9
  });
10
- var __esm = (fn, res) => function __init() {
11
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ var __esm = (fn, res, err) => function __init() {
11
+ if (err) throw err[0];
12
+ try {
13
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
14
+ } catch (e) {
15
+ throw err = [e], e;
16
+ }
12
17
  };
13
18
  var __export = (target, all) => {
14
19
  for (var name in all)
@@ -1,5 +1,5 @@
1
- import { B as BuildOptions } from './contracts-D7KIS-TK.js';
2
- import { P as PreviewOptions } from './types-fiLday0L.js';
1
+ import { B as BuildOptions } from './contracts-Av9yuqDM.js';
2
+ import { P as PreviewOptions } from './types-CYEpzeEi.js';
3
3
  import './types-DPOgoGs-.js';
4
4
  import 'node:events';
5
5
  import './websocket-BLBEAnhp.js';
@@ -13,7 +13,11 @@
13
13
  throw Error('Dynamic require of "' + x + '" is not supported');
14
14
  });
15
15
  var __commonJS = (cb, mod) => function __require2() {
16
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ try {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ } catch (e) {
19
+ throw mod = 0, e;
20
+ }
17
21
  };
18
22
  var __copyProps = (to, from, except, desc) => {
19
23
  if (from && typeof from === "object" || typeof from === "function") {
@@ -943,8 +947,8 @@ is not a problem with esbuild. You need to fix your environment instead.
943
947
  if (isFirstPacket) {
944
948
  isFirstPacket = false;
945
949
  let binaryVersion = String.fromCharCode(...bytes);
946
- if (binaryVersion !== "0.27.7") {
947
- throw new Error(`Cannot start service: Host version "${"0.27.7"}" does not match binary version ${quote(binaryVersion)}`);
950
+ if (binaryVersion !== "0.28.1") {
951
+ throw new Error(`Cannot start service: Host version "${"0.28.1"}" does not match binary version ${quote(binaryVersion)}`);
948
952
  }
949
953
  return;
950
954
  }
@@ -2077,7 +2081,7 @@ for your current platform.`);
2077
2081
  "node_modules",
2078
2082
  ".cache",
2079
2083
  "esbuild",
2080
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
2084
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.1"}-${path.basename(subpath)}`
2081
2085
  );
2082
2086
  if (!fs2.existsSync(binTargetPath)) {
2083
2087
  fs2.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -2110,7 +2114,7 @@ for your current platform.`);
2110
2114
  }
2111
2115
  }
2112
2116
  var _a;
2113
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
2117
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.1";
2114
2118
  var esbuildCommandAndArgs = () => {
2115
2119
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
2116
2120
  throw new Error(
@@ -2177,7 +2181,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2177
2181
  }
2178
2182
  }
2179
2183
  };
2180
- var version = "0.27.7";
2184
+ var version = "0.28.1";
2181
2185
  var build = (options) => ensureServiceIsRunning().build(options);
2182
2186
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2183
2187
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2280,7 +2284,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2280
2284
  var ensureServiceIsRunning = () => {
2281
2285
  if (longLivedService) return longLivedService;
2282
2286
  let [command, args] = esbuildCommandAndArgs();
2283
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
2287
+ let child = child_process.spawn(command, args.concat(`--service=${"0.28.1"}`, "--ping"), {
2284
2288
  windowsHide: true,
2285
2289
  stdio: ["pipe", "pipe", "inherit"],
2286
2290
  cwd: defaultWD
@@ -2384,7 +2388,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2384
2388
  esbuild: node_exports
2385
2389
  });
2386
2390
  callback(service);
2387
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
2391
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.28.1"}`), {
2388
2392
  cwd: defaultWD,
2389
2393
  windowsHide: true,
2390
2394
  input: stdin,
@@ -2404,7 +2408,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2404
2408
  var startWorkerThreadService = (worker_threads2) => {
2405
2409
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2406
2410
  let worker = new worker_threads2.Worker(__filename, {
2407
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
2411
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.1" },
2408
2412
  transferList: [workerPort],
2409
2413
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2410
2414
  //