@navservice/core 1.90.0 → 1.91.0
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/build/es/index.js
CHANGED
|
@@ -180,8 +180,10 @@ const _api_api = class _api {
|
|
|
180
180
|
setToken: setToken
|
|
181
181
|
}));
|
|
182
182
|
}
|
|
183
|
-
static async delete({ baseURLKey, url }) {
|
|
184
|
-
return await this.axios(baseURLKey).delete(url
|
|
183
|
+
static async delete({ baseURLKey, url, setToken }) {
|
|
184
|
+
return await this.axios(baseURLKey).delete(url, _api.headers({
|
|
185
|
+
setToken: setToken
|
|
186
|
+
}));
|
|
185
187
|
}
|
|
186
188
|
static async post_form_data({ baseURLKey, url, data, setToken = true }) {
|
|
187
189
|
const formData = new FormData();
|
package/build/es/utils/_api.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare const utils: {
|
|
|
23
23
|
data: any;
|
|
24
24
|
setToken?: boolean;
|
|
25
25
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
26
|
-
delete({ baseURLKey, url }: {
|
|
26
|
+
delete({ baseURLKey, url, setToken }: {
|
|
27
27
|
baseURLKey: import("./_api").BaseUrl;
|
|
28
28
|
url: string;
|
|
29
29
|
setToken?: boolean;
|
package/build/lib/index.cjs
CHANGED
|
@@ -261,8 +261,10 @@ const _api_api = class _api {
|
|
|
261
261
|
setToken: setToken
|
|
262
262
|
}));
|
|
263
263
|
}
|
|
264
|
-
static async delete({ baseURLKey, url }) {
|
|
265
|
-
return await this.axios(baseURLKey).delete(url
|
|
264
|
+
static async delete({ baseURLKey, url, setToken }) {
|
|
265
|
+
return await this.axios(baseURLKey).delete(url, _api.headers({
|
|
266
|
+
setToken: setToken
|
|
267
|
+
}));
|
|
266
268
|
}
|
|
267
269
|
static async post_form_data({ baseURLKey, url, data, setToken = true }) {
|
|
268
270
|
const formData = new FormData();
|
|
@@ -23,7 +23,7 @@ declare const utils: {
|
|
|
23
23
|
data: any;
|
|
24
24
|
setToken?: boolean;
|
|
25
25
|
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
26
|
-
delete({ baseURLKey, url }: {
|
|
26
|
+
delete({ baseURLKey, url, setToken }: {
|
|
27
27
|
baseURLKey: import("./_api").BaseUrl;
|
|
28
28
|
url: string;
|
|
29
29
|
setToken?: boolean;
|