@moonbase.sh/storefront-api 0.2.7 → 0.2.9
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.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -410,10 +410,10 @@ var IdentityEndpoints = class {
|
|
|
410
410
|
return userAccountConfirmedSchema.parse(response.data);
|
|
411
411
|
}
|
|
412
412
|
async confirmEmail(email, code) {
|
|
413
|
-
await this.api.fetch(`/customer/identity/confirm-email?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
413
|
+
await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
414
414
|
}
|
|
415
415
|
async confirmEmailChange(email, code) {
|
|
416
|
-
await this.api.authenticatedFetch(`/customer/identity/confirm-email-change?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
416
|
+
await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
|
package/dist/index.js
CHANGED
|
@@ -363,10 +363,10 @@ var IdentityEndpoints = class {
|
|
|
363
363
|
return userAccountConfirmedSchema.parse(response.data);
|
|
364
364
|
}
|
|
365
365
|
async confirmEmail(email, code) {
|
|
366
|
-
await this.api.fetch(`/customer/identity/confirm-email?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
366
|
+
await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
367
367
|
}
|
|
368
368
|
async confirmEmailChange(email, code) {
|
|
369
|
-
await this.api.authenticatedFetch(`/customer/identity/confirm-email-change?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
369
|
+
await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(email)}&code=${encodeURIComponent(code.replaceAll(" ", "+"))}`, "POST");
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.9",
|
|
5
5
|
"description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|