@thefittingroom/sdk 1.4.1 → 1.4.3
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/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.4.
|
|
2
|
+
* thefittingroom v1.4.3 (2024-08-27T23:39:34.070Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
// Code generated by tygo. DO NOT EDIT.
|
|
@@ -25325,7 +25325,7 @@ class Fetcher {
|
|
|
25325
25325
|
static async Fetch({ user, endpointPath, method, body, useToken = true }) {
|
|
25326
25326
|
const url = this.getUrl(endpointPath, useToken);
|
|
25327
25327
|
const headers = await this.getHeaders(user, useToken);
|
|
25328
|
-
const config = { method, headers, credentials: '
|
|
25328
|
+
const config = { method, headers, credentials: 'omit' };
|
|
25329
25329
|
if (body)
|
|
25330
25330
|
config.body = JSON.stringify(body);
|
|
25331
25331
|
const res = await fetch(url, config);
|
|
@@ -25504,7 +25504,7 @@ class TfrShop {
|
|
|
25504
25504
|
async getMeasurementLocations() {
|
|
25505
25505
|
const locations = await this.fetchMeasurementLocations();
|
|
25506
25506
|
locations.forEach((location) => {
|
|
25507
|
-
this.measurementLocations.set(location.name, location.
|
|
25507
|
+
this.measurementLocations.set(location.name, location.garment_label);
|
|
25508
25508
|
});
|
|
25509
25509
|
}
|
|
25510
25510
|
async fetchMeasurementLocations() {
|