@connectrpc/connect
Advanced tools
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
+1
-1
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
+1
-1
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -43,3 +43,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents | ||
| result.set(headers_js_1.headerUserAgent, "connect-es/2.0.1"); | ||
| result.set(headers_js_1.headerUserAgent, "connect-es/2.0.2"); | ||
| } | ||
@@ -46,0 +46,0 @@ return result; |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -34,3 +34,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents | ||
| let userAgent = "connect-es/2.0.1"; | ||
| let userAgent = "connect-es/2.0.2"; | ||
| userAgent = result.has(headers_js_1.headerUserAgent) | ||
@@ -37,0 +37,0 @@ ? result.get(headers_js_1.headerUserAgent) |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -32,3 +32,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents | ||
| result.set(headers_js_1.headerUserAgent, "connect-es/2.0.1"); | ||
| result.set(headers_js_1.headerUserAgent, "connect-es/2.0.2"); | ||
| } | ||
@@ -35,0 +35,0 @@ if (timeoutMs !== undefined) { |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -44,2 +44,8 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| if (error) { | ||
| // Copy any metadata specified in the error into the target Headers | ||
| // Note that if a protocol header happens to be specified in metadata, it | ||
| // its value will be overridden below by the official protocol headers. | ||
| error.metadata.forEach((value, key) => { | ||
| target.append(key, value); | ||
| }); | ||
| target.set(headers_js_1.headerGrpcStatus, error.code.toString(10)); | ||
@@ -46,0 +52,0 @@ target.set(headers_js_1.headerGrpcMessage, encodeURIComponent(error.rawMessage)); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -82,3 +82,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| return invokeStreamImplementation(spec, context, input, interceptors, async (req) => { | ||
| const output = (0, normalize_js_1.normalizeIterable)(spec.method.output, spec.impl(await ensureSingle(input, "server-streaming"), mergeRequest(context, req))); | ||
| const output = (0, normalize_js_1.normalizeIterable)(spec.method.output, spec.impl(await ensureSingle(req.message, "server-streaming"), mergeRequest(context, req))); | ||
| return Object.assign({ stream: true, message: output, method: spec.method }, responseCommon(context, spec)); | ||
@@ -85,0 +85,0 @@ }); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
| "use strict"; | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
+1
-1
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
+1
-1
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -39,3 +39,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents | ||
| result.set(headerUserAgent, "connect-es/2.0.1"); | ||
| result.set(headerUserAgent, "connect-es/2.0.2"); | ||
| } | ||
@@ -42,0 +42,0 @@ return result; |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -30,3 +30,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents | ||
| let userAgent = "connect-es/2.0.1"; | ||
| let userAgent = "connect-es/2.0.2"; | ||
| userAgent = result.has(headerUserAgent) | ||
@@ -33,0 +33,0 @@ ? result.get(headerUserAgent) |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -28,3 +28,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // See https://github.com/grpc/grpc/blob/c462bb8d485fc1434ecfae438823ca8d14cf3154/doc/PROTOCOL-HTTP2.md#user-agents | ||
| result.set(headerUserAgent, "connect-es/2.0.1"); | ||
| result.set(headerUserAgent, "connect-es/2.0.2"); | ||
| } | ||
@@ -31,0 +31,0 @@ if (timeoutMs !== undefined) { |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -39,2 +39,8 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| if (error) { | ||
| // Copy any metadata specified in the error into the target Headers | ||
| // Note that if a protocol header happens to be specified in metadata, it | ||
| // its value will be overridden below by the official protocol headers. | ||
| error.metadata.forEach((value, key) => { | ||
| target.append(key, value); | ||
| }); | ||
| target.set(headerGrpcStatus, error.code.toString(10)); | ||
@@ -41,0 +47,0 @@ target.set(headerGrpcMessage, encodeURIComponent(error.rawMessage)); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -78,3 +78,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| return invokeStreamImplementation(spec, context, input, interceptors, async (req) => { | ||
| const output = normalizeIterable(spec.method.output, spec.impl(await ensureSingle(input, "server-streaming"), mergeRequest(context, req))); | ||
| const output = normalizeIterable(spec.method.output, spec.impl(await ensureSingle(req.message, "server-streaming"), mergeRequest(context, req))); | ||
| return Object.assign({ stream: true, message: output, method: spec.method }, responseCommon(context, spec)); | ||
@@ -81,0 +81,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -1,2 +0,2 @@ | ||
| // Copyright 2021-2024 The Connect Authors | ||
| // Copyright 2021-2025 The Connect Authors | ||
| // | ||
@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
+2
-2
| { | ||
| "name": "@connectrpc/connect", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "Type-safe APIs with Protobuf and TypeScript.", | ||
@@ -70,3 +70,3 @@ "license": "Apache-2.0", | ||
| "devDependencies": { | ||
| "@bufbuild/buf": "^1.48.0", | ||
| "@bufbuild/buf": "^1.50.0", | ||
| "@bufbuild/protoc-gen-es": "^2.2.3", | ||
@@ -73,0 +73,0 @@ "@types/jasmine": "^5.1.5", |
857123
0.08%18534
0.06%