@social-mail/social-mail-web-server 1.5.402 → 1.5.404

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.5.402",
3
+ "version": "1.5.404",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.2.746";
6
+ const version = "1.2.747";
7
7
 
8
8
  const existing = await config.getValue(UIPackageConfig, false);
9
9
  if (existing) {
@@ -26,7 +26,7 @@ export default class ImageConverterService {
26
26
  if (/\.bmp$/i.test(file.fileName)) {
27
27
  using f1 = new TempFolder();
28
28
  copy = await f1.copy(file.fileName, file, file.contentType);
29
- outputFile = await this.tempFileService.createTempFile(".bmp", "bmp", "image/bmp");
29
+ outputFile = await this.tempFileService.createTempFile(".png", "png", "image/png");
30
30
  await spawnPromise("convert", [
31
31
  copy.path,
32
32
  outputFile.path
@@ -169,15 +169,15 @@ export default class TempFileService {
169
169
  }
170
170
 
171
171
  public async createLink(fileName: string, src: string | LocalFile, contentType: string) {
172
+ const qIndex = fileName.indexOf("?");
173
+ if (qIndex !== -1) {
174
+ fileName = fileName.substring(0, qIndex);
175
+ }
172
176
  if (fileName) {
173
177
  fileName = fileName.replace(/([\/\<\>\:\"\\\|\?\*]+)/g, "-");
174
178
  } else {
175
179
  fileName = "temp.dat";
176
180
  }
177
- const qIndex = fileName.indexOf("?");
178
- if (qIndex !== -1) {
179
- fileName = fileName.substring(0, qIndex);
180
- }
181
181
  const fileInfo = path.parse(fileName);
182
182
 
183
183
  // you can however create symbolic link under a folder