@yanhaidao/wecom 2.2.28 → 2.3.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/src/outbound.ts CHANGED
@@ -178,6 +178,12 @@ export const wecomOutbound: ChannelOutboundAdapter = {
178
178
  amr: "audio/amr", mp4: "video/mp4", pdf: "application/pdf", doc: "application/msword",
179
179
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
180
180
  xls: "application/vnd.ms-excel", xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
181
+ ppt: "application/vnd.ms-powerpoint", pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
182
+ txt: "text/plain", csv: "text/csv", tsv: "text/tab-separated-values", md: "text/markdown", json: "application/json",
183
+ xml: "application/xml", yaml: "application/yaml", yml: "application/yaml",
184
+ zip: "application/zip", rar: "application/vnd.rar", "7z": "application/x-7z-compressed",
185
+ tar: "application/x-tar", gz: "application/gzip", tgz: "application/gzip",
186
+ rtf: "application/rtf", odt: "application/vnd.oasis.opendocument.text",
181
187
  };
182
188
  contentType = mimeTypes[ext] || "application/octet-stream";
183
189
  console.log(`[wecom-outbound] Reading local file: ${mediaUrl}, ext=${ext}, contentType=${contentType}`);