@edraj/tsdmart 2.6.1 → 2.6.2

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.
Files changed (2) hide show
  1. package/dmart.service.ts +3 -4
  2. package/package.json +1 -1
package/dmart.service.ts CHANGED
@@ -1,4 +1,4 @@
1
- import axios, {AxiosInstance} from "axios";
1
+ import {AxiosInstance} from "axios";
2
2
  import {
3
3
  ActionRequest,
4
4
  ActionResponse,
@@ -299,9 +299,8 @@ export class Dmart {
299
299
  filter_data_assets?: string[]
300
300
  ) {
301
301
  try {
302
- const url = `managed/data-asset`;
303
302
  const { data } = await Dmart.axiosDmartInstance.post(
304
- url,
303
+ 'managed/data-asset',
305
304
  {
306
305
  space_name: spaceName,
307
306
  resource_type: resourceType,
@@ -357,7 +356,7 @@ export class Dmart {
357
356
  ext: string | null = null,
358
357
  scope: string = "managed"
359
358
  ) {
360
- return `${axios.defaults.baseURL}/${scope}/payload/${resource_type}/${space_name}/${subpath.replace(
359
+ return `${Dmart.axiosDmartInstance.defaults.baseURL}/${scope}/payload/${resource_type}/${space_name}/${subpath.replace(
361
360
  /\/+$/,
362
361
  ""
363
362
  )}/${parent_shortname}/${shortname}${ext === null ? "" : `.${ext}`}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edraj/tsdmart",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "A TypeScript implementation of the Dmart that depends on axios.",
5
5
  "author": "Kefah T. Issa",
6
6
  "email": "kefah.issa@gmail.com",