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

hyparquet

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyparquet - npm Package Compare versions

Comparing version 0.7.6 to 0.7.7

8

package.json
{
"name": "hyparquet",
"version": "0.7.6",
"version": "0.7.7",
"description": "parquet file parser for javascript",

@@ -31,4 +31,4 @@ "keywords": [

"@types/node": "20.12.7",
"@typescript-eslint/eslint-plugin": "7.7.0",
"@vitest/coverage-v8": "1.5.0",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@vitest/coverage-v8": "1.5.2",
"eslint": "8.57.0",

@@ -40,4 +40,4 @@ "eslint-plugin-import": "2.29.1",

"typescript": "5.4.5",
"vitest": "1.5.0"
"vitest": "1.5.2"
}
}

@@ -9,2 +9,3 @@ # hyparquet

[![dependencies](https://img.shields.io/badge/Dependencies-0-blueviolet)](https://www.npmjs.com/package/hyparquet?activeTab=dependencies)
![coverage](https://img.shields.io/badge/Coverage-94-darkred)

@@ -11,0 +12,0 @@ Dependency free since 2023!

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

export { AsyncBuffer, FileMetaData, SchemaTree } from './types'
import type { AsyncBuffer, Compressors, FileMetaData, SchemaTree } from './types.d.ts'
export type { AsyncBuffer, FileMetaData, SchemaTree }
/**

@@ -25,3 +27,3 @@ * Read parquet data rows from a file-like object.

*/
export async function parquetRead(options: ParquetReadOptions): Promise<void>
export function parquetRead(options: ParquetReadOptions): Promise<void>

@@ -52,3 +54,3 @@ /**

*/
export async function parquetMetadataAsync(asyncBuffer: AsyncBuffer, initialFetchSize: number = 1 << 19 /* 512kb */): Promise<FileMetaData>
export function parquetMetadataAsync(asyncBuffer: AsyncBuffer, initialFetchSize?: number): Promise<FileMetaData>

@@ -55,0 +57,0 @@ /**

@@ -140,2 +140,3 @@

// use pre-loaded row group byte data if available, else read column data
/** @type {Promise<ArrayBuffer>} */
let buffer

@@ -147,3 +148,4 @@ let bufferOffset = 0

} else {
buffer = file.slice(columnStartByte, columnEndByte)
// wrap awaitable to ensure it's a promise
buffer = Promise.resolve(file.slice(columnStartByte, columnEndByte))
}

@@ -150,0 +152,0 @@

@@ -0,1 +1,3 @@

type Awaitable<T> = T | Promise<T>
/**

@@ -6,3 +8,3 @@ * File-like object that can read slices of a file asynchronously.

byteLength: number
slice(start: number, end?: number): Promise<ArrayBuffer>
slice(start: number, end?: number): Awaitable<ArrayBuffer>
}

@@ -9,0 +11,0 @@

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