Update npm packages (73 packages including @jqhtml 2.3.36)

Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-02-20 11:31:28 +00:00
parent d01a6179aa
commit b5eb27a827
1690 changed files with 47348 additions and 16848 deletions

View File

@@ -58,6 +58,10 @@ class TeleReporterReceiver {
this._onTestBegin(params.testId, params.result);
return;
}
if (method === "onTestPaused") {
this._onTestPaused(params.testId, params.resultId, params.errors);
return;
}
if (method === "onTestEnd") {
this._onTestEnd(params.test, params.result);
return;
@@ -116,6 +120,13 @@ class TeleReporterReceiver {
testResult.setStartTimeNumber(payload.startTime);
this._reporter.onTestBegin?.(test, testResult);
}
_onTestPaused(testId, resultId, errors) {
const test = this._tests.get(testId);
const result = test.results.find((r) => r._id === resultId);
result.errors.push(...errors);
result.error = result.errors[0];
void this._reporter.onTestPaused?.(test, result);
}
_onTestEnd(testEndPayload, payload) {
const test = this._tests.get(testEndPayload.testId);
test.timeout = testEndPayload.timeout;
@@ -123,8 +134,8 @@ class TeleReporterReceiver {
const result = test.results.find((r) => r._id === payload.id);
result.duration = payload.duration;
result.status = payload.status;
result.errors = payload.errors;
result.error = result.errors?.[0];
result.errors.push(...payload.errors ?? []);
result.error = result.errors[0];
if (!!payload.attachments)
result.attachments = this._parseAttachments(payload.attachments);
if (payload.annotations) {
@@ -448,6 +459,8 @@ const baseFullConfig = {
tags: [],
updateSnapshots: "missing",
updateSourceMethod: "patch",
// @ts-expect-error runAgents is hidden
runAgents: "none",
version: "",
workers: 0,
webServer: null

View File

@@ -36,7 +36,7 @@ class TeleSuiteUpdater {
this._receiver = new import_teleReceiver.TeleReporterReceiver(this._createReporter(), {
mergeProjects: true,
mergeTestCases: true,
resolvePath: (rootDir, relativePath) => rootDir + options.pathSeparator + relativePath,
resolvePath: createPathResolve(options.pathSeparator),
clearPreviousResultsWhenTestBegins: true
});
this._options = options;
@@ -44,8 +44,8 @@ class TeleSuiteUpdater {
_createReporter() {
return {
version: () => "v2",
onConfigure: (c) => {
this.config = c;
onConfigure: (config) => {
this.config = config;
this._lastRunReceiver = new import_teleReceiver.TeleReporterReceiver({
version: () => "v2",
onBegin: (suite) => {
@@ -55,8 +55,9 @@ class TeleSuiteUpdater {
}, {
mergeProjects: true,
mergeTestCases: false,
resolvePath: (rootDir, relativePath) => rootDir + this._options.pathSeparator + relativePath
resolvePath: createPathResolve(this._options.pathSeparator)
});
void this._lastRunReceiver.dispatch({ method: "onConfigure", params: { config } });
},
onBegin: (suite) => {
if (!this.rootSuite)
@@ -131,6 +132,25 @@ class TeleSuiteUpdater {
};
}
}
function createPathResolve(pathSeparator) {
return (rootDir, relativePath) => {
const segments = [];
for (const segment of [...rootDir.split(pathSeparator), ...relativePath.split(pathSeparator)]) {
const isAfterDrive = pathSeparator === "\\" && segments.length === 1 && segments[0].endsWith(":");
const isFirst = !segments.length;
if (!segment && !isFirst && !isAfterDrive)
continue;
if (segment === ".")
continue;
if (segment === "..") {
segments.pop();
continue;
}
segments.push(segment);
}
return segments.join(pathSeparator);
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
TeleSuiteUpdater

View File

@@ -19,7 +19,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
var testTree_exports = {};
__export(testTree_exports, {
TestTree: () => TestTree,
collectTestIds: () => collectTestIds,
sortAndPropagateStatus: () => sortAndPropagateStatus,
statusEx: () => statusEx
});
@@ -242,16 +241,6 @@ class TestTree {
shortRoot.location = this.rootItem.location;
this.rootItem = shortRoot;
}
testIds() {
const result = /* @__PURE__ */ new Set();
const visit = (treeItem) => {
if (treeItem.kind === "case")
treeItem.tests.forEach((t) => result.add(t.id));
treeItem.children.forEach(visit);
};
visit(this.rootItem);
return result;
}
fileNames() {
const result = /* @__PURE__ */ new Set();
const visit = (treeItem) => {
@@ -276,7 +265,7 @@ class TestTree {
return this._treeItemById.get(id);
}
collectTestIds(treeItem) {
return treeItem ? collectTestIds(treeItem) : /* @__PURE__ */ new Set();
return collectTestIds(treeItem);
}
}
function sortAndPropagateStatus(treeItem) {
@@ -313,22 +302,28 @@ function sortAndPropagateStatus(treeItem) {
}
function collectTestIds(treeItem) {
const testIds = /* @__PURE__ */ new Set();
const locations = /* @__PURE__ */ new Set();
const visit = (treeItem2) => {
if (treeItem2.kind !== "test" && treeItem2.kind !== "case") {
treeItem2.children.forEach(visit);
return;
}
let fileItem = treeItem2;
while (fileItem && fileItem.parent && !(fileItem.kind === "group" && fileItem.subKind === "file"))
fileItem = fileItem.parent;
locations.add(fileItem.location.file);
if (treeItem2.kind === "case")
treeItem2.tests.map((t) => t.id).forEach((id) => testIds.add(id));
else if (treeItem2.kind === "test")
testIds.add(treeItem2.id);
treeItem2.tests.forEach((test) => testIds.add(test.id));
else
treeItem2.children?.forEach(visit);
testIds.add(treeItem2.id);
};
visit(treeItem);
return testIds;
return { testIds, locations };
}
const statusEx = Symbol("statusEx");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
TestTree,
collectTestIds,
sortAndPropagateStatus,
statusEx
});