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

@loaders.gl/schema

Package Overview
Dependencies
Maintainers
8
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/schema - npm Package Compare versions

Comparing version 4.0.0-alpha.5 to 4.0.0-alpha.6

dist/es5/bundle.js

4

dist/bundle.js

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

"use strict";
// @ts-nocheck
const moduleExports = require('./index');
globalThis.loaders = globalThis.loaders || {};
module.exports = Object.assign(globalThis.loaders, moduleExports);
//# sourceMappingURL=bundle.js.map

@@ -1,27 +0,29 @@

export type { TypedArray, NumberArray, AnyArray } from './types';
export type { Batch } from './category/common';
export type { Table, ArrayRowTable, ObjectRowTable, ColumnarTable, ArrowTable } from './category/table/table-types';
export type { TableBatch, RowArrayTableBatch, RowObjectTableBatch, ColumnarTableBatch, ArrowTableBatch } from './category/table/table-types';
export { default as TableBatchBuilder } from './lib/batches/table-batch-builder';
export type { TableBatchAggregator } from './lib/batches/table-batch-aggregator';
export { default as RowTableBatchAggregator } from './lib/batches/row-table-batch-aggregator';
export { default as ColumnarTableBatchAggregator } from './lib/batches/columnar-table-batch-aggregator';
export { convertToObjectRow, convertToArrayRow } from './lib/utils/row-utils';
export type { MeshTable, MeshArrowTable, Mesh, MeshGeometry, MeshAttribute, MeshAttributes } from './category/mesh/mesh-types';
export { getMeshSize, getMeshBoundingBox } from './category/mesh/mesh-utils';
export { convertMesh } from './category/mesh/convert-mesh';
export { deduceMeshSchema, deduceMeshField, makeMeshAttributeMetadata } from './category/mesh/deduce-mesh-schema';
export type { TextureLevel, GPUTextureFormat } from './category/texture/texture';
export type { ImageDataType, ImageType, ImageTypeEnum } from './category/image/image';
export type { GeoJSON, Feature, Geometry, Position, GeoJsonProperties } from './category/gis';
export type { Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from './category/gis';
export type { GeojsonGeometryInfo } from './category/gis';
export type { FlatFeature, FlatIndexedGeometry, FlatGeometry, FlatGeometryType, FlatPoint, FlatLineString, FlatPolygon } from './category/gis';
export type { BinaryGeometryType, BinaryGeometry, BinaryPointGeometry, BinaryLineGeometry, BinaryPolygonGeometry, BinaryAttribute } from './category/gis';
export type { BinaryFeatures, BinaryPointFeatures, BinaryLineFeatures, BinaryPolygonFeatures } from './category/gis';
export { Schema, Field, DataType, Null, Binary, Bool, Int, Int8, Int16, Int32, Int64, Uint8, Uint16, Uint32, Uint64, Float, Float16, Float32, Float64, Utf8, Date, DateDay, DateMillisecond, Time, TimeMillisecond, TimeSecond, Timestamp, TimestampSecond, TimestampMillisecond, TimestampMicrosecond, TimestampNanosecond, Interval, IntervalDayTime, IntervalYearMonth, FixedSizeList, Struct } from './lib/schema/schema';
export { deduceTypeFromColumn, deduceTypeFromValue } from './lib/schema-utils/deduce-column-type';
export { getTypeInfo } from './lib/arrow/get-type-info';
export { getArrowTypeFromTypedArray } from './lib/arrow/arrow-like-type-utils';
export type { TypedArray, TypedArrayConstructor, NumberArray, ArrayType, AnyArray } from './types/types';
export type { Schema, Field, DataType, Batch, SchemaMetadata, FieldMetadata } from './types/schema';
export type { Table, RowTable, ArrayRowTable, ObjectRowTable, GeoJSONRowTable, ColumnarTable, ArrowTable, Tables } from './types/category-table';
export type { TableBatch, ArrayRowTableBatch, ObjectRowTableBatch, GeoJSONRowTableBatch, ColumnarTableBatch, ArrowTableBatch } from './types/category-table';
export { TableBatchBuilder } from './lib/table/batches/table-batch-builder';
export type { TableBatchAggregator } from './lib/table/batches/table-batch-aggregator';
export { RowTableBatchAggregator } from './lib/table/batches/row-table-batch-aggregator';
export { ColumnarTableBatchAggregator } from './lib/table/batches/columnar-table-batch-aggregator';
export { getTableLength, getTableNumCols, getTableCell, getTableRowShape, getTableColumnIndex, getTableColumnName, getTableRowAsObject, getTableRowAsArray, makeRowIterator, makeArrayRowIterator, makeObjectRowIterator } from './lib/table/simple-table/table-accessors';
export { ArrowLikeTable } from './lib/table/arrow-api/arrow-like-table';
export { makeTableFromData } from './lib/table/simple-table/make-table';
export { deduceTableSchema } from './lib/table/simple-table/table-schema';
export { convertToObjectRow, convertToArrayRow } from './lib/table/simple-table/row-utils';
export { getDataTypeFromArray } from './lib/table/simple-table/data-type';
export type { MeshTable, MeshArrowTable, Mesh, MeshGeometry, MeshAttribute, MeshAttributes } from './types/category-mesh';
export { getMeshSize, getMeshBoundingBox } from './lib/mesh/mesh-utils';
export { deduceMeshSchema, deduceMeshField, makeMeshAttributeMetadata } from './lib/mesh/deduce-mesh-schema';
export type { TextureLevel, GPUTextureFormat } from './types/category-texture';
export type { ImageDataType, ImageType, ImageTypeEnum } from './types/category-image';
export type { GeoJSON, Feature, FeatureCollection, Geometry, Position, GeoJsonProperties, Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from './types/category-gis';
export type { GeojsonGeometryInfo } from './types/category-gis';
export type { FlatFeature, FlatIndexedGeometry, FlatGeometry, FlatGeometryType, FlatPoint, FlatLineString, FlatPolygon } from './types/category-gis';
export type { BinaryGeometryType, BinaryGeometry, BinaryPointGeometry, BinaryLineGeometry, BinaryPolygonGeometry, BinaryAttribute } from './types/category-gis';
export type { BinaryFeatures, BinaryPointFeatures, BinaryLineFeatures, BinaryPolygonFeatures } from './types/category-gis';
export { Schema as ArrowLikeSchema, Field as ArrowLikeField, DataType as ArrowLikeDataType, Null, Binary, Bool, Int, Int8, Int16, Int32, Int64, Uint8, Uint16, Uint32, Uint64, Float, Float16, Float32, Float64, Utf8, Date, DateDay, DateMillisecond, Time, TimeMillisecond, TimeSecond, Timestamp, TimestampSecond, TimestampMillisecond, TimestampMicrosecond, TimestampNanosecond, Interval, IntervalDayTime, IntervalYearMonth, FixedSizeList, Struct } from './lib/table/arrow-api';
export { getTypeInfo } from './lib/table/arrow-api/get-type-info';
export { getArrowType } from './lib/table/arrow/arrow-type-utils';
export { default as AsyncQueue } from './lib/utils/async-queue';
//# sourceMappingURL=index.d.ts.map

@@ -1,13 +0,92 @@

export { default as TableBatchBuilder } from './lib/batches/table-batch-builder';
export { default as RowTableBatchAggregator } from './lib/batches/row-table-batch-aggregator';
export { default as ColumnarTableBatchAggregator } from './lib/batches/columnar-table-batch-aggregator';
export { convertToObjectRow, convertToArrayRow } from './lib/utils/row-utils';
export { getMeshSize, getMeshBoundingBox } from './category/mesh/mesh-utils';
export { convertMesh } from './category/mesh/convert-mesh';
export { deduceMeshSchema, deduceMeshField, makeMeshAttributeMetadata } from './category/mesh/deduce-mesh-schema';
export { Schema, Field, DataType, Null, Binary, Bool, Int, Int8, Int16, Int32, Int64, Uint8, Uint16, Uint32, Uint64, Float, Float16, Float32, Float64, Utf8, Date, DateDay, DateMillisecond, Time, TimeMillisecond, TimeSecond, Timestamp, TimestampSecond, TimestampMillisecond, TimestampMicrosecond, TimestampNanosecond, Interval, IntervalDayTime, IntervalYearMonth, FixedSizeList, Struct } from './lib/schema/schema';
export { deduceTypeFromColumn, deduceTypeFromValue } from './lib/schema-utils/deduce-column-type';
export { getTypeInfo } from './lib/arrow/get-type-info';
export { getArrowTypeFromTypedArray } from './lib/arrow/arrow-like-type-utils';
export { default as AsyncQueue } from './lib/utils/async-queue';
//# sourceMappingURL=index.js.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimeMillisecond = exports.Time = exports.DateMillisecond = exports.DateDay = exports.Date = exports.Utf8 = exports.Float64 = exports.Float32 = exports.Float16 = exports.Float = exports.Uint64 = exports.Uint32 = exports.Uint16 = exports.Uint8 = exports.Int64 = exports.Int32 = exports.Int16 = exports.Int8 = exports.Int = exports.Bool = exports.Binary = exports.Null = exports.ArrowLikeDataType = exports.ArrowLikeField = exports.ArrowLikeSchema = exports.makeMeshAttributeMetadata = exports.deduceMeshField = exports.deduceMeshSchema = exports.getMeshBoundingBox = exports.getMeshSize = exports.getDataTypeFromArray = exports.convertToArrayRow = exports.convertToObjectRow = exports.deduceTableSchema = exports.makeTableFromData = exports.ArrowLikeTable = exports.makeObjectRowIterator = exports.makeArrayRowIterator = exports.makeRowIterator = exports.getTableRowAsArray = exports.getTableRowAsObject = exports.getTableColumnName = exports.getTableColumnIndex = exports.getTableRowShape = exports.getTableCell = exports.getTableNumCols = exports.getTableLength = exports.ColumnarTableBatchAggregator = exports.RowTableBatchAggregator = exports.TableBatchBuilder = void 0;
exports.AsyncQueue = exports.getArrowType = exports.getTypeInfo = exports.Struct = exports.FixedSizeList = exports.IntervalYearMonth = exports.IntervalDayTime = exports.Interval = exports.TimestampNanosecond = exports.TimestampMicrosecond = exports.TimestampMillisecond = exports.TimestampSecond = exports.Timestamp = exports.TimeSecond = void 0;
// TABLE CATEGORY UTILS
var table_batch_builder_1 = require("./lib/table/batches/table-batch-builder");
Object.defineProperty(exports, "TableBatchBuilder", { enumerable: true, get: function () { return table_batch_builder_1.TableBatchBuilder; } });
var row_table_batch_aggregator_1 = require("./lib/table/batches/row-table-batch-aggregator");
Object.defineProperty(exports, "RowTableBatchAggregator", { enumerable: true, get: function () { return row_table_batch_aggregator_1.RowTableBatchAggregator; } });
var columnar_table_batch_aggregator_1 = require("./lib/table/batches/columnar-table-batch-aggregator");
Object.defineProperty(exports, "ColumnarTableBatchAggregator", { enumerable: true, get: function () { return columnar_table_batch_aggregator_1.ColumnarTableBatchAggregator; } });
var table_accessors_1 = require("./lib/table/simple-table/table-accessors");
Object.defineProperty(exports, "getTableLength", { enumerable: true, get: function () { return table_accessors_1.getTableLength; } });
Object.defineProperty(exports, "getTableNumCols", { enumerable: true, get: function () { return table_accessors_1.getTableNumCols; } });
Object.defineProperty(exports, "getTableCell", { enumerable: true, get: function () { return table_accessors_1.getTableCell; } });
Object.defineProperty(exports, "getTableRowShape", { enumerable: true, get: function () { return table_accessors_1.getTableRowShape; } });
Object.defineProperty(exports, "getTableColumnIndex", { enumerable: true, get: function () { return table_accessors_1.getTableColumnIndex; } });
Object.defineProperty(exports, "getTableColumnName", { enumerable: true, get: function () { return table_accessors_1.getTableColumnName; } });
Object.defineProperty(exports, "getTableRowAsObject", { enumerable: true, get: function () { return table_accessors_1.getTableRowAsObject; } });
Object.defineProperty(exports, "getTableRowAsArray", { enumerable: true, get: function () { return table_accessors_1.getTableRowAsArray; } });
Object.defineProperty(exports, "makeRowIterator", { enumerable: true, get: function () { return table_accessors_1.makeRowIterator; } });
Object.defineProperty(exports, "makeArrayRowIterator", { enumerable: true, get: function () { return table_accessors_1.makeArrayRowIterator; } });
Object.defineProperty(exports, "makeObjectRowIterator", { enumerable: true, get: function () { return table_accessors_1.makeObjectRowIterator; } });
var arrow_like_table_1 = require("./lib/table/arrow-api/arrow-like-table");
Object.defineProperty(exports, "ArrowLikeTable", { enumerable: true, get: function () { return arrow_like_table_1.ArrowLikeTable; } });
var make_table_1 = require("./lib/table/simple-table/make-table");
Object.defineProperty(exports, "makeTableFromData", { enumerable: true, get: function () { return make_table_1.makeTableFromData; } });
var table_schema_1 = require("./lib/table/simple-table/table-schema");
Object.defineProperty(exports, "deduceTableSchema", { enumerable: true, get: function () { return table_schema_1.deduceTableSchema; } });
var row_utils_1 = require("./lib/table/simple-table/row-utils");
Object.defineProperty(exports, "convertToObjectRow", { enumerable: true, get: function () { return row_utils_1.convertToObjectRow; } });
Object.defineProperty(exports, "convertToArrayRow", { enumerable: true, get: function () { return row_utils_1.convertToArrayRow; } });
var data_type_1 = require("./lib/table/simple-table/data-type");
Object.defineProperty(exports, "getDataTypeFromArray", { enumerable: true, get: function () { return data_type_1.getDataTypeFromArray; } });
var mesh_utils_1 = require("./lib/mesh/mesh-utils");
Object.defineProperty(exports, "getMeshSize", { enumerable: true, get: function () { return mesh_utils_1.getMeshSize; } });
Object.defineProperty(exports, "getMeshBoundingBox", { enumerable: true, get: function () { return mesh_utils_1.getMeshBoundingBox; } });
// Commented out due to https://github.com/visgl/deck.gl/issues/6906 and https://github.com/visgl/loaders.gl/issues/2177
// export {convertMesh} from './category/mesh/convert-mesh.js';
var deduce_mesh_schema_1 = require("./lib/mesh/deduce-mesh-schema");
Object.defineProperty(exports, "deduceMeshSchema", { enumerable: true, get: function () { return deduce_mesh_schema_1.deduceMeshSchema; } });
Object.defineProperty(exports, "deduceMeshField", { enumerable: true, get: function () { return deduce_mesh_schema_1.deduceMeshField; } });
Object.defineProperty(exports, "makeMeshAttributeMetadata", { enumerable: true, get: function () { return deduce_mesh_schema_1.makeMeshAttributeMetadata; } });
// SCHEMA
var arrow_api_1 = require("./lib/table/arrow-api");
Object.defineProperty(exports, "ArrowLikeSchema", { enumerable: true, get: function () { return arrow_api_1.Schema; } });
Object.defineProperty(exports, "ArrowLikeField", { enumerable: true, get: function () { return arrow_api_1.Field; } });
Object.defineProperty(exports, "ArrowLikeDataType", { enumerable: true, get: function () { return arrow_api_1.DataType; } });
Object.defineProperty(exports, "Null", { enumerable: true, get: function () { return arrow_api_1.Null; } });
Object.defineProperty(exports, "Binary", { enumerable: true, get: function () { return arrow_api_1.Binary; } });
Object.defineProperty(exports, "Bool", { enumerable: true, get: function () { return arrow_api_1.Bool; } });
Object.defineProperty(exports, "Int", { enumerable: true, get: function () { return arrow_api_1.Int; } });
Object.defineProperty(exports, "Int8", { enumerable: true, get: function () { return arrow_api_1.Int8; } });
Object.defineProperty(exports, "Int16", { enumerable: true, get: function () { return arrow_api_1.Int16; } });
Object.defineProperty(exports, "Int32", { enumerable: true, get: function () { return arrow_api_1.Int32; } });
Object.defineProperty(exports, "Int64", { enumerable: true, get: function () { return arrow_api_1.Int64; } });
Object.defineProperty(exports, "Uint8", { enumerable: true, get: function () { return arrow_api_1.Uint8; } });
Object.defineProperty(exports, "Uint16", { enumerable: true, get: function () { return arrow_api_1.Uint16; } });
Object.defineProperty(exports, "Uint32", { enumerable: true, get: function () { return arrow_api_1.Uint32; } });
Object.defineProperty(exports, "Uint64", { enumerable: true, get: function () { return arrow_api_1.Uint64; } });
Object.defineProperty(exports, "Float", { enumerable: true, get: function () { return arrow_api_1.Float; } });
Object.defineProperty(exports, "Float16", { enumerable: true, get: function () { return arrow_api_1.Float16; } });
Object.defineProperty(exports, "Float32", { enumerable: true, get: function () { return arrow_api_1.Float32; } });
Object.defineProperty(exports, "Float64", { enumerable: true, get: function () { return arrow_api_1.Float64; } });
Object.defineProperty(exports, "Utf8", { enumerable: true, get: function () { return arrow_api_1.Utf8; } });
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return arrow_api_1.Date; } });
Object.defineProperty(exports, "DateDay", { enumerable: true, get: function () { return arrow_api_1.DateDay; } });
Object.defineProperty(exports, "DateMillisecond", { enumerable: true, get: function () { return arrow_api_1.DateMillisecond; } });
Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return arrow_api_1.Time; } });
Object.defineProperty(exports, "TimeMillisecond", { enumerable: true, get: function () { return arrow_api_1.TimeMillisecond; } });
Object.defineProperty(exports, "TimeSecond", { enumerable: true, get: function () { return arrow_api_1.TimeSecond; } });
Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return arrow_api_1.Timestamp; } });
Object.defineProperty(exports, "TimestampSecond", { enumerable: true, get: function () { return arrow_api_1.TimestampSecond; } });
Object.defineProperty(exports, "TimestampMillisecond", { enumerable: true, get: function () { return arrow_api_1.TimestampMillisecond; } });
Object.defineProperty(exports, "TimestampMicrosecond", { enumerable: true, get: function () { return arrow_api_1.TimestampMicrosecond; } });
Object.defineProperty(exports, "TimestampNanosecond", { enumerable: true, get: function () { return arrow_api_1.TimestampNanosecond; } });
Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return arrow_api_1.Interval; } });
Object.defineProperty(exports, "IntervalDayTime", { enumerable: true, get: function () { return arrow_api_1.IntervalDayTime; } });
Object.defineProperty(exports, "IntervalYearMonth", { enumerable: true, get: function () { return arrow_api_1.IntervalYearMonth; } });
Object.defineProperty(exports, "FixedSizeList", { enumerable: true, get: function () { return arrow_api_1.FixedSizeList; } });
Object.defineProperty(exports, "Struct", { enumerable: true, get: function () { return arrow_api_1.Struct; } });
// EXPERIMENTAL APIs
// SCHEMA UTILS
var get_type_info_1 = require("./lib/table/arrow-api/get-type-info");
Object.defineProperty(exports, "getTypeInfo", { enumerable: true, get: function () { return get_type_info_1.getTypeInfo; } });
var arrow_type_utils_1 = require("./lib/table/arrow/arrow-type-utils");
Object.defineProperty(exports, "getArrowType", { enumerable: true, get: function () { return arrow_type_utils_1.getArrowType; } });
var async_queue_1 = require("./lib/utils/async-queue");
Object.defineProperty(exports, "AsyncQueue", { enumerable: true, get: function () { return __importDefault(async_queue_1).default; } });

@@ -1,6 +0,12 @@

export function assert(condition, message) {
if (!condition) {
throw new Error(message || 'loader assertion failed.');
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assert = void 0;
// Replacement for the external assert method to reduce bundle size
// Note: We don't use the second "message" argument in calling code,
// so no need to support it here
function assert(condition, message) {
if (!condition) {
throw new Error(message || 'loader assertion failed.');
}
}
//# sourceMappingURL=assert.js.map
exports.assert = assert;

@@ -1,119 +0,92 @@

import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
let _Symbol$asyncIterator;
"use strict";
// From https://github.com/rauschma/async-iter-demo/tree/master/src under MIT license
// http://2ality.com/2016/10/asynchronous-iteration.html
Object.defineProperty(exports, "__esModule", { value: true });
exports.takeAsync = void 0;
class ArrayQueue extends Array {
enqueue(value) {
return this.push(value);
}
dequeue() {
return this.shift();
}
enqueue(value) {
// Add at the end
return this.push(value);
}
dequeue() {
// Remove first element
return this.shift();
}
}
_Symbol$asyncIterator = Symbol.asyncIterator;
export default class AsyncQueue {
constructor() {
_defineProperty(this, "_values", void 0);
_defineProperty(this, "_settlers", void 0);
_defineProperty(this, "_closed", void 0);
this._values = new ArrayQueue();
this._settlers = new ArrayQueue();
this._closed = false;
}
close() {
while (this._settlers.length > 0) {
this._settlers.dequeue().resolve({
done: true
});
class AsyncQueue {
constructor() {
// enqueues > dequeues
this._values = new ArrayQueue();
// dequeues > enqueues
this._settlers = new ArrayQueue();
this._closed = false;
}
this._closed = true;
}
[_Symbol$asyncIterator]() {
return this;
}
enqueue(value) {
if (this._closed) {
throw new Error('Closed');
close() {
while (this._settlers.length > 0) {
this._settlers.dequeue().resolve({ done: true });
}
this._closed = true;
}
if (this._settlers.length > 0) {
if (this._values.length > 0) {
throw new Error('Illegal internal state');
}
const settler = this._settlers.dequeue();
if (value instanceof Error) {
settler.reject(value);
} else {
settler.resolve({
value
});
}
} else {
this._values.enqueue(value);
[Symbol.asyncIterator]() {
return this;
}
}
next() {
if (this._values.length > 0) {
const value = this._values.dequeue();
if (value instanceof Error) {
return Promise.reject(value);
}
return Promise.resolve({
value
});
enqueue(value) {
if (this._closed) {
throw new Error('Closed');
}
if (this._settlers.length > 0) {
if (this._values.length > 0) {
throw new Error('Illegal internal state');
}
const settler = this._settlers.dequeue();
if (value instanceof Error) {
settler.reject(value);
}
else {
settler.resolve({ value });
}
}
else {
this._values.enqueue(value);
}
}
if (this._closed) {
if (this._settlers.length > 0) {
throw new Error('Illegal internal state');
}
return Promise.resolve({
done: true
});
/**
* @returns a Promise for an IteratorResult
*/
next() {
if (this._values.length > 0) {
const value = this._values.dequeue();
if (value instanceof Error) {
return Promise.reject(value);
}
return Promise.resolve({ value });
}
if (this._closed) {
if (this._settlers.length > 0) {
throw new Error('Illegal internal state');
}
return Promise.resolve({ done: true });
}
// Wait for new values to be enqueued
return new Promise((resolve, reject) => {
this._settlers.enqueue({ resolve, reject });
});
}
return new Promise((resolve, reject) => {
this._settlers.enqueue({
resolve,
reject
});
});
}
}
export async function takeAsync(asyncIterable, count = Infinity) {
const result = [];
const iterator = asyncIterable[Symbol.asyncIterator]();
while (result.length < count) {
const {
value,
done
} = await iterator.next();
if (done) {
break;
exports.default = AsyncQueue;
/**
* @returns a Promise for an Array with the elements in `asyncIterable`
*/
async function takeAsync(asyncIterable, count = Infinity) {
const result = [];
const iterator = asyncIterable[Symbol.asyncIterator]();
while (result.length < count) {
const { value, done } = await iterator.next();
if (done) {
break;
}
result.push(value);
}
result.push(value);
}
return result;
return result;
}
//# sourceMappingURL=async-queue.js.map
exports.takeAsync = takeAsync;
{
"name": "@loaders.gl/schema",
"version": "4.0.0-alpha.5",
"version": "4.0.0-alpha.6",
"description": "Table format APIs for JSON, CSV, etc...",

@@ -22,4 +22,4 @@ "license": "MIT",

"types": "dist/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/es5/index.js",
"module": "dist/esm/index.js",
"sideEffects": false,

@@ -36,6 +36,5 @@ "files": [

"dependencies": {
"@types/geojson": "^7946.0.7",
"apache-arrow": "^4.0.0"
"@types/geojson": "^7946.0.7"
},
"gitHead": "7a71a54bdf1ddf985cc3af3db90b82e7fa97d025"
"gitHead": "acc1985050dfaa0f1f0c066f8da5bce7454a046c"
}
// COMMON CATEGORY
export type {TypedArray, NumberArray, AnyArray} from './types';
export type {
TypedArray,
TypedArrayConstructor,
NumberArray,
ArrayType,
AnyArray
} from './types/types';
export type {Batch} from './category/common';
export type {Schema, Field, DataType, Batch, SchemaMetadata, FieldMetadata} from './types/schema';

@@ -9,23 +15,46 @@ // TABLE CATEGORY TYPES

Table,
RowTable,
ArrayRowTable,
ObjectRowTable,
GeoJSONRowTable,
ColumnarTable,
ArrowTable
} from './category/table/table-types';
ArrowTable,
Tables
} from './types/category-table';
export type {
TableBatch,
RowArrayTableBatch,
RowObjectTableBatch,
ArrayRowTableBatch,
ObjectRowTableBatch,
GeoJSONRowTableBatch,
ColumnarTableBatch,
ArrowTableBatch
} from './category/table/table-types';
} from './types/category-table';
// TABLE CATEGORY UTILS
export {default as TableBatchBuilder} from './lib/batches/table-batch-builder';
export type {TableBatchAggregator} from './lib/batches/table-batch-aggregator';
export {default as RowTableBatchAggregator} from './lib/batches/row-table-batch-aggregator';
export {default as ColumnarTableBatchAggregator} from './lib/batches/columnar-table-batch-aggregator';
export {TableBatchBuilder} from './lib/table/batches/table-batch-builder';
export type {TableBatchAggregator} from './lib/table/batches/table-batch-aggregator';
export {RowTableBatchAggregator} from './lib/table/batches/row-table-batch-aggregator';
export {ColumnarTableBatchAggregator} from './lib/table/batches/columnar-table-batch-aggregator';
export {convertToObjectRow, convertToArrayRow} from './lib/utils/row-utils';
export {
getTableLength,
getTableNumCols,
getTableCell,
getTableRowShape,
getTableColumnIndex,
getTableColumnName,
getTableRowAsObject,
getTableRowAsArray,
makeRowIterator,
makeArrayRowIterator,
makeObjectRowIterator
} from './lib/table/simple-table/table-accessors';
export {ArrowLikeTable} from './lib/table/arrow-api/arrow-like-table';
export {makeTableFromData} from './lib/table/simple-table/make-table';
export {deduceTableSchema} from './lib/table/simple-table/table-schema';
export {convertToObjectRow, convertToArrayRow} from './lib/table/simple-table/row-utils';
export {getDataTypeFromArray} from './lib/table/simple-table/data-type';
// MESH CATEGORY

@@ -39,6 +68,7 @@ export type {

MeshAttributes
} from './category/mesh/mesh-types';
} from './types/category-mesh';
export {getMeshSize, getMeshBoundingBox} from './category/mesh/mesh-utils';
export {convertMesh} from './category/mesh/convert-mesh';
export {getMeshSize, getMeshBoundingBox} from './lib/mesh/mesh-utils';
// Commented out due to https://github.com/visgl/deck.gl/issues/6906 and https://github.com/visgl/loaders.gl/issues/2177
// export {convertMesh} from './category/mesh/convert-mesh';
export {

@@ -48,14 +78,19 @@ deduceMeshSchema,

makeMeshAttributeMetadata
} from './category/mesh/deduce-mesh-schema';
} from './lib/mesh/deduce-mesh-schema';
// TEXTURES
export type {TextureLevel, GPUTextureFormat} from './category/texture/texture';
export type {TextureLevel, GPUTextureFormat} from './types/category-texture';
// IMAGES
export type {ImageDataType, ImageType, ImageTypeEnum} from './category/image/image';
export type {ImageDataType, ImageType, ImageTypeEnum} from './types/category-image';
// TYPES
// GIS CATEGORY - GEOJSON
export type {GeoJSON, Feature, Geometry, Position, GeoJsonProperties} from './category/gis';
export type {
GeoJSON,
Feature,
FeatureCollection,
Geometry,
Position,
GeoJsonProperties,
Point,

@@ -68,5 +103,5 @@ MultiPoint,

GeometryCollection
} from './category/gis';
} from './types/category-gis';
export type {GeojsonGeometryInfo} from './category/gis';
export type {GeojsonGeometryInfo} from './types/category-gis';

@@ -82,3 +117,3 @@ // GIS CATEGORY - FLAT GEOJSON

FlatPolygon
} from './category/gis';
} from './types/category-gis';

@@ -93,3 +128,3 @@ // GIS CATEGORY - BINARY

BinaryAttribute
} from './category/gis';
} from './types/category-gis';
export type {

@@ -100,9 +135,9 @@ BinaryFeatures,

BinaryPolygonFeatures
} from './category/gis';
} from './types/category-gis';
// SCHEMA
export {
Schema,
Field,
DataType,
Schema as ArrowLikeSchema,
Field as ArrowLikeField,
DataType as ArrowLikeDataType,
Null,

@@ -141,3 +176,3 @@ Binary,

Struct
} from './lib/schema/schema';
} from './lib/table/arrow-api';

@@ -147,6 +182,5 @@ // EXPERIMENTAL APIs

// SCHEMA UTILS
export {deduceTypeFromColumn, deduceTypeFromValue} from './lib/schema-utils/deduce-column-type';
export {getTypeInfo} from './lib/arrow/get-type-info';
export {getArrowTypeFromTypedArray} from './lib/arrow/arrow-like-type-utils';
export {getTypeInfo} from './lib/table/arrow-api/get-type-info';
export {getArrowType} from './lib/table/arrow/arrow-type-utils';
export {default as AsyncQueue} from './lib/utils/async-queue';

Sorry, the diff of this file is too big to display

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