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.
@@ -1,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.1.7 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
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
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 9.5s
7
+ created dist/index.cjs, dist/index.mjs in 6.3s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 8s
10
+ created dist/index.d.ts in 5.9s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 13148b3: Update accessToken result to match types
8
+
3
9
  ## 0.1.7
4
10
 
5
11
  ### Patch Changes
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
- return await fetch$1({
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
- return await fetch$1({
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",