@loaders.gl/loader-utils
Advanced tools
Comparing version 4.1.0-alpha.9 to 4.1.0-alpha.10
@@ -12,3 +12,3 @@ export type { DataType, SyncDataType, BatchableDataType, TypedArray, BigTypedArray, TypedArrayConstructor, BigTypedArrayConstructor, NumberArray, NumericArray, FetchLike } from './types'; | ||
export { parseJSON } from './lib/parser-utils/parse-json'; | ||
export { sliceArrayBuffer, concatenateArrayBuffers, concatenateTypedArrays, compareArrayBuffers } from './lib/binary-utils/array-buffer-utils'; | ||
export { sliceArrayBuffer, concatenateArrayBuffers, concatenateArrayBuffersFromArray, concatenateTypedArrays, compareArrayBuffers } from './lib/binary-utils/array-buffer-utils'; | ||
export { padToNBytes, copyToArray, copyArrayBuffer } from './lib/binary-utils/memory-copy-utils'; | ||
@@ -15,0 +15,0 @@ export { padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView, copyPaddedArrayBufferToDataView, copyPaddedStringToDataView } from './lib/binary-utils/dataview-copy-utils'; |
@@ -9,3 +9,3 @@ export { parseFromContext, parseSyncFromContext, parseInBatchesFromContext } from "./loader-types.js"; | ||
export { parseJSON } from "./lib/parser-utils/parse-json.js"; | ||
export { sliceArrayBuffer, concatenateArrayBuffers, concatenateTypedArrays, compareArrayBuffers } from "./lib/binary-utils/array-buffer-utils.js"; | ||
export { sliceArrayBuffer, concatenateArrayBuffers, concatenateArrayBuffersFromArray, concatenateTypedArrays, compareArrayBuffers } from "./lib/binary-utils/array-buffer-utils.js"; | ||
export { padToNBytes, copyToArray, copyArrayBuffer } from "./lib/binary-utils/memory-copy-utils.js"; | ||
@@ -12,0 +12,0 @@ export { padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView, copyPaddedArrayBufferToDataView, copyPaddedStringToDataView } from "./lib/binary-utils/dataview-copy-utils.js"; |
@@ -1,2 +0,2 @@ | ||
const VERSION = typeof "4.1.0-alpha.9" !== 'undefined' ? "4.1.0-alpha.9" : 'latest'; | ||
const VERSION = typeof "4.1.0-alpha.10" !== 'undefined' ? "4.1.0-alpha.10" : 'latest'; | ||
export const JSONLoader = { | ||
@@ -3,0 +3,0 @@ name: 'JSON', |
@@ -9,7 +9,12 @@ /** | ||
/** | ||
* Concatenate a sequence of ArrayBuffers | ||
* Concatenate a sequence of ArrayBuffers from arguments | ||
* @return A concatenated ArrayBuffer | ||
*/ | ||
export declare function concatenateArrayBuffers(...sources: (ArrayBuffer | Uint8Array)[]): ArrayBuffer; | ||
export declare function concatenateArrayBuffers(...sources: (ArrayBuffer | Uint8Array)[]): any; | ||
/** | ||
* Concatenate a sequence of ArrayBuffers from array | ||
* @return A concatenated ArrayBuffer | ||
*/ | ||
export declare function concatenateArrayBuffersFromArray(sources: (ArrayBuffer | Uint8Array)[]): any; | ||
/** | ||
* Concatenate arbitrary count of typed arrays | ||
@@ -16,0 +21,0 @@ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays |
@@ -19,2 +19,5 @@ export function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) { | ||
} | ||
return concatenateArrayBuffersFromArray(sources); | ||
} | ||
export function concatenateArrayBuffersFromArray(sources) { | ||
const sourceArrays = sources.map(source2 => source2 instanceof ArrayBuffer ? new Uint8Array(source2) : source2); | ||
@@ -21,0 +24,0 @@ const byteLength = sourceArrays.reduce((length, typedArray) => length + typedArray.byteLength, 0); |
{ | ||
"name": "@loaders.gl/loader-utils", | ||
"version": "4.1.0-alpha.9", | ||
"version": "4.1.0-alpha.10", | ||
"description": "Framework-independent loaders for 3D graphics formats", | ||
@@ -26,5 +26,5 @@ "license": "MIT", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
"require": "./dist/index.cjs" | ||
} | ||
@@ -51,6 +51,6 @@ }, | ||
"@babel/runtime": "^7.3.1", | ||
"@loaders.gl/worker-utils": "4.1.0-alpha.9", | ||
"@loaders.gl/worker-utils": "4.1.0-alpha.10", | ||
"@probe.gl/stats": "^4.0.2" | ||
}, | ||
"gitHead": "0291d4d78d71202385d0368942f84778d6aafa82" | ||
"gitHead": "19f43c2d90d8b50860c3f8e487429779a386287d" | ||
} |
@@ -67,2 +67,3 @@ // loaders.gl | ||
concatenateArrayBuffers, | ||
concatenateArrayBuffersFromArray, | ||
concatenateTypedArrays, | ||
@@ -69,0 +70,0 @@ compareArrayBuffers |
@@ -29,6 +29,14 @@ import {TypedArray} from '../../types'; | ||
/** | ||
* Concatenate a sequence of ArrayBuffers | ||
* Concatenate a sequence of ArrayBuffers from arguments | ||
* @return A concatenated ArrayBuffer | ||
*/ | ||
export function concatenateArrayBuffers(...sources: (ArrayBuffer | Uint8Array)[]): ArrayBuffer { | ||
export function concatenateArrayBuffers(...sources: (ArrayBuffer | Uint8Array)[]): any { | ||
return concatenateArrayBuffersFromArray(sources); | ||
} | ||
/** | ||
* Concatenate a sequence of ArrayBuffers from array | ||
* @return A concatenated ArrayBuffer | ||
*/ | ||
export function concatenateArrayBuffersFromArray(sources: (ArrayBuffer | Uint8Array)[]): any { | ||
// Make sure all inputs are wrapped in typed arrays | ||
@@ -35,0 +43,0 @@ const sourceArrays = sources.map((source2) => |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
448816
6644
+ Added@loaders.gl/worker-utils@4.1.0-alpha.10(transitive)
- Removed@loaders.gl/worker-utils@4.1.0-alpha.9(transitive)