@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.
- package/index.ts +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 = `${
|
|
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;
|