@moonbase.sh/storefront-api 0.2.36 → 0.2.38
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.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -677,7 +677,7 @@ var MoonbaseApi = class {
|
|
|
677
677
|
const data = contentLength > 0 ? await response.json() : null;
|
|
678
678
|
return {
|
|
679
679
|
data,
|
|
680
|
-
headers: response.headers,
|
|
680
|
+
headers: Object.fromEntries(response.headers.entries()),
|
|
681
681
|
status: response.status
|
|
682
682
|
};
|
|
683
683
|
} catch (err) {
|
|
@@ -885,7 +885,7 @@ var ActivationEndpoints = class {
|
|
|
885
885
|
try {
|
|
886
886
|
return {
|
|
887
887
|
license: licenseSchema.parse(response.data),
|
|
888
|
-
url: import_zod11.z.string().parse(response.headers.
|
|
888
|
+
url: import_zod11.z.string().parse(response.headers.location)
|
|
889
889
|
};
|
|
890
890
|
} catch (err) {
|
|
891
891
|
console.warn("Could not activate product", { deviceToken, activationMethod, response, err });
|
package/dist/index.d.cts
CHANGED
|
@@ -218,7 +218,7 @@ declare class TokenStore {
|
|
|
218
218
|
type HttpMethods = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
|
219
219
|
interface Response {
|
|
220
220
|
data: unknown;
|
|
221
|
-
headers:
|
|
221
|
+
headers: Record<string, string>;
|
|
222
222
|
status: number;
|
|
223
223
|
}
|
|
224
224
|
declare class MoonbaseApi {
|
package/dist/index.d.ts
CHANGED
|
@@ -218,7 +218,7 @@ declare class TokenStore {
|
|
|
218
218
|
type HttpMethods = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
|
219
219
|
interface Response {
|
|
220
220
|
data: unknown;
|
|
221
|
-
headers:
|
|
221
|
+
headers: Record<string, string>;
|
|
222
222
|
status: number;
|
|
223
223
|
}
|
|
224
224
|
declare class MoonbaseApi {
|
package/dist/index.js
CHANGED
|
@@ -635,7 +635,7 @@ var MoonbaseApi = class {
|
|
|
635
635
|
const data = contentLength > 0 ? await response.json() : null;
|
|
636
636
|
return {
|
|
637
637
|
data,
|
|
638
|
-
headers: response.headers,
|
|
638
|
+
headers: Object.fromEntries(response.headers.entries()),
|
|
639
639
|
status: response.status
|
|
640
640
|
};
|
|
641
641
|
} catch (err) {
|
|
@@ -843,7 +843,7 @@ var ActivationEndpoints = class {
|
|
|
843
843
|
try {
|
|
844
844
|
return {
|
|
845
845
|
license: licenseSchema.parse(response.data),
|
|
846
|
-
url: z11.string().parse(response.headers.
|
|
846
|
+
url: z11.string().parse(response.headers.location)
|
|
847
847
|
};
|
|
848
848
|
} catch (err) {
|
|
849
849
|
console.warn("Could not activate product", { deviceToken, activationMethod, response, err });
|
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.38",
|
|
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",
|