elit 3.6.9 → 3.7.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 (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 +1629 -6432
  8. package/dist/cli.d.ts +10 -3
  9. package/dist/cli.mjs +1633 -6436
  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 +877 -5993
  34. package/dist/server.d.ts +3 -2
  35. package/dist/server.js +12199 -4468
  36. package/dist/server.mjs +877 -5993
  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-fiLday0L.d.ts → types-BjkTamLI.d.ts} +14 -0
  45. package/dist/{types-BayMVo_k.d.ts → types-DdL_S7pL.d.ts} +8 -2
  46. package/dist/types.d.ts +56 -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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "elit-desktop"
3
- version = "3.6.9"
3
+ version = "3.7.1"
4
4
  edition = "2021"
5
5
  build = "desktop/build.rs"
6
6
 
@@ -23,8 +23,8 @@ runtime-external = []
23
23
 
24
24
  [dependencies]
25
25
  eframe = "0.31"
26
- tao = "0.34"
27
- wry = "0.54"
26
+ tao = "0.35"
27
+ wry = "0.55"
28
28
  image = { version = "0.25", default-features = false, features = ["png", "ico"] }
29
29
  resvg = "0.45"
30
30
  serde = { version = "1", features = ["derive"] }
package/dist/build.cjs CHANGED
@@ -694,7 +694,7 @@ async function buildWithNode(context) {
694
694
  ...getMinifyOptions(config.minify)
695
695
  };
696
696
  if (config.resolve?.alias) {
697
- esbuildOptions.resolve = { alias: config.resolve.alias };
697
+ esbuildOptions.alias = config.resolve.alias;
698
698
  }
699
699
  const result = await esbuild(esbuildOptions);
700
700
  const { buildTime, size } = calculateBuildMetrics(startTime, paths.outputPath);
package/dist/build.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BuildOptions, a as BuildResult } from './contracts-D7KIS-TK.js';
1
+ import { B as BuildOptions, a as BuildResult } from './contracts-Av9yuqDM.js';
2
2
 
3
3
  declare function build(options: BuildOptions): Promise<BuildResult>;
4
4
 
package/dist/build.js CHANGED
@@ -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 build2 = (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
  //
@@ -3193,7 +3197,7 @@ error: ${text}`);
3193
3197
  ...getMinifyOptions(config.minify)
3194
3198
  };
3195
3199
  if (config.resolve?.alias) {
3196
- esbuildOptions.resolve = { alias: config.resolve.alias };
3200
+ esbuildOptions.alias = config.resolve.alias;
3197
3201
  }
3198
3202
  const result = await esbuild(esbuildOptions);
3199
3203
  const { buildTime, size } = calculateBuildMetrics(startTime, paths.outputPath);
package/dist/build.mjs CHANGED
@@ -666,7 +666,7 @@ async function buildWithNode(context) {
666
666
  ...getMinifyOptions(config.minify)
667
667
  };
668
668
  if (config.resolve?.alias) {
669
- esbuildOptions.resolve = { alias: config.resolve.alias };
669
+ esbuildOptions.alias = config.resolve.alias;
670
670
  }
671
671
  const result = await esbuild(esbuildOptions);
672
672
  const { buildTime, size } = calculateBuildMetrics(startTime, paths.outputPath);