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

@loaders.gl/core

Package Overview
Dependencies
Maintainers
9
Versions
337
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/core - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

53

dist/null-worker-node.js
"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

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