Skip to content

Commit

Permalink
publish latestst
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Aug 13, 2024
1 parent 4d6c513 commit 677b9aa
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion packages/related/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/cli",
"version": "0.1.32",
"version": "0.1.33",
"description": "Command Line Interface for jsenv",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/related/cli/template-node-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@jsenv/assert": "4.4.0",
"@jsenv/core": "39.3.12",
"@jsenv/eslint-config-relax": "1.1.2",
"@jsenv/test": "3.4.2",
"@jsenv/test": "3.4.3",
"eslint": "9.9.0",
"prettier": "3.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/related/cli/template-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@jsenv/plugin-bundling": "2.7.7",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/eslint-config-relax": "1.1.2",
"@jsenv/test": "3.4.2",
"@jsenv/test": "3.4.3",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/related/cli/template-web-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@jsenv/plugin-bundling": "2.7.7",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/eslint-config-relax": "1.1.2",
"@jsenv/test": "3.4.2",
"@jsenv/test": "3.4.3",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/related/cli/template-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@jsenv/plugin-bundling": "2.7.7",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/eslint-config-relax": "1.1.2",
"@jsenv/test": "3.4.2",
"@jsenv/test": "3.4.3",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/related/cli/template-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@jsenv/eslint-config-relax": "1.1.2",
"@jsenv/plugin-bundling": "2.7.7",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/test": "3.4.2",
"@jsenv/test": "3.4.3",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.0",
Expand Down
44 changes: 23 additions & 21 deletions packages/related/test/dist/jsenv_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4143,26 +4143,28 @@ const formatErrorForTerminal = (
error.site.url.startsWith("file:") &&
typeof error.site.line === "number"
) {
const content = readFileSync(new URL(error.site.url), "utf8");
text += generateContentFrame({
content,
line: error.site.line,
column: error.site.column,
linesAbove: 2,
linesBelow: 0,
lineMaxWidth: process.stdout.columns,
format: (string, type) => {
return {
line_number_aside: () => ANSI.color(string, ANSI.GREY),
char: () => string,
marker_overflow_left: () => ANSI.color(string, ANSI.GREY),
marker_overflow_right: () => ANSI.color(string, ANSI.GREY),
marker_line: () => ANSI.color(string, ANSI.RED),
marker_column: () => ANSI.color(string, ANSI.RED),
}[type]();
},
});
text += `\n`;
try {
const content = readFileSync(new URL(error.site.url), "utf8");
text += generateContentFrame({
content,
line: error.site.line,
column: error.site.column,
linesAbove: 2,
linesBelow: 0,
lineMaxWidth: process.stdout.columns,
format: (string, type) => {
return {
line_number_aside: () => ANSI.color(string, ANSI.GREY),
char: () => string,
marker_overflow_left: () => ANSI.color(string, ANSI.GREY),
marker_overflow_right: () => ANSI.color(string, ANSI.GREY),
marker_line: () => ANSI.color(string, ANSI.RED),
marker_column: () => ANSI.color(string, ANSI.RED),
}[type]();
},
});
text += `\n`;
} catch {}
}
}
text += `${error.name}: ${error.message}`;
Expand Down Expand Up @@ -5576,7 +5578,7 @@ const startServerUsingCommand = async (
if (timeoutAbortSource.signal.aborted) {
// aborted by timeout
throw new Error(
`"${webServer.command}" command did not start a server in less than ${allocatedMs}ms`,
`"${webServer.command}" command did not start a server at ${webServer.origin} in less than ${allocatedMs}ms`,
);
}
if (signal.aborted) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const run = async (inlineExec) => {
uses: desc.uses,
runtime: inlineRuntime(async () => {
callOrder.push(`${key}_start`);
await new Promise((resolve) => setTimeout(resolve, 500));
await new Promise((resolve) => setTimeout(resolve, 800));
callOrder.push(`${key}_end`);
}),
};
Expand Down

0 comments on commit 677b9aa

Please sign in to comment.