@valbuild/server 0.60.12 → 0.60.13
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.
@@ -2615,11 +2615,9 @@ class ProxyValServer extends ValServer {
|
|
2615
2615
|
async initRemoteFS(commit, remoteFS, token) {
|
2616
2616
|
const params = new URLSearchParams(this.apiOptions.root ? {
|
2617
2617
|
root: this.apiOptions.root,
|
2618
|
-
commit
|
2619
|
-
cwd: this.cwd
|
2618
|
+
commit
|
2620
2619
|
} : {
|
2621
|
-
commit
|
2622
|
-
cwd: this.cwd
|
2620
|
+
commit
|
2623
2621
|
});
|
2624
2622
|
const url = new URL(`/v1/fs/${this.options.remote}/heads/${this.options.git.branch}/~?${params}`, this.options.valContentUrl);
|
2625
2623
|
try {
|
@@ -2658,7 +2656,8 @@ class ProxyValServer extends ValServer {
|
|
2658
2656
|
}
|
2659
2657
|
};
|
2660
2658
|
}
|
2661
|
-
remoteFS.initializeWith(json.directories)
|
2659
|
+
remoteFS.initializeWith(Object.fromEntries(Object.entries(json.directories).map(([dir, content]) => [path__namespace["default"].join(this.cwd, ...dir.split("/") // content is always posix - not sure that matters...
|
2660
|
+
), content])));
|
2662
2661
|
return {
|
2663
2662
|
status: 200
|
2664
2663
|
};
|
@@ -2615,11 +2615,9 @@ class ProxyValServer extends ValServer {
|
|
2615
2615
|
async initRemoteFS(commit, remoteFS, token) {
|
2616
2616
|
const params = new URLSearchParams(this.apiOptions.root ? {
|
2617
2617
|
root: this.apiOptions.root,
|
2618
|
-
commit
|
2619
|
-
cwd: this.cwd
|
2618
|
+
commit
|
2620
2619
|
} : {
|
2621
|
-
commit
|
2622
|
-
cwd: this.cwd
|
2620
|
+
commit
|
2623
2621
|
});
|
2624
2622
|
const url = new URL(`/v1/fs/${this.options.remote}/heads/${this.options.git.branch}/~?${params}`, this.options.valContentUrl);
|
2625
2623
|
try {
|
@@ -2658,7 +2656,8 @@ class ProxyValServer extends ValServer {
|
|
2658
2656
|
}
|
2659
2657
|
};
|
2660
2658
|
}
|
2661
|
-
remoteFS.initializeWith(json.directories)
|
2659
|
+
remoteFS.initializeWith(Object.fromEntries(Object.entries(json.directories).map(([dir, content]) => [path__namespace["default"].join(this.cwd, ...dir.split("/") // content is always posix - not sure that matters...
|
2660
|
+
), content])));
|
2662
2661
|
return {
|
2663
2662
|
status: 200
|
2664
2663
|
};
|
@@ -2584,11 +2584,9 @@ class ProxyValServer extends ValServer {
|
|
2584
2584
|
async initRemoteFS(commit, remoteFS, token) {
|
2585
2585
|
const params = new URLSearchParams(this.apiOptions.root ? {
|
2586
2586
|
root: this.apiOptions.root,
|
2587
|
-
commit
|
2588
|
-
cwd: this.cwd
|
2587
|
+
commit
|
2589
2588
|
} : {
|
2590
|
-
commit
|
2591
|
-
cwd: this.cwd
|
2589
|
+
commit
|
2592
2590
|
});
|
2593
2591
|
const url = new URL(`/v1/fs/${this.options.remote}/heads/${this.options.git.branch}/~?${params}`, this.options.valContentUrl);
|
2594
2592
|
try {
|
@@ -2627,7 +2625,8 @@ class ProxyValServer extends ValServer {
|
|
2627
2625
|
}
|
2628
2626
|
};
|
2629
2627
|
}
|
2630
|
-
remoteFS.initializeWith(json.directories)
|
2628
|
+
remoteFS.initializeWith(Object.fromEntries(Object.entries(json.directories).map(([dir, content]) => [path__default.join(this.cwd, ...dir.split("/") // content is always posix - not sure that matters...
|
2629
|
+
), content])));
|
2631
2630
|
return {
|
2632
2631
|
status: 200
|
2633
2632
|
};
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
"./package.json": "./package.json"
|
13
13
|
},
|
14
14
|
"types": "dist/valbuild-server.cjs.d.ts",
|
15
|
-
"version": "0.60.
|
15
|
+
"version": "0.60.13",
|
16
16
|
"scripts": {
|
17
17
|
"typecheck": "tsc --noEmit",
|
18
18
|
"test": "jest",
|
@@ -24,9 +24,9 @@
|
|
24
24
|
"concurrently": "^7.6.0"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@valbuild/core": "~0.60.
|
28
|
-
"@valbuild/shared": "~0.60.
|
29
|
-
"@valbuild/ui": "~0.60.
|
27
|
+
"@valbuild/core": "~0.60.13",
|
28
|
+
"@valbuild/shared": "~0.60.13",
|
29
|
+
"@valbuild/ui": "~0.60.13",
|
30
30
|
"express": "^4.18.2",
|
31
31
|
"image-size": "^1.0.2",
|
32
32
|
"minimatch": "^3.0.4",
|