@typespec/http 0.57.0-dev.2 → 0.57.0-dev.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/README.md CHANGED
@@ -458,8 +458,8 @@ namespace PetStore;
458
458
 
459
459
  ```typespec
460
460
  @server("https://{region}.foo.com", "Regional endpoint", {
461
- @doc("Region name")
462
- region?: string = "westus",
461
+ @doc("Region name")
462
+ region?: string = "westus",
463
463
  })
464
464
  ```
465
465
 
@@ -154,8 +154,8 @@ export type HeadDecorator = (context: DecoratorContext, target: Operation) => vo
154
154
  *
155
155
  * ```typespec
156
156
  * @server("https://{region}.foo.com", "Regional endpoint", {
157
- * @doc("Region name")
158
- * region?: string = "westus",
157
+ * @doc("Region name")
158
+ * region?: string = "westus",
159
159
  * })
160
160
  * ```
161
161
  */
@@ -34,7 +34,7 @@ export interface HttpAuthBase {
34
34
  * The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password.
35
35
  * For example, to authorize as demo / p@55w0rd the client would send
36
36
  * ```
37
- * Authorization: Basic ZGVtbzpwQDU1dzByZA==
37
+ * Authorization: Basic ZGVtbzpwQDU1dzByZA==
38
38
  * ```
39
39
  */
40
40
  export interface BasicAuth extends HttpAuthBase {
package/lib/auth.tsp CHANGED
@@ -19,12 +19,12 @@ enum AuthType {
19
19
  }
20
20
 
21
21
  /**
22
- * Basic authentication is a simple authentication scheme built into the HTTP protocol.
23
- * The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password.
24
- * For example, to authorize as demo / `p@55w0rd` the client would send
25
- * ```
26
- * Authorization: Basic ZGVtbzpwQDU1dzByZA==
27
- * ```
22
+ * Basic authentication is a simple authentication scheme built into the HTTP protocol.
23
+ * The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password.
24
+ * For example, to authorize as demo / `p@55w0rd` the client would send
25
+ * ```
26
+ * Authorization: Basic ZGVtbzpwQDU1dzByZA==
27
+ * ```
28
28
  */
29
29
  @doc("")
30
30
  model BasicAuth {
@@ -40,7 +40,7 @@ model BasicAuth {
40
40
  * The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The bearer token is a cryptic string, usually generated by the server in response to a login request.
41
41
  * The client must send this token in the Authorization header when making requests to protected resources:
42
42
  * ```
43
- * Authorization: Bearer <token>
43
+ * Authorization: Bearer <token>
44
44
  * ```
45
45
  */
46
46
  @doc("")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/http",
3
- "version": "0.57.0-dev.2",
3
+ "version": "0.57.0-dev.4",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec HTTP protocol binding",
6
6
  "homepage": "https://github.com/microsoft/typespec",
@@ -45,12 +45,12 @@
45
45
  "@types/node": "~18.11.19",
46
46
  "@typespec/compiler": "~0.56.0 || >=0.57.0-dev <0.57.0",
47
47
  "@typespec/library-linter": "~0.56.0 || >=0.57.0-dev <0.57.0",
48
- "@vitest/coverage-v8": "^1.5.0",
49
- "@vitest/ui": "^1.5.0",
48
+ "@vitest/coverage-v8": "^1.6.0",
49
+ "@vitest/ui": "^1.6.0",
50
50
  "c8": "^9.1.0",
51
- "rimraf": "~5.0.5",
51
+ "rimraf": "~5.0.7",
52
52
  "typescript": "~5.4.5",
53
- "vitest": "^1.5.0",
53
+ "vitest": "^1.6.0",
54
54
  "@typespec/tspd": "~0.46.0"
55
55
  },
56
56
  "dependencies": {},