Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "hyparquet", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "parquet file parser for javascript", | ||
@@ -30,5 +30,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "20.10.8", | ||
"@types/node": "20.11.0", | ||
"@typescript-eslint/eslint-plugin": "6.18.1", | ||
"@vitest/coverage-v8": "1.1.3", | ||
"@vitest/coverage-v8": "1.2.0", | ||
"eslint": "8.56.0", | ||
@@ -39,4 +39,4 @@ "eslint-plugin-import": "2.29.1", | ||
"typescript": "5.3.3", | ||
"vitest": "1.1.3" | ||
"vitest": "1.2.0" | ||
} | ||
} |
@@ -5,5 +5,6 @@ # hyparquet | ||
[![npm](https://img.shields.io/npm/v/hyparquet)](https://www.npmjs.com/package/hyparquet) | ||
[![workflow status](https://github.com/hyparam/hyparquet/actions/workflows/ci.yml/badge.svg)](https://github.com/hyparam/hyparquet/actions) | ||
[![mit license](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) | ||
[![workflow status](https://github.com/hyparam/hyparquet/actions/workflows/ci.yml/badge.svg)](https://github.com/hyparam/hyparquet/actions) | ||
[![npm](https://img.shields.io/npm/v/hyparquet)](https://www.npmjs.com/package/hyparquet) | ||
![dependencies](https://img.shields.io/badge/Dependencies-0-blueviolet) | ||
@@ -10,0 +11,0 @@ JavaScript parser for [Apache Parquet](https://parquet.apache.org) files. |
@@ -26,5 +26,8 @@ import { deserializeTCompactProtocol } from './thrift.js' | ||
const metadataLength = view.getUint32(view.byteLength - 8, true) | ||
if (metadataLength <= 0 || metadataLength > metadataLengthOffset) { | ||
throw new Error('parquet file invalid metadata length') | ||
if (metadataLength <= 0) { | ||
throw new Error('parquet invalid metadata length') | ||
} | ||
if (metadataLength > view.byteLength - 8) { | ||
throw new Error('parquet metadata length exceeds buffer size') | ||
} | ||
@@ -99,3 +102,4 @@ const metadataOffset = metadataLengthOffset - metadataLength | ||
created_by, | ||
metadata_length: metadataLength, | ||
} | ||
} |
@@ -18,2 +18,3 @@ /** | ||
created_by?: string | ||
metadata_length: number | ||
} | ||
@@ -20,0 +21,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55588
1567
65