@loaders.gl/loader-utils
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
@@ -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 |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
215935
101
2239
8
13