Socket
Socket
Sign inDemoInstall

@rpldy/shared-ui

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpldy/shared-ui - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1-rc.0

14

lib/cjs/uploadyVersion.js

@@ -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"
}
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