@edraj/tsdmart 1.0.12 → 1.0.13

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/index.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -483,9 +483,9 @@ export default class Dmart {
483
483
  ): Promise<ResponseEntry | null> {
484
484
  try {
485
485
  if (!subpath || subpath == "/") subpath = "__root__";
486
- const url = `${this.baseURL}/${scope}/entry/${resource_type}/${space_name}/${subpath}/${shortname}?retrieve_json_payload=${retrieve_json_payload}&retrieve_attachments=${retrieve_attachments}&validate_schema=${validate_schema}`;
486
+ const url = `${scope}/entry/${resource_type}/${space_name}/${subpath}/${shortname}?retrieve_json_payload=${retrieve_json_payload}&retrieve_attachments=${retrieve_attachments}&validate_schema=${validate_schema}`;
487
487
  const {data} = await axios.get<ResponseEntry>(
488
- url.replace(/\/+/g, "/"),
488
+ `${this.baseURL}/${url.replace(/\/+/g, "/")}`,
489
489
  {headers}
490
490
  );
491
491
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edraj/tsdmart",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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",