@takagaki/cortex-decisions-viewer 0.4.17 → 0.4.18

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/dist/render.js +3 -2
  2. package/package.json +1 -1
package/dist/render.js CHANGED
@@ -720,8 +720,9 @@ const CLIENT_JS = `
720
720
  });
721
721
  }
722
722
  function isAllowed(f) {
723
- // 資料は画像をMIMEで全面許可(拡張子が取れない/変則的でも通す)。文字起こしは拡張子判定のみ。
724
- if (!isT && f.type && f.type.indexOf("image/") === 0) return true;
723
+ // 資料はフロントで弾かない(どんなファイルも受け付ける)。対応可否の最終判断はバックエンドに任せる。
724
+ if (!isT) return true;
725
+ // 文字起こしは議事録化に不適なファイルを避けるため拡張子で判定する。
725
726
  var ext = extOf(f.name);
726
727
  return !!(ext && allowedExt[ext]);
727
728
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takagaki/cortex-decisions-viewer",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "Cortexの意思決定記録(Decisions/*.md)を静的サイトにビルドして閲覧する。各レコードに「Edit on GitHub」リンクを付与する。",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,