@cords/sdk 0.1.5 → 0.1.7
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -139,9 +139,9 @@ var CordsAPI = ({
|
|
|
139
139
|
params.append("filter[meta][TaxonomyCodes][]", code);
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
const headers =
|
|
142
|
+
const headers = {};
|
|
143
143
|
if (options.sessionId) {
|
|
144
|
-
headers
|
|
144
|
+
headers["session-id"] = options.sessionId;
|
|
145
145
|
}
|
|
146
146
|
const res = await request(`${url.toString()}?${params}`, {
|
|
147
147
|
headers
|
package/dist/index.mjs
CHANGED
|
@@ -116,9 +116,9 @@ var CordsAPI = ({
|
|
|
116
116
|
params.append("filter[meta][TaxonomyCodes][]", code);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
const headers =
|
|
119
|
+
const headers = {};
|
|
120
120
|
if (options.sessionId) {
|
|
121
|
-
headers
|
|
121
|
+
headers["session-id"] = options.sessionId;
|
|
122
122
|
}
|
|
123
123
|
const res = await request(`${url.toString()}?${params}`, {
|
|
124
124
|
headers
|