@szymonpiatek/nextwordpress 0.0.16 → 0.0.17
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/client/index.cjs +5 -4
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +5 -4
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs +5 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +5 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +5 -4
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +5 -4
- package/dist/server/index.js.map +1 -1
- package/dist/{types-CvO7Ijbs.d.cts → types-DVzJO3P-.d.cts} +0 -3
- package/dist/{types-CvO7Ijbs.d.ts → types-DVzJO3P-.d.ts} +0 -3
- package/package.json +1 -1
package/dist/server/index.cjs
CHANGED
|
@@ -3399,9 +3399,6 @@ var GQL_SEND_PASSWORD_RESET_EMAIL = `
|
|
|
3399
3399
|
mutation SendPasswordResetEmail($input: SendPasswordResetEmailInput!) {
|
|
3400
3400
|
sendPasswordResetEmail(input: $input) {
|
|
3401
3401
|
success
|
|
3402
|
-
user {
|
|
3403
|
-
email
|
|
3404
|
-
}
|
|
3405
3402
|
}
|
|
3406
3403
|
}
|
|
3407
3404
|
`;
|
|
@@ -3420,7 +3417,11 @@ function createPasswordResetMutations(fetcher) {
|
|
|
3420
3417
|
const { gqlMutate } = fetcher;
|
|
3421
3418
|
async function sendPasswordResetEmail(input) {
|
|
3422
3419
|
const data = await gqlMutate(GQL_SEND_PASSWORD_RESET_EMAIL, { input });
|
|
3423
|
-
|
|
3420
|
+
const result = data.sendPasswordResetEmail;
|
|
3421
|
+
if (!result.success) {
|
|
3422
|
+
throw new WPGraphQLError(ErrorCode.GQL_ERRORS_IN_RESPONSE, 200, "sendPasswordResetEmail", "User not found");
|
|
3423
|
+
}
|
|
3424
|
+
return result;
|
|
3424
3425
|
}
|
|
3425
3426
|
async function resetUserPassword(input) {
|
|
3426
3427
|
const data = await gqlMutate(GQL_RESET_USER_PASSWORD, { input });
|