vercel-api-js 0.1.7 → 0.1.8
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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.1.
|
|
2
|
+
> vercel-api-js@0.1.8 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m6.3s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m5.9s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -975,7 +975,7 @@ class VercelApi {
|
|
|
975
975
|
get auth() {
|
|
976
976
|
return {
|
|
977
977
|
accessToken: async ({ code, redirectUri, clientId, clientSecret }) => {
|
|
978
|
-
|
|
978
|
+
const result = await fetch$1({
|
|
979
979
|
method: 'POST',
|
|
980
980
|
url: `/v2/oauth/access_token`,
|
|
981
981
|
token: null,
|
|
@@ -983,6 +983,13 @@ class VercelApi {
|
|
|
983
983
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
984
984
|
body: formEncoded({ code, redirect_uri: redirectUri, client_id: clientId, client_secret: clientSecret })
|
|
985
985
|
});
|
|
986
|
+
return {
|
|
987
|
+
accessToken: result.access_token,
|
|
988
|
+
tokenType: result.token_type,
|
|
989
|
+
installationId: result.installation_id,
|
|
990
|
+
userId: result.user_id,
|
|
991
|
+
teamId: result.team_id
|
|
992
|
+
};
|
|
986
993
|
}
|
|
987
994
|
};
|
|
988
995
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -973,7 +973,7 @@ class VercelApi {
|
|
|
973
973
|
get auth() {
|
|
974
974
|
return {
|
|
975
975
|
accessToken: async ({ code, redirectUri, clientId, clientSecret }) => {
|
|
976
|
-
|
|
976
|
+
const result = await fetch$1({
|
|
977
977
|
method: 'POST',
|
|
978
978
|
url: `/v2/oauth/access_token`,
|
|
979
979
|
token: null,
|
|
@@ -981,6 +981,13 @@ class VercelApi {
|
|
|
981
981
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
982
982
|
body: formEncoded({ code, redirect_uri: redirectUri, client_id: clientId, client_secret: clientSecret })
|
|
983
983
|
});
|
|
984
|
+
return {
|
|
985
|
+
accessToken: result.access_token,
|
|
986
|
+
tokenType: result.token_type,
|
|
987
|
+
installationId: result.installation_id,
|
|
988
|
+
userId: result.user_id,
|
|
989
|
+
teamId: result.team_id
|
|
990
|
+
};
|
|
984
991
|
}
|
|
985
992
|
};
|
|
986
993
|
}
|