@loaders.gl/worker-utils
Advanced tools
Comparing version 3.0.0-beta.5 to 3.0.0-beta.6
@@ -7,8 +7,9 @@ "use strict"; | ||
exports.VERSION = void 0; | ||
var VERSION = typeof "3.0.0-beta.5" !== 'undefined' ? "3.0.0-beta.5" : 'latest'; | ||
var DEFAULT_VERSION = 'beta'; | ||
var VERSION = typeof "3.0.0-beta.6" !== 'undefined' ? "3.0.0-beta.6" : DEFAULT_VERSION; | ||
exports.VERSION = VERSION; | ||
if (typeof "3.0.0-beta.5" === 'undefined') { | ||
if (typeof "3.0.0-beta.6" === '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 |
@@ -30,3 +30,3 @@ "use strict"; | ||
var LATEST = 'beta'; | ||
var VERSION = typeof "3.0.0-beta.5" !== 'undefined' ? "3.0.0-beta.5" : LATEST; | ||
var VERSION = typeof "3.0.0-beta.6" !== 'undefined' ? "3.0.0-beta.6" : LATEST; | ||
var loadLibraryPromises = {}; | ||
@@ -33,0 +33,0 @@ |
@@ -14,3 +14,3 @@ "use strict"; | ||
var NPM_TAG = 'beta'; | ||
var VERSION = typeof "3.0.0-beta.5" !== 'undefined' ? "3.0.0-beta.5" : NPM_TAG; | ||
var VERSION = typeof "3.0.0-beta.6" !== 'undefined' ? "3.0.0-beta.6" : NPM_TAG; | ||
@@ -17,0 +17,0 @@ function getWorkerName(worker) { |
@@ -1,6 +0,7 @@ | ||
export const VERSION = typeof "3.0.0-beta.5" !== 'undefined' ? "3.0.0-beta.5" : 'latest'; | ||
const DEFAULT_VERSION = 'beta'; | ||
export const VERSION = typeof "3.0.0-beta.6" !== 'undefined' ? "3.0.0-beta.6" : DEFAULT_VERSION; | ||
if (typeof "3.0.0-beta.5" === 'undefined') { | ||
if (typeof "3.0.0-beta.6" === '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 "3.0.0-beta.5" !== 'undefined' ? "3.0.0-beta.5" : LATEST; | ||
const VERSION = typeof "3.0.0-beta.6" !== 'undefined' ? "3.0.0-beta.6" : LATEST; | ||
const loadLibraryPromises = {}; | ||
@@ -9,0 +9,0 @@ export async function loadLibrary(libraryUrl, moduleName = null, options = {}) { |
import { assert } from '../env-utils/assert'; | ||
import { VERSION as __VERSION__ } from '../env-utils/version'; | ||
const NPM_TAG = 'beta'; | ||
const VERSION = typeof "3.0.0-beta.5" !== 'undefined' ? "3.0.0-beta.5" : NPM_TAG; | ||
const VERSION = typeof "3.0.0-beta.6" !== 'undefined' ? "3.0.0-beta.6" : NPM_TAG; | ||
export function getWorkerName(worker) { | ||
@@ -6,0 +6,0 @@ const warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : ''; |
{ | ||
"name": "@loaders.gl/worker-utils", | ||
"version": "3.0.0-beta.5", | ||
"version": "3.0.0-beta.6", | ||
"description": "Utilities for running tasks on worker threads", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "c3ac0e719bdc9a4501f85ab83227264563fd458a" | ||
"gitHead": "6bc6247c1fbef3b5cfa915aa82c51892833eeaed" | ||
} |
// 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'; | ||
declare let __VERSION__; | ||
export const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest'; | ||
export const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : DEFAULT_VERSION; | ||
if (typeof __VERSION__ === 'undefined') { | ||
@@ -6,0 +9,0 @@ // eslint-disable-next-line |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
376549
4772