@capybara-hq/testing 0.1.0-rc.4 → 0.1.0-rc.5
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/dist/fake-git-server.js +3 -1
- package/package.json +3 -3
package/dist/fake-git-server.js
CHANGED
|
@@ -129,8 +129,10 @@ function serveCgi(root, req, res) {
|
|
|
129
129
|
res.writeHead(h.status, h.headers);
|
|
130
130
|
res.write(head.subarray(h.bodyStart));
|
|
131
131
|
});
|
|
132
|
+
// A child that could not be spawned emits 'error' and then 'close': only the first writes a head
|
|
133
|
+
// (a second writeHead throws ERR_HTTP_HEADERS_SENT, an uncaught exception).
|
|
132
134
|
p.on("close", () => {
|
|
133
|
-
if (!headDone)
|
|
135
|
+
if (!headDone && !res.headersSent)
|
|
134
136
|
res.writeHead(502);
|
|
135
137
|
res.end();
|
|
136
138
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/testing",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.5",
|
|
4
4
|
"description": "Test helpers for Capybara: test containers, dual-replica harness and fake third-party servers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"vitest": "^5.0.5",
|
|
59
|
-
"@capybara-hq/plugin-
|
|
60
|
-
"@capybara-hq/plugin-
|
|
59
|
+
"@capybara-hq/plugin-tools": "^0.1.0-rc.4",
|
|
60
|
+
"@capybara-hq/plugin-sdk": "^0.1.0-rc.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"@capybara-hq/plugin-tools": {
|