Skip to content

Commit dd2fa4d

Browse files
committed
Revert to earlier prettier version
1 parent 1b93cdb commit dd2fa4d

File tree

5 files changed

+40
-75
lines changed

5 files changed

+40
-75
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"pkg-up": "~3.1.0",
3333
"resolve": "^1.22.8",
3434
"ts-morph": "^19.0.0",
35-
"ts-to-zod": "github:stainless-api/stl-api#ts-to-zod-0.0.4"
35+
"ts-to-zod": "github:stainless-api/stl-api#ts-to-zod-0.0.5"
3636
},
3737
"devDependencies": {
3838
"@swc/core": "^1.3.100",

packages/client/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stl-api/client",
3-
"version": "0.0.1-alpha.38",
3+
"version": "0.0.1-alpha.40",
44
"description": "primary client package for stl-api",
55
"author": "[email protected]",
66
"license": "ISC",
@@ -28,14 +28,15 @@
2828
"dependencies": {
2929
"dedent-js": "^1.0.1",
3030
"lodash": "^4.17.21",
31-
"prettier": "^3.3.3",
32-
"stainless": "github:stainless-api/stl-api#stainless-0.1.3",
31+
"prettier": "^2.8.8",
32+
"stainless": "github:stainless-api/stl-api#stainless-0.1.1",
3333
"typescript": "^5.3.2",
3434
"zod-to-ts": "^1.2.0"
3535
},
3636
"devDependencies": {
3737
"@tanstack/react-query": "^5.28.0",
3838
"@types/lodash": "^4.14.202",
39+
"@types/prettier": "^2.7.3",
3940
"ts-node": "^10.9.1",
4041
"vitest": "^1.3.1"
4142
},

packages/client/src/codegen/generate-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,6 @@ export async function generateOutput<API extends APIConfig>(
335335
);
336336

337337
return await prettier.format(output.flat().join("\n"), {
338-
parser: "typescript",
338+
parser: "babel",
339339
});
340340
}

packages/client/src/core/api-client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function isQueryOrBody(arg: unknown): arg is Record<string, string> {
4949
}
5050

5151
function makeUrl(
52-
callPath: string[],
52+
[basePath, ...callPath]: string[],
5353
{
5454
outputCase,
5555
method,
@@ -77,7 +77,7 @@ function makeUrl(
7777
url = `${url}?${new URLSearchParams(Object.entries(body))}`;
7878
}
7979

80-
return url;
80+
return `${basePath}/${url}`;
8181
}
8282

8383
/**

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)