@theholocron/vercel-client 1.3.2 → 1.3.4
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/dist/index.mjs +11 -11
- package/package.json +8 -7
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import { createRestClient } from "@theholocron/http-client";
|
|
2
|
-
//#region src/utils.ts
|
|
3
|
-
function createVercelRestClient(opts) {
|
|
4
|
-
return createRestClient({
|
|
5
|
-
baseUrl: opts.baseUrl ?? "https://api.vercel.com",
|
|
6
|
-
token: opts.token,
|
|
7
|
-
defaultQuery: opts.teamId ? { teamId: opts.teamId } : void 0,
|
|
8
|
-
vendor: "Vercel",
|
|
9
|
-
fetch: opts.fetch
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
2
|
//#region src/deployments/deployments.ts
|
|
14
3
|
function deployments(rest) {
|
|
15
4
|
return {
|
|
@@ -83,6 +72,17 @@ function user(rest) {
|
|
|
83
72
|
return { get: () => rest.request("/v2/user") };
|
|
84
73
|
}
|
|
85
74
|
//#endregion
|
|
75
|
+
//#region src/utils.ts
|
|
76
|
+
function createVercelRestClient(opts) {
|
|
77
|
+
return createRestClient({
|
|
78
|
+
baseUrl: opts.baseUrl ?? "https://api.vercel.com",
|
|
79
|
+
token: opts.token,
|
|
80
|
+
defaultQuery: opts.teamId ? { teamId: opts.teamId } : void 0,
|
|
81
|
+
vendor: "Vercel",
|
|
82
|
+
fetch: opts.fetch
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
86
|
//#region src/index.ts
|
|
87
87
|
function createVercelClient(opts) {
|
|
88
88
|
const rest = createVercelRestClient(opts);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/vercel-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "A TypeScript client for the Vercel API",
|
|
5
5
|
"homepage": "https://github.com/theholocron/clients/tree/main/packages/vercel-client#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/clients/issues",
|
|
@@ -30,20 +30,21 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/http-client": "^1.3.
|
|
33
|
+
"@theholocron/http-client": "^1.3.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.1",
|
|
37
|
-
"@theholocron/eslint-config": "^7.
|
|
38
|
-
"@theholocron/tsconfig": "^7.
|
|
39
|
-
"@theholocron/tsdown-config": "^7.
|
|
40
|
-
"@theholocron/vitest-config": "^7.
|
|
37
|
+
"@theholocron/eslint-config": "^7.6.0",
|
|
38
|
+
"@theholocron/tsconfig": "^7.4.1",
|
|
39
|
+
"@theholocron/tsdown-config": "^7.4.1",
|
|
40
|
+
"@theholocron/vitest-config": "^7.4.1",
|
|
41
41
|
"@vitest/coverage-v8": "^4.1.10",
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.23",
|
|
43
43
|
"eslint": "^10.7.0",
|
|
44
44
|
"eslint-plugin-n": "^18.2.2",
|
|
45
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
45
46
|
"globals": "^17.7.0",
|
|
46
|
-
"tsdown": "^0.22.
|
|
47
|
+
"tsdown": "^0.22.13",
|
|
47
48
|
"typescript": "^5.9.3",
|
|
48
49
|
"vitest": "^4.1.10"
|
|
49
50
|
},
|