@loaders.gl/loader-utils
Advanced tools
Comparing version 2.2.0-alpha.3 to 2.2.0-beta.1
@@ -17,2 +17,5 @@ export {LoaderObject, WriterObject} from './types/types'; | ||
// LOADER UTILS | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
// LIBRARY UTILS | ||
@@ -23,3 +26,2 @@ export {getLibraryUrl, loadLibrary} from './lib/library-utils/library-utils'; | ||
export {getTransferList} from './lib/worker-utils/get-transfer-list'; | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
@@ -26,0 +28,0 @@ // PARSER UTILS |
@@ -64,2 +64,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "validateLoaderVersion", { | ||
enumerable: true, | ||
get: function get() { | ||
return _validateLoaderVersion.validateLoaderVersion; | ||
} | ||
}); | ||
Object.defineProperty(exports, "getLibraryUrl", { | ||
@@ -83,8 +89,2 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "validateLoaderVersion", { | ||
enumerable: true, | ||
get: function get() { | ||
return _validateLoaderVersion.validateLoaderVersion; | ||
} | ||
}); | ||
Object.defineProperty(exports, "parseJSON", { | ||
@@ -236,2 +236,4 @@ enumerable: true, | ||
var _validateLoaderVersion = require("./lib/validate-loader-version"); | ||
var _libraryUtils = require("./lib/library-utils/library-utils"); | ||
@@ -241,4 +243,2 @@ | ||
var _validateLoaderVersion = require("./lib/validate-loader-version"); | ||
var _parseJson = require("./lib/parser-utils/parse-json"); | ||
@@ -245,0 +245,0 @@ |
@@ -22,3 +22,3 @@ "use strict"; | ||
var LATEST = 'beta'; | ||
var VERSION = typeof "2.2.0-alpha.3" !== 'undefined' ? "2.2.0-alpha.3" : LATEST; | ||
var VERSION = typeof "2.2.0-beta.1" !== 'undefined' ? "2.2.0-beta.1" : LATEST; | ||
var loadLibraryPromises = {}; | ||
@@ -25,0 +25,0 @@ |
@@ -12,3 +12,3 @@ "use strict"; | ||
var VERSION = typeof "2.2.0-alpha.3" !== 'undefined' ? "2.2.0-alpha.3" : ''; | ||
var VERSION = typeof "2.2.0-beta.1" !== 'undefined' ? "2.2.0-beta.1" : ''; | ||
@@ -15,0 +15,0 @@ function validateLoaderVersion(loader) { |
@@ -7,8 +7,19 @@ /** | ||
name: string, | ||
category?: string; | ||
version: string, | ||
extensions: string[], | ||
mimeType: string, | ||
mimeTypes: string[], | ||
options: object; | ||
deprecatedOptions?: object; | ||
binary?: boolean; | ||
text?: boolean; | ||
test?: ((ArrayBuffer) => boolean) | string | number; | ||
parse?: (arrayBuffer, options) => Promise<any>; | ||
parseSync?: (arrayBuffer, options) => any; | ||
parseText?: (string, options) => Promise<any>; | ||
parseTextSync?: (string, options) => any; | ||
parseInBatches?: (iterator: AsyncIterable<ArrayBuffer> | AsyncIterator<ArrayBuffer>, options: object) => any; | ||
@@ -15,0 +26,0 @@ // TODO - deprecated |
@@ -17,2 +17,5 @@ export {LoaderObject, WriterObject} from './types/types'; | ||
// LOADER UTILS | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
// LIBRARY UTILS | ||
@@ -23,3 +26,2 @@ export {getLibraryUrl, loadLibrary} from './lib/library-utils/library-utils'; | ||
export {getTransferList} from './lib/worker-utils/get-transfer-list'; | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
@@ -26,0 +28,0 @@ // PARSER UTILS |
export { default as createWorker } from './lib/create-worker'; | ||
export { default as assert } from './lib/env-utils/assert'; | ||
export { isBrowser, isWorker, nodeVersion, self, window, global, document } from './lib/env-utils/globals'; | ||
export { validateLoaderVersion } from './lib/validate-loader-version'; | ||
export { getLibraryUrl, loadLibrary } from './lib/library-utils/library-utils'; | ||
export { getTransferList } from './lib/worker-utils/get-transfer-list'; | ||
export { validateLoaderVersion } from './lib/validate-loader-version'; | ||
export { parseJSON } from './lib/parser-utils/parse-json'; | ||
@@ -8,0 +8,0 @@ export { padTo4Bytes, copyToArray, copyArrayBuffer, getZeroOffsetArrayBuffer } from './lib/binary-utils/memory-copy-utils'; |
@@ -5,3 +5,3 @@ import { global, isBrowser, isWorker } from '../env-utils/globals'; | ||
const LATEST = 'beta'; | ||
const VERSION = typeof "2.2.0-alpha.3" !== 'undefined' ? "2.2.0-alpha.3" : LATEST; | ||
const VERSION = typeof "2.2.0-beta.1" !== 'undefined' ? "2.2.0-beta.1" : LATEST; | ||
const loadLibraryPromises = {}; | ||
@@ -8,0 +8,0 @@ export async function loadLibrary(libraryUrl, moduleName = null, options = {}) { |
import assert from './env-utils/assert'; | ||
const VERSION = typeof "2.2.0-alpha.3" !== 'undefined' ? "2.2.0-alpha.3" : ''; | ||
const VERSION = typeof "2.2.0-beta.1" !== 'undefined' ? "2.2.0-beta.1" : ''; | ||
export function validateLoaderVersion(loader, coreVersion = VERSION) { | ||
@@ -4,0 +4,0 @@ assert(loader, 'no loader provided'); |
@@ -7,8 +7,19 @@ /** | ||
name: string, | ||
category?: string; | ||
version: string, | ||
extensions: string[], | ||
mimeType: string, | ||
mimeTypes: string[], | ||
options: object; | ||
deprecatedOptions?: object; | ||
binary?: boolean; | ||
text?: boolean; | ||
test?: ((ArrayBuffer) => boolean) | string | number; | ||
parse?: (arrayBuffer, options) => Promise<any>; | ||
parseSync?: (arrayBuffer, options) => any; | ||
parseText?: (string, options) => Promise<any>; | ||
parseTextSync?: (string, options) => any; | ||
parseInBatches?: (iterator: AsyncIterable<ArrayBuffer> | AsyncIterator<ArrayBuffer>, options: object) => any; | ||
@@ -15,0 +26,0 @@ // TODO - deprecated |
@@ -17,2 +17,5 @@ export {LoaderObject, WriterObject} from './types/types'; | ||
// LOADER UTILS | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
// LIBRARY UTILS | ||
@@ -23,3 +26,2 @@ export {getLibraryUrl, loadLibrary} from './lib/library-utils/library-utils'; | ||
export {getTransferList} from './lib/worker-utils/get-transfer-list'; | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
@@ -26,0 +28,0 @@ // PARSER UTILS |
export { default as createWorker } from './lib/create-worker'; | ||
export { default as assert } from './lib/env-utils/assert'; | ||
export { isBrowser, isWorker, nodeVersion, self, window, global, document } from './lib/env-utils/globals'; | ||
export { validateLoaderVersion } from './lib/validate-loader-version'; | ||
export { getLibraryUrl, loadLibrary } from './lib/library-utils/library-utils'; | ||
export { getTransferList } from './lib/worker-utils/get-transfer-list'; | ||
export { validateLoaderVersion } from './lib/validate-loader-version'; | ||
export { parseJSON } from './lib/parser-utils/parse-json'; | ||
@@ -8,0 +8,0 @@ export { padTo4Bytes, copyToArray, copyArrayBuffer, getZeroOffsetArrayBuffer } from './lib/binary-utils/memory-copy-utils'; |
@@ -7,3 +7,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
var LATEST = 'beta'; | ||
var VERSION = typeof "2.2.0-alpha.3" !== 'undefined' ? "2.2.0-alpha.3" : LATEST; | ||
var VERSION = typeof "2.2.0-beta.1" !== 'undefined' ? "2.2.0-beta.1" : LATEST; | ||
var loadLibraryPromises = {}; | ||
@@ -10,0 +10,0 @@ export function loadLibrary(_x) { |
import assert from './env-utils/assert'; | ||
var VERSION = typeof "2.2.0-alpha.3" !== 'undefined' ? "2.2.0-alpha.3" : ''; | ||
var VERSION = typeof "2.2.0-beta.1" !== 'undefined' ? "2.2.0-beta.1" : ''; | ||
export function validateLoaderVersion(loader) { | ||
@@ -4,0 +4,0 @@ var coreVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : VERSION; |
@@ -7,8 +7,19 @@ /** | ||
name: string, | ||
category?: string; | ||
version: string, | ||
extensions: string[], | ||
mimeType: string, | ||
mimeTypes: string[], | ||
options: object; | ||
deprecatedOptions?: object; | ||
binary?: boolean; | ||
text?: boolean; | ||
test?: ((ArrayBuffer) => boolean) | string | number; | ||
parse?: (arrayBuffer, options) => Promise<any>; | ||
parseSync?: (arrayBuffer, options) => any; | ||
parseText?: (string, options) => Promise<any>; | ||
parseTextSync?: (string, options) => any; | ||
parseInBatches?: (iterator: AsyncIterable<ArrayBuffer> | AsyncIterator<ArrayBuffer>, options: object) => any; | ||
@@ -15,0 +26,0 @@ // TODO - deprecated |
{ | ||
"name": "@loaders.gl/loader-utils", | ||
"version": "2.2.0-alpha.3", | ||
"version": "2.2.0-beta.1", | ||
"description": "Framework-independent loaders for 3D graphics formats", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "4a14e79ae0486151240fb18896c413edeb5b0b67" | ||
"gitHead": "a7d54a19c9825399723df9138dd1ce3cf6d412b9" | ||
} |
@@ -17,2 +17,5 @@ export {LoaderObject, WriterObject} from './types/types'; | ||
// LOADER UTILS | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
// LIBRARY UTILS | ||
@@ -23,3 +26,2 @@ export {getLibraryUrl, loadLibrary} from './lib/library-utils/library-utils'; | ||
export {getTransferList} from './lib/worker-utils/get-transfer-list'; | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
@@ -26,0 +28,0 @@ // PARSER UTILS |
@@ -15,2 +15,5 @@ export {default as createWorker} from './lib/create-worker'; | ||
// LOADER UTILS | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
// LIBRARY UTILS | ||
@@ -21,3 +24,2 @@ export {getLibraryUrl, loadLibrary} from './lib/library-utils/library-utils'; | ||
export {getTransferList} from './lib/worker-utils/get-transfer-list'; | ||
export {validateLoaderVersion} from './lib/validate-loader-version'; | ||
@@ -24,0 +26,0 @@ // PARSER UTILS |
@@ -1,3 +0,1 @@ | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
/* global __VERSION__ */ | ||
/* global fetch, document */ | ||
@@ -11,2 +9,3 @@ import {global, isBrowser, isWorker} from '../env-utils/globals'; | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
@@ -13,0 +12,0 @@ const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : LATEST; |
import assert from './env-utils/assert'; | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
/* global __VERSION__ */ | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
@@ -6,0 +6,0 @@ const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : ''; |
@@ -7,8 +7,19 @@ /** | ||
name: string, | ||
category?: string; | ||
version: string, | ||
extensions: string[], | ||
mimeType: string, | ||
mimeTypes: string[], | ||
options: object; | ||
deprecatedOptions?: object; | ||
binary?: boolean; | ||
text?: boolean; | ||
test?: ((ArrayBuffer) => boolean) | string | number; | ||
parse?: (arrayBuffer, options) => Promise<any>; | ||
parseSync?: (arrayBuffer, options) => any; | ||
parseText?: (string, options) => Promise<any>; | ||
parseTextSync?: (string, options) => any; | ||
parseInBatches?: (iterator: AsyncIterable<ArrayBuffer> | AsyncIterator<ArrayBuffer>, options: object) => any; | ||
@@ -15,0 +26,0 @@ // TODO - deprecated |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
378925
4996
13