Skip to content

Commit d16ca88

Browse files
committed
Re-build
1 parent 2f0333c commit d16ca88

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

dist/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class Client {
239239
try {
240240
// @todo switch on cookie, "X-Session-Token" or client_credentials
241241
const fetchResponse = await fetch(url, {
242-
credentials: 'include', // @todo only required for cookie based auth,
242+
credentials: 'include',
243243
headers: headers,
244244
});
245245
let json = await fetchResponse.json();

dist/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,15 +1579,13 @@ class BaseService extends RequestBuilder {
15791579
};
15801580
}
15811581
async create(model, params) {
1582-
if (params) {
1583-
}
1582+
if (params) {}
15841583
const jsonApiSerializer = new JsonApiSerializer(this.hydrator.getModelMap());
15851584
const payload = jsonApiSerializer.buildCreatePayload(model);
15861585
return await this.client.makePostRequest(this.endpoint, payload);
15871586
}
15881587
async update(id, model, params) {
1589-
if (params) {
1590-
}
1588+
if (params) {}
15911589
const jsonApiSerializer = new JsonApiSerializer(this.hydrator.getModelMap());
15921590
const payload = jsonApiSerializer.buildUpdatePayload(model);
15931591
return await this.client.makePatchRequest(`${this.endpoint}/${id}`, payload);
@@ -2283,9 +2281,6 @@ class ClientConfig {
22832281
}
22842282
// src/models/Organisation.ts
22852283
class Organisation extends BaseModel {
2286-
constructor() {
2287-
super(...arguments);
2288-
}
22892284
type = "organisations";
22902285
static relationships = [];
22912286
}

0 commit comments

Comments
 (0)