@edraj/tsdmart 5.0.0 → 5.0.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.
- package/dmart.model.ts +1 -0
- package/dmart.service.ts +3 -2
- package/package.json +1 -1
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/tsdmart.iml +0 -14
- package/.idea/vcs.xml +0 -6
package/dmart.model.ts
CHANGED
package/dmart.service.ts
CHANGED
|
@@ -519,10 +519,11 @@ export class Dmart {
|
|
|
519
519
|
request: GetAttachmentURLRequest,
|
|
520
520
|
scope: string = DmartScope.managed
|
|
521
521
|
) {
|
|
522
|
-
|
|
522
|
+
const subpath = request.subpath.replace(
|
|
523
523
|
/\/+$/,
|
|
524
524
|
""
|
|
525
|
-
)
|
|
525
|
+
);
|
|
526
|
+
return `${Dmart.axiosDmartInstance.defaults.baseURL}`+`/${scope}/payload/${request.resource_type}/${request.space_name}/${subpath}/${request.parent_shortname}/${request.shortname}${request.ext === null ? "" : `.${request.ext}`}`.replaceAll('//', '/');
|
|
526
527
|
}
|
|
527
528
|
|
|
528
529
|
/**
|
package/package.json
CHANGED
package/.idea/modules.xml
DELETED
package/.idea/tsdmart.iml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
<excludeFolder url="file://$MODULE_DIR$/b" />
|
|
9
|
-
<excludeFolder url="file://$MODULE_DIR$/.idea/copilot/chatSessions" />
|
|
10
|
-
</content>
|
|
11
|
-
<orderEntry type="inheritedJdk" />
|
|
12
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
13
|
-
</component>
|
|
14
|
-
</module>
|