@doubling/compound-sync 1.6.0 → 1.6.1

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/package.json +1 -1
  2. package/storage-helpers.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doubling/compound-sync",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Bidirectional sync between Compound and local markdown files",
5
5
  "type": "module",
6
6
  "bin": {
@@ -80,6 +80,16 @@ const EXT_TO_MIME = {
80
80
  webm: 'video/webm',
81
81
  mov: 'video/quicktime',
82
82
  zip: 'application/zip',
83
+ // Office Open XML (modern Office). The full type strings are
84
+ // mandatory: tools that dispatch by mime (Excel, third-party readers)
85
+ // ignore alternative spellings.
86
+ xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
87
+ docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
88
+ pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
89
+ // Legacy Office formats (pre-2007 binary containers).
90
+ xls: 'application/vnd.ms-excel',
91
+ doc: 'application/msword',
92
+ ppt: 'application/vnd.ms-powerpoint',
83
93
  };
84
94
 
85
95
  export function mimeTypeFromExt(ext) {