@loaders.gl/core
Advanced tools
Comparing version 4.0.3 to 4.0.4
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
// ../worker-utils/src/lib/node/worker_threads.ts | ||
var worker_threads_exports = {}; | ||
__export(worker_threads_exports, { | ||
NodeWorker: () => NodeWorker, | ||
parentPort: () => parentPort | ||
}); | ||
var WorkerThreads = __toESM(require("worker_threads"), 1); | ||
__reExport(worker_threads_exports, require("worker_threads")); | ||
var parentPort = WorkerThreads == null ? void 0 : WorkerThreads.parentPort; | ||
var NodeWorker = WorkerThreads.Worker; | ||
// ../worker-utils/src/lib/worker-utils/get-transfer-list.ts | ||
@@ -40,15 +78,2 @@ function getTransferList(object, recursive = true, transfers) { | ||
async function getParentPort() { | ||
let parentPort; | ||
try { | ||
eval("globalThis.parentPort = require('worker_threads').parentPort"); | ||
parentPort = globalThis.parentPort; | ||
} catch { | ||
try { | ||
eval("globalThis.workerThreadsPromise = import('worker_threads')"); | ||
const workerThreads = await globalThis.workerThreadsPromise; | ||
parentPort = workerThreads.parentPort; | ||
} catch (error) { | ||
console.error(error.message); | ||
} | ||
} | ||
return parentPort; | ||
@@ -212,3 +237,3 @@ } | ||
// src/null-loader.ts | ||
var VERSION = true ? "4.0.3" : "latest"; | ||
var VERSION = true ? "4.0.4" : "latest"; | ||
var NullLoader = { | ||
@@ -215,0 +240,0 @@ name: "Null loader", |
"use strict"; | ||
(() => { | ||
// ../worker-utils/src/lib/node/worker_threads-browser.ts | ||
var parentPort = null; | ||
// ../worker-utils/src/lib/worker-utils/get-transfer-list.ts | ||
@@ -40,15 +43,2 @@ function getTransferList(object, recursive = true, transfers) { | ||
async function getParentPort() { | ||
let parentPort; | ||
try { | ||
eval("globalThis.parentPort = require('worker_threads').parentPort"); | ||
parentPort = globalThis.parentPort; | ||
} catch { | ||
try { | ||
eval("globalThis.workerThreadsPromise = import('worker_threads')"); | ||
const workerThreads = await globalThis.workerThreadsPromise; | ||
parentPort = workerThreads.parentPort; | ||
} catch (error) { | ||
console.error(error.message); | ||
} | ||
} | ||
return parentPort; | ||
@@ -212,3 +202,3 @@ } | ||
// src/null-loader.ts | ||
var VERSION = true ? "4.0.3" : "latest"; | ||
var VERSION = true ? "4.0.4" : "latest"; | ||
var NullLoader = { | ||
@@ -215,0 +205,0 @@ name: "Null loader", |
{ | ||
"name": "@loaders.gl/core", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "The core API for working with loaders.gl loaders and writers", | ||
@@ -52,7 +52,7 @@ "license": "MIT", | ||
"@babel/runtime": "^7.3.1", | ||
"@loaders.gl/loader-utils": "4.0.3", | ||
"@loaders.gl/worker-utils": "4.0.3", | ||
"@loaders.gl/loader-utils": "4.0.4", | ||
"@loaders.gl/worker-utils": "4.0.4", | ||
"@probe.gl/log": "^4.0.2" | ||
}, | ||
"gitHead": "03c871839b36c997249dabae1844df53a35d3760" | ||
"gitHead": "4dc810fa04bb400f4aedfef98a83c7ef882ed3d7" | ||
} |
Sorry, the diff of this file is too big to display
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
578758
10502
+ Added@loaders.gl/loader-utils@4.0.4(transitive)
+ Added@loaders.gl/worker-utils@4.0.4(transitive)
- Removed@loaders.gl/loader-utils@4.0.3(transitive)
- Removed@loaders.gl/worker-utils@4.0.3(transitive)