@ww_nero/media 1.0.6 → 1.0.7

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/index.js +2 -4
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -68,14 +68,12 @@ const uploadAudio = async (uploadUrl, audioPath) => {
68
68
  const fileBuffer = fs.readFileSync(audioPath);
69
69
  const fileName = path.basename(audioPath);
70
70
 
71
- const FormData = (await import('form-data')).default;
72
71
  const formData = new FormData();
73
- formData.append('file', fileBuffer, fileName);
72
+ formData.append('file', new Blob([fileBuffer]), fileName);
74
73
 
75
74
  const response = await fetch(uploadUrl, {
76
75
  method: 'POST',
77
76
  body: formData,
78
- headers: formData.getHeaders(),
79
77
  });
80
78
 
81
79
  if (!response.ok) {
@@ -339,7 +337,7 @@ const asr = async ({ working_directory, audio_file }) => {
339
337
  const server = new Server(
340
338
  {
341
339
  name: 'media',
342
- version: '1.0.6',
340
+ version: '1.0.7',
343
341
  },
344
342
  {
345
343
  capabilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ww_nero/media",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "MCP server for media processing, including ASR speech recognition",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -10,7 +10,6 @@
10
10
  "index.js"
11
11
  ],
12
12
  "dependencies": {
13
- "@modelcontextprotocol/sdk": "^1.22.0",
14
- "form-data": "^4.0.1"
13
+ "@modelcontextprotocol/sdk": "^1.22.0"
15
14
  }
16
15
  }