zmdms-utils 0.0.76 → 0.0.77

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/dist/es/file.js CHANGED
@@ -293,7 +293,7 @@ function createOriginalLink(fileId, fileName, options) {
293
293
  return "".concat(apiBaseURL, "/api/cicoms-resource/attach/filePreview?attachId=").concat(fileId, "&").concat(TOKEN_KEY, "=").concat(token);
294
294
  }
295
295
  if (isZmdmsFileService) {
296
- fileId = encodeFileId(fileId, 2);
296
+ fileId = encodeFileId(fileId, 1);
297
297
  }
298
298
  return ("".concat(apiBaseURL, "/attchPreview?attachId=").concat(fileId, "&").concat(TOKEN_KEY, "=").concat(token, "&officePreviewType=pdf") +
299
299
  (fileName ? "&titleName=".concat(encodeURIComponent(previewFileName)) : ""));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/file.ts CHANGED
@@ -360,7 +360,7 @@ export function createOriginalLink(
360
360
  return `${apiBaseURL}/api/cicoms-resource/attach/filePreview?attachId=${fileId}&${TOKEN_KEY}=${token}`;
361
361
  }
362
362
  if (isZmdmsFileService) {
363
- fileId = encodeFileId(fileId, 2);
363
+ fileId = encodeFileId(fileId, 1);
364
364
  }
365
365
  return (
366
366
  `${apiBaseURL}/attchPreview?attachId=${fileId}&${TOKEN_KEY}=${token}&officePreviewType=pdf` +