@retailcrm/embed-ui 0.9.22-alpha.1 → 0.9.22-alpha.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.9.22-alpha.2](https://github.com/retailcrm/embed-ui/compare/v0.9.22-alpha.1...v0.9.22-alpha.2) (2026-05-18)
5
+
6
+ ### Bug Fixes
7
+
8
+ * Embed UI bin symlink execution corrected ([fae3464](https://github.com/retailcrm/embed-ui/commit/fae346498546496c7407a724769dcbe96ecd6191))
4
9
  ## [0.9.22-alpha.1](https://github.com/retailcrm/embed-ui/compare/v0.9.21...v0.9.22-alpha.1) (2026-05-18)
5
10
 
6
11
  ### Features
package/bin/embed-ui.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createInterface } from "node:readline/promises";
3
3
  import { execFileSync } from "node:child_process";
4
+ import { fileURLToPath } from "node:url";
4
5
  import fs from "node:fs";
5
6
  import path from "node:path";
6
- import { pathToFileURL } from "node:url";
7
7
  import process$1 from "node:process";
8
8
  import yargs from "yargs";
9
9
  import { randomUUID } from "node:crypto";
@@ -2655,12 +2655,19 @@ const main = async (argv = process$1.argv.slice(2)) => {
2655
2655
  }
2656
2656
  runUpdate(options);
2657
2657
  };
2658
+ const isSameExecutablePath = (entryPath, moduleUrl) => {
2659
+ try {
2660
+ return fs.realpathSync(entryPath) === fs.realpathSync(fileURLToPath(moduleUrl));
2661
+ } catch {
2662
+ return false;
2663
+ }
2664
+ };
2658
2665
  const isExecutedDirectly = () => {
2659
2666
  const entryPath = process$1.argv[1];
2660
2667
  if (!entryPath) {
2661
2668
  return false;
2662
2669
  }
2663
- return pathToFileURL(path.resolve(entryPath)).href === import.meta.url;
2670
+ return isSameExecutablePath(path.resolve(entryPath), import.meta.url);
2664
2671
  };
2665
2672
  if (isExecutedDirectly()) {
2666
2673
  try {
@@ -2672,6 +2679,7 @@ if (isExecutedDirectly()) {
2672
2679
  }
2673
2680
  }
2674
2681
  export {
2682
+ isSameExecutablePath,
2675
2683
  main,
2676
2684
  parseArgs,
2677
2685
  parseInitArgs,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.9.22-alpha.1",
4
+ "version": "0.9.22-alpha.2",
5
5
  "description": "API and components for creating RetailCRM UI extensions",
6
6
  "repository": "git@github.com:retailcrm/embed-ui.git",
7
7
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
@@ -53,10 +53,10 @@
53
53
  "@omnicajs/symfony-router": "^1.0.0",
54
54
  "@omnicajs/vue-remote": "^0.2.23",
55
55
  "@remote-ui/rpc": "^1.4.5",
56
- "@retailcrm/embed-ui-v1-components": "^0.9.22-alpha.1",
57
- "@retailcrm/embed-ui-v1-contexts": "^0.9.22-alpha.1",
58
- "@retailcrm/embed-ui-v1-endpoint": "^0.9.22-alpha.1",
59
- "@retailcrm/embed-ui-v1-types": "^0.9.22-alpha.1",
56
+ "@retailcrm/embed-ui-v1-components": "^0.9.22-alpha.2",
57
+ "@retailcrm/embed-ui-v1-contexts": "^0.9.22-alpha.2",
58
+ "@retailcrm/embed-ui-v1-endpoint": "^0.9.22-alpha.2",
59
+ "@retailcrm/embed-ui-v1-types": "^0.9.22-alpha.2",
60
60
  "yargs": "^17.7.2"
61
61
  },
62
62
  "devDependencies": {
@@ -65,7 +65,7 @@
65
65
  "@modulify/git-toolkit": "^0.0.2",
66
66
  "@modulify/pkg": "^1.0.1",
67
67
  "@omnicajs/eslint-plugin-dependencies": "^0.0.2",
68
- "@retailcrm/embed-ui-v1-testing": "^0.9.22-alpha.1",
68
+ "@retailcrm/embed-ui-v1-testing": "^0.9.22-alpha.2",
69
69
  "@types/git-semver-tags": "^7.0.0",
70
70
  "@types/node": "^22.19.2",
71
71
  "@types/semver": "^7.7.1",