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

@loaders.gl/loader-utils

Package Overview
Dependencies
Maintainers
9
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/loader-utils - npm Package Compare versions

Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3

dist/es5/lib/binary-utils/binary-copy-utils.js

114

dist/es5/index.js

@@ -14,2 +14,80 @@ "use strict";

});
Object.defineProperty(exports, "assert", {
enumerable: true,
get: function get() {
return _assert["default"];
}
});
Object.defineProperty(exports, "isBrowser", {
enumerable: true,
get: function get() {
return _globals.isBrowser;
}
});
Object.defineProperty(exports, "isWorker", {
enumerable: true,
get: function get() {
return _globals.isWorker;
}
});
Object.defineProperty(exports, "nodeVersion", {
enumerable: true,
get: function get() {
return _globals.nodeVersion;
}
});
Object.defineProperty(exports, "self", {
enumerable: true,
get: function get() {
return _globals.self;
}
});
Object.defineProperty(exports, "window", {
enumerable: true,
get: function get() {
return _globals.window;
}
});
Object.defineProperty(exports, "global", {
enumerable: true,
get: function get() {
return _globals.global;
}
});
Object.defineProperty(exports, "document", {
enumerable: true,
get: function get() {
return _globals.document;
}
});
Object.defineProperty(exports, "getLibraryUrl", {
enumerable: true,
get: function get() {
return _libraryUtils.getLibraryUrl;
}
});
Object.defineProperty(exports, "loadLibrary", {
enumerable: true,
get: function get() {
return _libraryUtils.loadLibrary;
}
});
Object.defineProperty(exports, "getTransferList", {
enumerable: true,
get: function get() {
return _getTransferList.getTransferList;
}
});
Object.defineProperty(exports, "validateLoaderVersion", {
enumerable: true,
get: function get() {
return _validateLoaderVersion.validateLoaderVersion;
}
});
Object.defineProperty(exports, "parseJSON", {
enumerable: true,
get: function get() {
return _parseJson.parseJSON;
}
});
Object.defineProperty(exports, "padTo4Bytes", {

@@ -81,8 +159,2 @@ enumerable: true,

});
Object.defineProperty(exports, "parseJSON", {
enumerable: true,
get: function get() {
return _parseJson.parseJSON;
}
});
Object.defineProperty(exports, "_getMeshSize", {

@@ -94,24 +166,26 @@ enumerable: true,

});
Object.defineProperty(exports, "assert", {
enumerable: true,
get: function get() {
return _assert["default"];
}
});
var _createWorker = _interopRequireDefault(require("./worker-utils/create-worker"));
var _createWorker = _interopRequireDefault(require("./lib/create-worker"));
var _memoryCopyUtils = require("./lib/memory-copy-utils");
var _assert = _interopRequireDefault(require("./lib/env-utils/assert"));
var _binaryCopyUtils = require("./lib/binary-copy-utils");
var _globals = require("./lib/env-utils/globals");
var _encodeUtils = require("./lib/encode-utils");
var _libraryUtils = require("./lib/library-utils/library-utils");
var _getFirstCharacters = require("./lib/get-first-characters");
var _getTransferList = require("./lib/worker-utils/get-transfer-list");
var _parseJson = require("./lib/parse-json");
var _validateLoaderVersion = require("./lib/validate-loader-version");
var _parseJson = require("./lib/parser-utils/parse-json");
var _memoryCopyUtils = require("./lib/binary-utils/memory-copy-utils");
var _binaryCopyUtils = require("./lib/binary-utils/binary-copy-utils");
var _encodeUtils = require("./lib/binary-utils/encode-utils");
var _getFirstCharacters = require("./lib/binary-utils/get-first-characters");
var _meshUtils = require("./categories/mesh/mesh-utils");
var _assert = _interopRequireDefault(require("./lib/utils/assert"));
//# sourceMappingURL=index.js.map

18

dist/es6/index.js

@@ -1,9 +0,13 @@

export { default as createWorker } from './worker-utils/create-worker';
export { padTo4Bytes, copyToArray, copyArrayBuffer, getZeroOffsetArrayBuffer } from './lib/memory-copy-utils';
export { copyPaddedArrayBufferToDataView, copyPaddedStringToDataView } from './lib/binary-copy-utils';
export { padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView } from './lib/encode-utils';
export { getFirstCharacters, getMagicString } from './lib/get-first-characters';
export { parseJSON } from './lib/parse-json';
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 { 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';
export { padTo4Bytes, copyToArray, copyArrayBuffer, getZeroOffsetArrayBuffer } from './lib/binary-utils/memory-copy-utils';
export { copyPaddedArrayBufferToDataView, copyPaddedStringToDataView } from './lib/binary-utils/binary-copy-utils';
export { padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView } from './lib/binary-utils/encode-utils';
export { getFirstCharacters, getMagicString } from './lib/binary-utils/get-first-characters';
export { getMeshSize as _getMeshSize } from './categories/mesh/mesh-utils';
export { default as assert } from './lib/utils/assert';
//# sourceMappingURL=index.js.map

@@ -1,9 +0,13 @@

export { default as createWorker } from './worker-utils/create-worker';
export { padTo4Bytes, copyToArray, copyArrayBuffer, getZeroOffsetArrayBuffer } from './lib/memory-copy-utils';
export { copyPaddedArrayBufferToDataView, copyPaddedStringToDataView } from './lib/binary-copy-utils';
export { padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView } from './lib/encode-utils';
export { getFirstCharacters, getMagicString } from './lib/get-first-characters';
export { parseJSON } from './lib/parse-json';
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 { 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';
export { padTo4Bytes, copyToArray, copyArrayBuffer, getZeroOffsetArrayBuffer } from './lib/binary-utils/memory-copy-utils';
export { copyPaddedArrayBufferToDataView, copyPaddedStringToDataView } from './lib/binary-utils/binary-copy-utils';
export { padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView } from './lib/binary-utils/encode-utils';
export { getFirstCharacters, getMagicString } from './lib/binary-utils/get-first-characters';
export { getMeshSize as _getMeshSize } from './categories/mesh/mesh-utils';
export { default as assert } from './lib/utils/assert';
//# sourceMappingURL=index.js.map
{
"name": "@loaders.gl/loader-utils",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "Framework-independent loaders for 3D graphics formats",

@@ -29,2 +29,7 @@ "license": "MIT",

],
"browser": {
"./src/lib/library-utils/require-utils.node.js": false,
"./dist/esm/lib/library-utils/require-utils.node.js": false,
"./dist/es6/library-utils/require-utils.node.js": false
},
"scripts": {

@@ -37,3 +42,3 @@ "pre-build-disabled": "npm run build-bundle && npm run build-bundle -- --env.dev",

},
"gitHead": "1bc3e4e6522a2a337f972799f63682464500a313"
"gitHead": "fc28707733ea13de169330a6acd003956e9dbcfa"
}

@@ -0,4 +1,25 @@

export {default as createWorker} from './lib/create-worker';
// GENERAL UTILS
export {default as assert} from './lib/env-utils/assert';
export {
isBrowser,
isWorker,
nodeVersion,
self,
window,
global,
document
} from './lib/env-utils/globals';
// LIBRARY UTILS
export {getLibraryUrl, loadLibrary} from './lib/library-utils/library-utils';
// WORKER UTILS
export {default as createWorker} from './worker-utils/create-worker';
export {getTransferList} from './lib/worker-utils/get-transfer-list';
export {validateLoaderVersion} from './lib/validate-loader-version';
// PARSER UTILS
export {parseJSON} from './lib/parser-utils/parse-json';
// MEMORY COPY UTILS

@@ -10,17 +31,16 @@ export {

getZeroOffsetArrayBuffer
} from './lib/memory-copy-utils';
export {copyPaddedArrayBufferToDataView, copyPaddedStringToDataView} from './lib/binary-copy-utils';
} from './lib/binary-utils/memory-copy-utils';
export {
copyPaddedArrayBufferToDataView,
copyPaddedStringToDataView
} from './lib/binary-utils/binary-copy-utils';
export {
padStringToByteAlignment,
copyStringToDataView,
copyBinaryToDataView
} from './lib/encode-utils';
} from './lib/binary-utils/encode-utils';
export {getFirstCharacters, getMagicString} from './lib/binary-utils/get-first-characters';
export {getFirstCharacters, getMagicString} from './lib/get-first-characters';
export {parseJSON} from './lib/parse-json';
// MESH CATEGORY UTILS
// Note: Should move to category specific module if code size increases
export {getMeshSize as _getMeshSize} from './categories/mesh/mesh-utils';
export {default as assert} from './lib/utils/assert';

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

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