🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@llm-tools/embedjs-utils

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@llm-tools/embedjs-utils - npm Package Compare versions

Comparing version

to
0.1.11

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 0.1.11 (2024-10-27)
This was a version bump only for embedjs-utils to align it with other projects, there were no code changes.
## 0.1.10 (2024-10-25)

@@ -2,0 +6,0 @@

4

package.json
{
"name": "@llm-tools/embedjs-utils",
"version": "0.1.10",
"version": "0.1.11",
"description": "Useful util functions when extending the embedjs ecosystem",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.10"
"@llm-tools/embedjs-interfaces": "0.1.11"
},

@@ -8,0 +8,0 @@ "type": "module",

import { Stream } from 'stream';
export declare function stream2buffer(stream: Stream): Promise<Buffer>;
export declare function contentTypeToMimeType(contentType: string): string;

@@ -9,2 +9,10 @@ export async function stream2buffer(stream) {

}
export function contentTypeToMimeType(contentType) {
if (!contentType)
return contentType;
if (contentType.includes(';'))
return contentType.split(';')[0];
else
return contentType;
}
//# sourceMappingURL=stream.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet