@qodalis/cli-files 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 +2 -2
- package/public-api.d.mts +5 -3
- package/public-api.d.ts +5 -3
- package/public-api.js +1 -1
- package/public-api.js.map +1 -1
- package/public-api.mjs +1 -1
- package/public-api.mjs.map +1 -1
- package/umd/index.global.js +7 -5
package/umd/index.global.js
CHANGED
|
@@ -1839,9 +1839,11 @@ var files = (() => {
|
|
|
1839
1839
|
email: "nicolae.lupei@qodalis.com"
|
|
1840
1840
|
};
|
|
1841
1841
|
var semver = __toESM(require_semver2());
|
|
1842
|
+
var API_VERSION = 2;
|
|
1843
|
+
var VERSIONS_ENDPOINT = "/api/qcli/versions";
|
|
1842
1844
|
var ServerVersionNegotiator = class {
|
|
1843
1845
|
static {
|
|
1844
|
-
this.CLIENT_SUPPORTED_VERSIONS = [
|
|
1846
|
+
this.CLIENT_SUPPORTED_VERSIONS = [API_VERSION];
|
|
1845
1847
|
}
|
|
1846
1848
|
/**
|
|
1847
1849
|
* Given a server's version info, pick the highest mutually compatible version.
|
|
@@ -1860,7 +1862,7 @@ var files = (() => {
|
|
|
1860
1862
|
*/
|
|
1861
1863
|
static async discover(baseUrl) {
|
|
1862
1864
|
try {
|
|
1863
|
-
const response = await fetch(`${baseUrl}
|
|
1865
|
+
const response = await fetch(`${baseUrl}${VERSIONS_ENDPOINT}`);
|
|
1864
1866
|
if (!response.ok) return null;
|
|
1865
1867
|
const info = await response.json();
|
|
1866
1868
|
const version = this.negotiate(info);
|
|
@@ -2692,8 +2694,8 @@ var files = (() => {
|
|
|
2692
2694
|
};
|
|
2693
2695
|
|
|
2694
2696
|
// src/lib/version.ts
|
|
2695
|
-
var LIBRARY_VERSION = "2.0.0-beta.
|
|
2696
|
-
var
|
|
2697
|
+
var LIBRARY_VERSION = "2.0.0-beta.9";
|
|
2698
|
+
var API_VERSION2 = 2;
|
|
2697
2699
|
|
|
2698
2700
|
// src/lib/interfaces/i-file-system-service.ts
|
|
2699
2701
|
var IFileSystemService_TOKEN = "cli-file-system-service";
|
|
@@ -4571,7 +4573,7 @@ var files = (() => {
|
|
|
4571
4573
|
// src/cli-entrypoint.ts
|
|
4572
4574
|
var fsService = new IndexedDbFileSystemService();
|
|
4573
4575
|
var module = {
|
|
4574
|
-
apiVersion:
|
|
4576
|
+
apiVersion: API_VERSION2,
|
|
4575
4577
|
name: "@qodalis/cli-files",
|
|
4576
4578
|
processors: [
|
|
4577
4579
|
new CliLsCommandProcessor(),
|