@qodalis/cli-lang-ru 2.0.0-beta.8 → 2.0.0-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qodalis/cli-lang-ru",
3
- "version": "2.0.0-beta.8",
3
+ "version": "2.0.0-beta.9",
4
4
  "description": "Russian language pack for Qodalis CLI",
5
5
  "author": "Nicolae Lupei, Qodalis Solutions",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "umd": "./umd/index.global.js",
22
22
  "unpkg": "./umd/index.global.js",
23
23
  "dependencies": {
24
- "@qodalis/cli-core": "2.0.0-beta.8"
24
+ "@qodalis/cli-core": "2.0.0-beta.9"
25
25
  },
26
26
  "sideEffects": false,
27
27
  "main": "./public-api.js",
@@ -1823,9 +1823,11 @@ var langRu = (() => {
1823
1823
  });
1824
1824
  var ICliTranslationService_TOKEN = "cli-translation-service";
1825
1825
  var semver = __toESM(require_semver2());
1826
+ var API_VERSION = 2;
1827
+ var VERSIONS_ENDPOINT = "/api/qcli/versions";
1826
1828
  var ServerVersionNegotiator = class {
1827
1829
  static {
1828
- this.CLIENT_SUPPORTED_VERSIONS = [2];
1830
+ this.CLIENT_SUPPORTED_VERSIONS = [API_VERSION];
1829
1831
  }
1830
1832
  /**
1831
1833
  * Given a server's version info, pick the highest mutually compatible version.
@@ -1844,7 +1846,7 @@ var langRu = (() => {
1844
1846
  */
1845
1847
  static async discover(baseUrl) {
1846
1848
  try {
1847
- const response = await fetch(`${baseUrl}/api/qcli/versions`);
1849
+ const response = await fetch(`${baseUrl}${VERSIONS_ENDPOINT}`);
1848
1850
  if (!response.ok) return null;
1849
1851
  const info = await response.json();
1850
1852
  const version = this.negotiate(info);
@@ -1858,7 +1860,6 @@ var langRu = (() => {
1858
1860
  }
1859
1861
  }
1860
1862
  };
1861
- var API_VERSION = 2;
1862
1863
  var bootCliModule = async (module) => {
1863
1864
  if (typeof window !== "undefined" && window.__cliModuleRegistry) {
1864
1865
  await window.__cliModuleRegistry.register(module);