Skip to content

Commit cb282f2

Browse files
authored
Merge branch 'httptoolkit:main' into main
2 parents 35cbc95 + 2e67811 commit cb282f2

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# Install Node
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 22.14.0
17+
node-version: 22.20.0
1818
cache: 'npm'
1919

2020
# Install & build & test:
@@ -60,7 +60,7 @@ jobs:
6060
# Install Node
6161
- uses: actions/setup-node@v4
6262
with:
63-
node-version: 22.14.0
63+
node-version: 22.20.0
6464
cache: 'npm'
6565

6666
# Install & unit test & build

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
legacy-peer-deps=true
1+
legacy-peer-deps=true
2+
engine-strict=true

package-lock.json

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"httptoolkit-server": ">=1.9.0",
3333
"httptoolkit-desktop": ">=1.7.0"
3434
},
35+
"engines": {
36+
"node": ">=20.0.0"
37+
},
3538
"dependencies": {
3639
"@ethersproject/abi": "^5.7.0",
3740
"@fontsource/dm-mono": "^5.0.19",
@@ -43,7 +46,7 @@
4346
"@fortawesome/free-solid-svg-icons": "^5.12.1",
4447
"@fortawesome/react-fontawesome": "^0.1.8",
4548
"@httptoolkit/accounts": "^2.3.0",
46-
"@httptoolkit/httpsnippet": "^2.2.0",
49+
"@httptoolkit/httpsnippet": "^3.0.0",
4750
"@open-rpc/meta-schema": "^1.14.2",
4851
"@phosphor-icons/react": "^2.1.5",
4952
"@reach/router": "^1.2.1",

src/model/ui/export.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export function generateCodeSnippet(
5151
const harSnippetBase = simplifyHarForSnippetExport(harRequest);
5252

5353
// Then, we convert that HAR to code for the given target:
54-
return new HTTPSnippet(harSnippetBase).convert(snippetFormat.target, snippetFormat.client);
54+
return new HTTPSnippet(harSnippetBase)
55+
.convert(snippetFormat.target, snippetFormat.client)
56+
.trim();
5557
};
5658

5759
const simplifyHarForSnippetExport = (harRequest: ExtendedHarRequest) => {

0 commit comments

Comments
 (0)