Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/angry-boats-kick.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@saleor/app-sdk": major
---

Changed publically exported paths. New exports will be documented in docs and migration guide
Changed publicly exported paths. New exports will be documented in docs and migration guide
11 changes: 6 additions & 5 deletions src/APL/saleor-cloud/saleor-cloud-apl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ describe("APL", () => {
saleor_app_id: "42",
saleor_api_url: "https://example.com/graphql/",
jwks: "{}",
domain: "saleor.cloud",
token: "example-token",
}),
headers: {
"Content-Type": "application/json",
Authorization: "Bearer token",
},
method: "POST",
}
},
);
});

Expand All @@ -66,7 +67,7 @@ describe("APL", () => {
const apl = new SaleorCloudAPL(aplConfig);

await expect(apl.set(stubAuthData)).rejects.toThrow(
"Fetch returned with non 200 status code 500"
"Fetch returned with non 200 status code 500",
);
});
});
Expand Down Expand Up @@ -112,7 +113,7 @@ describe("APL", () => {

expect(err.code).toEqual("RESPONSE_BODY_INVALID");
expect(err).toMatchInlineSnapshot(
"[SaleorCloudAplError: Cant parse response body: json error]"
"[SaleorCloudAplError: Cant parse response body: json error]",
);
}
});
Expand Down Expand Up @@ -143,7 +144,7 @@ describe("APL", () => {
Authorization: "Bearer token",
},
method: "GET",
}
},
);
});

Expand Down Expand Up @@ -190,7 +191,7 @@ describe("APL", () => {
Authorization: "Bearer token",
},
method: "GET",
}
},
);
});
});
Expand Down
2 changes: 2 additions & 0 deletions src/APL/saleor-cloud/saleor-cloud-apl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const mapAuthDataToAPIBody = (authData: AuthData) => ({
saleor_app_id: authData.appId,
saleor_api_url: authData.saleorApiUrl,
jwks: authData.jwks,
// TODO: remove domain from the Marketplace API
domain: "saleor.cloud",
token: authData.token,
});

Expand Down
Loading