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

@loaders.gl/worker-utils

Package Overview
Dependencies
Maintainers
9
Versions
205
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-alpha.8 to 4.0.0-alpha.9

4

dist/es5/lib/env-utils/version.js

@@ -8,7 +8,7 @@ "use strict";

var DEFAULT_VERSION = 'beta';
var VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : DEFAULT_VERSION;
var VERSION = typeof "4.0.0-alpha.9" !== 'undefined' ? "4.0.0-alpha.9" : DEFAULT_VERSION;
exports.VERSION = VERSION;
if (typeof "4.0.0-alpha.8" === 'undefined') {
if (typeof "4.0.0-alpha.9" === 'undefined') {
console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
}
//# sourceMappingURL=version.js.map

@@ -19,3 +19,3 @@ "use strict";

var LATEST = 'beta';
var VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : LATEST;
var VERSION = typeof "4.0.0-alpha.9" !== 'undefined' ? "4.0.0-alpha.9" : LATEST;
var loadLibraryPromises = {};

@@ -22,0 +22,0 @@ function loadLibrary(_x) {

@@ -89,4 +89,6 @@ "use strict";

console.log("Child process wrote to stderr: \"".concat(data, "\"."));
_this._clearTimeout();
reject(new Error(data));
if (!props.ignoreStderr) {
_this._clearTimeout();
reject(new Error(data));
}
});

@@ -93,0 +95,0 @@ childProcess.on('error', function (error) {

@@ -12,3 +12,3 @@ "use strict";

var NPM_TAG = 'beta';
var VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : NPM_TAG;
var VERSION = typeof "4.0.0-alpha.9" !== 'undefined' ? "4.0.0-alpha.9" : NPM_TAG;
function getWorkerName(worker) {

@@ -15,0 +15,0 @@ var warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : '';

const DEFAULT_VERSION = 'beta';
export const VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : DEFAULT_VERSION;
if (typeof "4.0.0-alpha.8" === 'undefined') {
export const VERSION = typeof "4.0.0-alpha.9" !== 'undefined' ? "4.0.0-alpha.9" : DEFAULT_VERSION;
if (typeof "4.0.0-alpha.9" === 'undefined') {
console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
}
//# sourceMappingURL=version.js.map

@@ -6,3 +6,3 @@ import { global, isBrowser, isWorker } from '../env-utils/globals';

const LATEST = 'beta';
const VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : LATEST;
const VERSION = typeof "4.0.0-alpha.9" !== 'undefined' ? "4.0.0-alpha.9" : LATEST;
const loadLibraryPromises = {};

@@ -9,0 +9,0 @@ export async function loadLibrary(libraryUrl) {

@@ -58,4 +58,6 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

console.log("Child process wrote to stderr: \"".concat(data, "\"."));
this._clearTimeout();
reject(new Error(data));
if (!props.ignoreStderr) {
this._clearTimeout();
reject(new Error(data));
}
});

@@ -62,0 +64,0 @@ childProcess.on('error', error => {

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

const NPM_TAG = 'beta';
const VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : NPM_TAG;
const VERSION = typeof "4.0.0-alpha.9" !== 'undefined' ? "4.0.0-alpha.9" : NPM_TAG;
export function getWorkerName(worker) {

@@ -8,0 +8,0 @@ const warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : '';

@@ -17,2 +17,4 @@ /// <reference types="node" />

spawn?: ChildProcess.SpawnOptionsWithoutStdio;
/** Should proceed if stderr stream recieved data */
ignoreStderr?: boolean;
/** Callback when the */

@@ -19,0 +21,0 @@ onStart?: (proxy: ChildProcessProxy) => void;

@@ -81,7 +81,8 @@ "use strict";

});
// TODO - add option regarding whether stderr should be treated as data
childProcess.stderr.on('data', (data) => {
console.log(`Child process wrote to stderr: "${data}".`);
this._clearTimeout();
reject(new Error(data));
if (!props.ignoreStderr) {
this._clearTimeout();
reject(new Error(data));
}
});

@@ -88,0 +89,0 @@ childProcess.on('error', (error) => {

{
"name": "@loaders.gl/worker-utils",
"version": "4.0.0-alpha.8",
"version": "4.0.0-alpha.9",
"description": "Utilities for running tasks on worker threads",

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

},
"gitHead": "c35d6640c8d26deab99e277a8e698b5174233789"
"gitHead": "03ff81ab468f20f3bddeec787aa88d477a7e1c72"
}

@@ -22,2 +22,4 @@ /* eslint-disable no-console */

spawn?: ChildProcess.SpawnOptionsWithoutStdio;
/** Should proceed if stderr stream recieved data */
ignoreStderr?: boolean;
/** Callback when the */

@@ -87,7 +89,8 @@ onStart?: (proxy: ChildProcessProxy) => void;

});
// TODO - add option regarding whether stderr should be treated as data
childProcess.stderr.on('data', (data) => {
console.log(`Child process wrote to stderr: "${data}".`);
this._clearTimeout();
reject(new Error(data));
if (!props.ignoreStderr) {
this._clearTimeout();
reject(new Error(data));
}
});

@@ -94,0 +97,0 @@ childProcess.on('error', (error) => {

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