Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@llamaindex/cloud

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@llamaindex/cloud - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

2

package.json
{
"name": "@llamaindex/cloud",
"version": "0.2.9",
"version": "0.2.10",
"type": "module",

@@ -5,0 +5,0 @@ "license": "MIT",

import { FileReader, Document } from '@llamaindex/core/schema';
import { getEnv, fs } from '@llamaindex/env';
import { getEnv, fs, path } from '@llamaindex/env';
import { filetypeinfo } from 'magic-bytes.js';

@@ -711,9 +711,3 @@ import { ParsingService } from '../../api/dist/index.js';

async getImagePath(downloadPath, jobId, imageName) {
// Get the full path
let imagePath = `${downloadPath}/${jobId}-${imageName}`;
// Get a valid image path
if (!imagePath.endsWith(".png") && !imagePath.endsWith(".jpg")) {
imagePath += ".png";
}
return imagePath;
return path.join(downloadPath, `${jobId}-${imageName}`);
}

@@ -731,6 +725,5 @@ async fetchAndSaveImage(imageName, imagePath, jobId) {

}
const arrayBuffer = await response.data;
const buffer = new Uint8Array(arrayBuffer);
const blob = await response.data;
// Write the image buffer to the specified imagePath
await fs.writeFile(imagePath, buffer);
await fs.writeFile(imagePath, new Uint8Array(await blob.arrayBuffer()));
}

@@ -737,0 +730,0 @@ // Filters out invalid values (null, undefined, empty string) of specific params.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc