@atproto/api 0.2.0 → 0.2.2
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/dist/index.js
CHANGED
|
@@ -6866,8 +6866,11 @@ function getMethodSchemaHTTPMethod(schema2) {
|
|
|
6866
6866
|
return "get";
|
|
6867
6867
|
}
|
|
6868
6868
|
function constructMethodCallUri(nsid2, schema2, serviceUri, params2) {
|
|
6869
|
-
|
|
6870
|
-
|
|
6869
|
+
let origin = serviceUri.toString();
|
|
6870
|
+
if (!origin.endsWith("/")) {
|
|
6871
|
+
origin += "/";
|
|
6872
|
+
}
|
|
6873
|
+
const uri2 = new URL(`${origin}xrpc/${nsid2}`);
|
|
6871
6874
|
if (params2) {
|
|
6872
6875
|
for (const [key, value] of Object.entries(params2)) {
|
|
6873
6876
|
const paramSchema = schema2.parameters?.properties?.[key];
|