@jskit-ai/connectors-catalog 0.2.53 → 0.2.54
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/test/wiz.test.js +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/connectors-catalog",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.54",
|
|
4
4
|
"description": "Provider definitions and focused API operations for JSKIT connectors.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@aws-sdk/client-redshift-data": "3.1128.0",
|
|
126
126
|
"@aws-sdk/client-s3": "3.1128.0",
|
|
127
127
|
"@aws-sdk/s3-request-presigner": "3.1128.0",
|
|
128
|
-
"@jskit-ai/connectors-core": "0.2.
|
|
128
|
+
"@jskit-ai/connectors-core": "0.2.51",
|
|
129
129
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
130
130
|
"@smithy/fetch-http-handler": "5.8.0",
|
|
131
131
|
"jose": "^6.1.3",
|
package/test/wiz.test.js
CHANGED
|
@@ -173,15 +173,18 @@ test("Wiz cancellation and timeout terminate the scan process group and remove i
|
|
|
173
173
|
await assert.rejects(access(run.cwd), { code: "ENOENT" });
|
|
174
174
|
assert.throws(() => process.kill(run.pid, 0), { code: "ESRCH" });
|
|
175
175
|
// The group's SIGKILL reaches the grandchild asynchronously, and a killed
|
|
176
|
-
// grandchild can briefly remain a zombie until the host reaps it.
|
|
176
|
+
// grandchild can briefly remain a zombie until the host reaps it. A zombie
|
|
177
|
+
// has ended only as its thread group's one thread (num_threads, field 20, is
|
|
178
|
+
// 1): with other threads counted, they still run or are still exiting.
|
|
177
179
|
if (process.platform === "linux") {
|
|
180
|
+
const ended = (stat) => stat === "" || /\) Z (?:\S+ ){16}1 /u.test(stat);
|
|
178
181
|
let childState;
|
|
179
182
|
for (let i = 0; i < 100; i++) {
|
|
180
183
|
childState = await readFile(`/proc/${run.childPid}/stat`, "utf8").catch(() => "");
|
|
181
|
-
if (
|
|
184
|
+
if (ended(childState)) break;
|
|
182
185
|
await delay(20);
|
|
183
186
|
}
|
|
184
|
-
assert.ok(
|
|
187
|
+
assert.ok(ended(childState), childState);
|
|
185
188
|
}
|
|
186
189
|
await assert.rejects(createWizScanner({ ...f.options, timeoutMs: 200 }).scan(args), { code: "connector_timeout" });
|
|
187
190
|
const timeoutRun = await f.invocation(); await assert.rejects(access(timeoutRun.cwd), { code: "ENOENT" });
|