@loaders.gl/loader-utils
Advanced tools
Comparing version 2.3.1 to 3.0.0-alpha.1
@@ -37,3 +37,3 @@ "use strict"; | ||
var srcByteLength = source.byteLength; | ||
sourceArray = new Uint8Array(source.buffer, srcByteOffset, srcByteLength); | ||
sourceArray = new Uint8Array(source.buffer || source.arrayBuffer, srcByteOffset, srcByteLength); | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -24,3 +24,3 @@ "use strict"; | ||
var LATEST = 'beta'; | ||
var VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : LATEST; | ||
var VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : LATEST; | ||
var loadLibraryPromises = {}; | ||
@@ -27,0 +27,0 @@ |
@@ -12,3 +12,3 @@ "use strict"; | ||
var VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : ''; | ||
var VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : ''; | ||
@@ -15,0 +15,0 @@ function validateLoaderVersion(loader) { |
@@ -12,3 +12,3 @@ "use strict"; | ||
var VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : ''; | ||
var VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : ''; | ||
@@ -15,0 +15,0 @@ function validateLoaderVersion(loader) { |
@@ -22,3 +22,3 @@ import { sliceArrayBuffer } from './array-buffer-utils'; | ||
const srcByteLength = source.byteLength; | ||
sourceArray = new Uint8Array(source.buffer, srcByteOffset, srcByteLength); | ||
sourceArray = new Uint8Array(source.buffer || source.arrayBuffer, srcByteOffset, srcByteLength); | ||
} | ||
@@ -25,0 +25,0 @@ |
@@ -5,3 +5,3 @@ import { global, isBrowser, isWorker } from '../env-utils/globals'; | ||
const LATEST = 'beta'; | ||
const VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : LATEST; | ||
const VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.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.3.1" !== 'undefined' ? "2.3.1" : ''; | ||
const VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : ''; | ||
export function validateLoaderVersion(loader, coreVersion = VERSION) { | ||
@@ -4,0 +4,0 @@ assert(loader, 'no loader provided'); |
import assert from '../env-utils/assert'; | ||
const VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : ''; | ||
const VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : ''; | ||
export function validateLoaderVersion(loader, coreVersion = VERSION) { | ||
@@ -4,0 +4,0 @@ assert(loader, 'no loader provided'); |
@@ -23,3 +23,3 @@ import { sliceArrayBuffer } from './array-buffer-utils'; | ||
var srcByteLength = source.byteLength; | ||
sourceArray = new Uint8Array(source.buffer, srcByteOffset, srcByteLength); | ||
sourceArray = new Uint8Array(source.buffer || source.arrayBuffer, srcByteOffset, srcByteLength); | ||
} | ||
@@ -26,0 +26,0 @@ |
@@ -7,3 +7,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
var LATEST = 'beta'; | ||
var VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : LATEST; | ||
var VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : LATEST; | ||
var loadLibraryPromises = {}; | ||
@@ -10,0 +10,0 @@ export function loadLibrary(_x) { |
import assert from './env-utils/assert'; | ||
var VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : ''; | ||
var VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : ''; | ||
export function validateLoaderVersion(loader) { | ||
@@ -4,0 +4,0 @@ var coreVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : VERSION; |
import assert from '../env-utils/assert'; | ||
var VERSION = typeof "2.3.1" !== 'undefined' ? "2.3.1" : ''; | ||
var VERSION = typeof "3.0.0-alpha.1" !== 'undefined' ? "3.0.0-alpha.1" : ''; | ||
export function validateLoaderVersion(loader) { | ||
@@ -4,0 +4,0 @@ var coreVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : VERSION; |
{ | ||
"name": "@loaders.gl/loader-utils", | ||
"version": "2.3.1", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Framework-independent loaders for 3D graphics formats", | ||
@@ -49,3 +49,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "9fa661b3c4c49de3b0e1a90619d1011624f0ca7d" | ||
"gitHead": "a443ce4367107090898c0ab3eb612120b9b3318d" | ||
} |
@@ -52,3 +52,5 @@ import {sliceArrayBuffer} from './array-buffer-utils'; | ||
const srcByteLength = source.byteLength; | ||
sourceArray = new Uint8Array(source.buffer, srcByteOffset, srcByteLength); | ||
// In gltf parser it is set as "arrayBuffer" instead of "buffer" | ||
// https://github.com/visgl/loaders.gl/blob/1e3a82a0a65d7b6a67b1e60633453e5edda2960a/modules/gltf/src/lib/parse-gltf.js#L85 | ||
sourceArray = new Uint8Array(source.buffer || source.arrayBuffer, srcByteOffset, srcByteLength); | ||
} | ||
@@ -55,0 +57,0 @@ |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
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
695980
9632
20
2