@rpldy/shared-ui
Advanced tools
Comparing version 1.4.0 to 1.4.1-rc.0
@@ -10,15 +10,13 @@ "use strict"; | ||
exports.GLOBAL_VERSION_SYM = GLOBAL_VERSION_SYM; | ||
const getVersion = () => "1.4.0" || ""; | ||
const getVersion = () => "1.4.1-rc.0" || ""; | ||
exports.getVersion = getVersion; | ||
const getGlobal = () => /* istanbul ignore next */ | ||
// $FlowIgnore | ||
(0, _shared.hasWindow)() ? window : globalThis || process; | ||
const getRegisteredVersion = () => { | ||
/* istanbul ignore next */ | ||
const global = (0, _shared.hasWindow)() ? window : process; | ||
// $FlowIgnore | ||
return global[GLOBAL_VERSION_SYM]; | ||
return getGlobal()[GLOBAL_VERSION_SYM]; | ||
}; | ||
exports.getRegisteredVersion = getRegisteredVersion; | ||
const registerUploadyContextVersion = () => { | ||
const global = (0, _shared.hasWindow)() ? window : process; | ||
//$FlowIgnore | ||
global[GLOBAL_VERSION_SYM] = getVersion(); | ||
getGlobal()[GLOBAL_VERSION_SYM] = getVersion(); | ||
}; | ||
@@ -25,0 +23,0 @@ exports.registerUploadyContextVersion = registerUploadyContextVersion; |
import { hasWindow } from "@rpldy/shared"; | ||
export const GLOBAL_VERSION_SYM = Symbol.for("_rpldy-version_"); | ||
const getVersion = () => "1.4.0" || ""; | ||
const getVersion = () => "1.4.1-rc.0" || ""; | ||
const getGlobal = () => /* istanbul ignore next */ | ||
// $FlowIgnore | ||
hasWindow() ? window : globalThis || process; | ||
const getRegisteredVersion = () => { | ||
/* istanbul ignore next */ | ||
const global = hasWindow() ? window : process; | ||
// $FlowIgnore | ||
return global[GLOBAL_VERSION_SYM]; | ||
return getGlobal()[GLOBAL_VERSION_SYM]; | ||
}; | ||
const registerUploadyContextVersion = () => { | ||
const global = hasWindow() ? window : process; | ||
//$FlowIgnore | ||
global[GLOBAL_VERSION_SYM] = getVersion(); | ||
getGlobal()[GLOBAL_VERSION_SYM] = getVersion(); | ||
}; | ||
@@ -15,0 +13,0 @@ const getIsVersionRegisteredAndDifferent = () => { |
{ | ||
"version": "1.4.0", | ||
"version": "1.4.1-rc.0", | ||
"name": "@rpldy/shared-ui", | ||
@@ -26,4 +26,4 @@ "description": "internal set of utils+types for react-uploady UI", | ||
"dependencies": { | ||
"@rpldy/shared": "^1.4.0", | ||
"@rpldy/uploader": "^1.4.0" | ||
"@rpldy/shared": "^1.4.1-rc.0", | ||
"@rpldy/uploader": "^1.4.1-rc.0" | ||
}, | ||
@@ -40,3 +40,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "c3b94873c2b48989bfb729c5bda62cba26c6610a" | ||
"gitHead": "03294c5acdf522333b44613753eb1be7aa286ca2" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
64886
1477
1
Updated@rpldy/shared@^1.4.1-rc.0
Updated@rpldy/uploader@^1.4.1-rc.0