@vercel/functions 3.7.2 → 3.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vercel/functions
2
2
 
3
+ ## 3.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [fb93ff6]
8
+ - @vercel/oidc@3.7.1
9
+
10
+ ## 3.7.3
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [415fde0]
15
+ - @vercel/oidc@3.7.0
16
+
3
17
  ## 3.7.2
4
18
 
5
19
  ### Patch Changes
@@ -6,7 +6,7 @@
6
6
 
7
7
  > **getVercelOidcToken**(`options?`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`string`\>
8
8
 
9
- Defined in: packages/oidc/dist/get-vercel-oidc-token-with-refresh.d.ts:60
9
+ Defined in: packages/oidc/dist/get-vercel-oidc-token-with-refresh.d.ts:61
10
10
 
11
11
  Gets the current OIDC token from the request context or the environment variable.
12
12
 
@@ -6,7 +6,17 @@
6
6
 
7
7
  > **getVercelOidcTokenSync**(): `string`
8
8
 
9
- Defined in: packages/oidc/dist/get-vercel-oidc-token-sync.d.ts:22
9
+ Defined in: packages/oidc/dist/get-vercel-oidc-token-sync.d.ts:23
10
+
11
+ ## Returns
12
+
13
+ `string`
14
+
15
+ The OIDC token.
16
+
17
+ ## Deprecated
18
+
19
+ Use `getVercelOidcToken` instead.
10
20
 
11
21
  Gets the current OIDC token from the request context or the environment variable.
12
22
 
@@ -17,12 +27,6 @@ It checks for the `x-vercel-oidc-token` header in the request context and falls
17
27
 
18
28
  This function will not refresh the token if it is expired. For refreshing the token, use the @{link getVercelOidcToken} function.
19
29
 
20
- ## Returns
21
-
22
- `string`
23
-
24
- The OIDC token.
25
-
26
30
  ## Throws
27
31
 
28
32
  If the `x-vercel-oidc-token` header is missing from the request context and the environment variable `VERCEL_OIDC_TOKEN` is not set.
@@ -30,7 +34,6 @@ If the `x-vercel-oidc-token` header is missing from the request context and the
30
34
  ## Example
31
35
 
32
36
  ```js
33
- // Using the OIDC token
34
37
  const token = getVercelOidcTokenSync();
35
38
  console.log('OIDC Token:', token);
36
39
  ```
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "require": "./middleware.js"
31
31
  }
32
32
  },
33
- "version": "3.7.2",
33
+ "version": "3.7.4",
34
34
  "repository": {
35
35
  "directory": "packages/functions",
36
36
  "type": "git",
@@ -77,7 +77,7 @@
77
77
  "access": "public"
78
78
  },
79
79
  "dependencies": {
80
- "@vercel/oidc": "3.6.2"
80
+ "@vercel/oidc": "3.7.1"
81
81
  },
82
82
  "scripts": {
83
83
  "pretest": "pnpm run build:code",