Socket
Socket
Sign inDemoInstall

@loaders.gl/worker-utils

Package Overview
Dependencies
Maintainers
9
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 4.0.0-beta.3 to 4.0.0-beta.4

4

dist/lib/library-utils/library-utils.js

@@ -1,2 +0,2 @@

import { global, isBrowser, isWorker } from "../env-utils/globals.js";
import { isBrowser, isWorker } from "../env-utils/globals.js";
import * as node from "../node/require-utils.node.js";

@@ -62,3 +62,3 @@ import { assert } from "../env-utils/assert.js";

if (isWorker) {
eval.call(global, scriptSource);
eval.call(globalThis, scriptSource);
return null;

@@ -65,0 +65,0 @@ }

{
"name": "@loaders.gl/worker-utils",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.4",
"description": "Utilities for running tasks on worker threads",

@@ -58,3 +58,3 @@ "license": "MIT",

},
"gitHead": "7ba9621cc51c7a26c407086ac86171f35b8712af"
"gitHead": "848c20b474532d301f2c3f8d4e1fb9bf262b86d4"
}
/* global importScripts */
import {global, isBrowser, isWorker} from '../env-utils/globals';
import {isBrowser, isWorker} from '../env-utils/globals';
import * as node from '../node/require-utils.node';

@@ -137,3 +137,3 @@ import {assert} from '../env-utils/assert';

// Use lvalue trick to make eval run in global scope
eval.call(global, scriptSource); // eslint-disable-line no-eval
eval.call(globalThis, scriptSource); // eslint-disable-line no-eval
// https://stackoverflow.com/questions/9107240/1-evalthis-vs-evalthis-in-javascript

@@ -140,0 +140,0 @@ // http://perfectionkills.com/global-eval-what-are-the-options/

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