spooder 4.2.18 → 4.3.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.
- package/README.md +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -200,7 +200,9 @@ When starting or restarting a server process, `spooder` can automatically update
|
|
|
200
200
|
{
|
|
201
201
|
"spooder": {
|
|
202
202
|
"update": [
|
|
203
|
-
"git
|
|
203
|
+
"git reset --hard",
|
|
204
|
+
"git clean -fd",
|
|
205
|
+
"git pull origin main",
|
|
204
206
|
"bun install"
|
|
205
207
|
]
|
|
206
208
|
}
|
|
@@ -210,7 +212,7 @@ When starting or restarting a server process, `spooder` can automatically update
|
|
|
210
212
|
Each command should be a separate entry in the array and will be executed in sequence. The server process will be started once all commands have resolved.
|
|
211
213
|
|
|
212
214
|
> [!IMPORTANT]
|
|
213
|
-
>
|
|
215
|
+
> Chaining commands using `&&` or `||` operators does not work.
|
|
214
216
|
|
|
215
217
|
If a command in the sequence fails, the remaining commands will not be executed, however the server will still be started. This is preferred over entering a restart loop or failing to start the server at all.
|
|
216
218
|
|
|
@@ -435,7 +437,7 @@ In addition to the information provided by the developer, `spooder` also include
|
|
|
435
437
|
"modules": "108"
|
|
436
438
|
},
|
|
437
439
|
"bun": {
|
|
438
|
-
"version": "0.6.
|
|
440
|
+
"version": "0.6.5",
|
|
439
441
|
"rev": "f02561530fda1ee9396f51c8bc99b38716e38296",
|
|
440
442
|
"memory_usage": {
|
|
441
443
|
"rss": 99672064,
|
|
@@ -778,7 +780,7 @@ function default_directory_handler(file_path: string, file: BunFile, stat: DirSt
|
|
|
778
780
|
```
|
|
779
781
|
|
|
780
782
|
> [!NOTE]
|
|
781
|
-
> Uncaught `ENOENT` errors
|
|
783
|
+
> Uncaught `ENOENT` errors thrown from the directory handler will return a `404` response, other errors will return a `500` response.
|
|
782
784
|
|
|
783
785
|
> [!NOTE]
|
|
784
786
|
> The call to `apply_range` in the default directory handler will automatically slice the file based on the [`Range`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range) header. This function is also exposed as part of the `spooder` API for use in your own handlers.
|