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-alpha.24 to 4.0.0-alpha.25

23

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

@@ -6,9 +6,20 @@ "use strict";

});
exports.VERSION = void 0;
var DEFAULT_VERSION = 'beta';
var VERSION = typeof "4.0.0-alpha.24" !== 'undefined' ? "4.0.0-alpha.24" : DEFAULT_VERSION;
exports.VERSION = exports.NPM_TAG = void 0;
var NPM_TAG = 'beta';
exports.NPM_TAG = NPM_TAG;
function getVersion() {
var _globalThis$_loadersg;
if (!((_globalThis$_loadersg = globalThis._loadersgl_) !== null && _globalThis$_loadersg !== void 0 && _globalThis$_loadersg.version)) {
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
if (typeof "4.0.0-alpha.25" === 'undefined') {
console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
globalThis._loadersgl_.version = NPM_TAG;
} else {
globalThis._loadersgl_.version = "4.0.0-alpha.25";
}
}
return globalThis._loadersgl_.version;
}
var VERSION = getVersion();
exports.VERSION = VERSION;
if (typeof "4.0.0-alpha.24" === '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

@@ -18,4 +18,2 @@ "use strict";

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var LATEST = 'beta';
var VERSION = typeof "4.0.0-alpha.24" !== 'undefined' ? "4.0.0-alpha.24" : LATEST;
var loadLibraryPromises = {};

@@ -69,3 +67,3 @@ function loadLibrary(_x) {

(0, _assert.assert)(options.CDN.startsWith('http'));
return "".concat(options.CDN, "/").concat(moduleName, "@").concat(VERSION, "/dist/libs/").concat(libraryName);
return "".concat(options.CDN, "/").concat(moduleName, "@").concat(_version.VERSION, "/dist/libs/").concat(libraryName);
}

@@ -72,0 +70,0 @@ if (_globals.isWorker) {

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

var _version = require("../env-utils/version");
var NPM_TAG = 'beta';
var VERSION = typeof "4.0.0-alpha.24" !== 'undefined' ? "4.0.0-alpha.24" : NPM_TAG;
function getWorkerName(worker) {
var warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : '';
var warning = worker.version !== _version.VERSION ? " (worker-utils@".concat(_version.VERSION, ")") : '';
return "".concat(worker.name, "@").concat(worker.version).concat(warning);

@@ -32,3 +30,3 @@ }

if (version === 'latest') {
version = NPM_TAG;
version = _version.NPM_TAG;
}

@@ -35,0 +33,0 @@ var versionTag = version ? "@".concat(version) : '';

@@ -1,6 +0,16 @@

const DEFAULT_VERSION = 'beta';
export const VERSION = typeof "4.0.0-alpha.24" !== 'undefined' ? "4.0.0-alpha.24" : DEFAULT_VERSION;
if (typeof "4.0.0-alpha.24" === 'undefined') {
console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
export const NPM_TAG = 'beta';
function getVersion() {
var _globalThis$_loadersg;
if (!((_globalThis$_loadersg = globalThis._loadersgl_) !== null && _globalThis$_loadersg !== void 0 && _globalThis$_loadersg.version)) {
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
if (typeof "4.0.0-alpha.25" === 'undefined') {
console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
globalThis._loadersgl_.version = NPM_TAG;
} else {
globalThis._loadersgl_.version = "4.0.0-alpha.25";
}
}
return globalThis._loadersgl_.version;
}
export const VERSION = getVersion();
//# sourceMappingURL=version.js.map
import { global, isBrowser, isWorker } from '../env-utils/globals';
import * as node from '../node/require-utils.node';
import { assert } from '../env-utils/assert';
import { VERSION as __VERSION__ } from '../env-utils/version';
const LATEST = 'beta';
const VERSION = typeof "4.0.0-alpha.24" !== 'undefined' ? "4.0.0-alpha.24" : LATEST;
import { VERSION } from '../env-utils/version';
const loadLibraryPromises = {};

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

import { assert } from '../env-utils/assert';
import { isBrowser } from '../env-utils/globals';
import { VERSION as __VERSION__ } from '../env-utils/version';
const NPM_TAG = 'beta';
const VERSION = typeof "4.0.0-alpha.24" !== 'undefined' ? "4.0.0-alpha.24" : NPM_TAG;
import { VERSION, NPM_TAG } from '../env-utils/version';
export function getWorkerName(worker) {

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

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

export declare const VERSION: string;
/**
* TODO - unpkg.com doesn't seem to have a `latest` specifier for alpha releases...
* 'beta' on beta branch, 'latest' on prod branch
*/
export declare const NPM_TAG = "beta";
export declare const VERSION: any;
//# sourceMappingURL=version.d.ts.map
{
"name": "@loaders.gl/worker-utils",
"version": "4.0.0-alpha.24",
"version": "4.0.0-alpha.25",
"description": "Utilities for running tasks on worker threads",

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

},
"gitHead": "97a8990595c132fb14e3445a8768d9f4cb98ff05"
"gitHead": "40135f391b869388dbbcd615bbe51178d0c370be"
}
// Version constant cannot be imported, it needs to correspond to the build version of **this** module.
// __VERSION__ is injected by babel-plugin-version-inline
// Change to `latest` on production branches
const DEFAULT_VERSION = 'beta';
/**
* TODO - unpkg.com doesn't seem to have a `latest` specifier for alpha releases...
* 'beta' on beta branch, 'latest' on prod branch
*/
export const NPM_TAG = 'beta'; // Change to `latest` on production branches
declare let __VERSION__: string;
export const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : DEFAULT_VERSION;
if (typeof __VERSION__ === 'undefined') {
// eslint-disable-next-line
console.error(
'loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.'
);
function getVersion() {
if (!globalThis._loadersgl_?.version) {
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
// __VERSION__ is injected by babel-plugin-version-inline
if (typeof __VERSION__ === 'undefined') {
// eslint-disable-next-line
console.error(
'loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.'
);
globalThis._loadersgl_.version = NPM_TAG;
} else {
globalThis._loadersgl_.version = __VERSION__;
}
}
return globalThis._loadersgl_.version;
}
export const VERSION = getVersion();

@@ -5,11 +5,4 @@ /* global importScripts */

import {assert} from '../env-utils/assert';
import {VERSION as __VERSION__} from '../env-utils/version';
import {VERSION} from '../env-utils/version';
/**
* TODO - unpkg.com doesn't seem to have a `latest` specifier for alpha releases...
* 'beta' on beta branch, 'latest' on prod branch
*/
const LATEST = 'beta';
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : LATEST;
const loadLibraryPromises: Record<string, Promise<any>> = {}; // promises

@@ -16,0 +9,0 @@

@@ -6,7 +6,4 @@ // loaders.gl, MIT license

import {isBrowser} from '../env-utils/globals';
import {VERSION as __VERSION__} from '../env-utils/version';
import {VERSION, NPM_TAG} from '../env-utils/version';
const NPM_TAG = 'beta'; // 'beta', or 'latest' on release-branch
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : NPM_TAG;
/**

@@ -13,0 +10,0 @@ * Gets worker object's name (for debugging in Chrome thread inspector window)

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

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

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