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

@filerobot/utils

Package Overview
Dependencies
Maintainers
1
Versions
1368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filerobot/utils - npm Package Compare versions

Comparing version 0.0.0-beta.25 to 0.0.0-beta.27

1

lib/constants.js

@@ -366,2 +366,3 @@ import { VisibilityIcon, CodeIcon, TagsIcon, MetaIcon, DetailsIcon, CommentsIcon, HistoryIcon, BranchesIcon, SimilarityIcon, LinkIcon, ShareFolderIcon, ShareAssetsIcon, CommentsSolidIcon } from '@filerobot/icons';

BG_PRIMARY_ACTIVE: '#5D6D7E',
BORDER_STRONG: '#DFE7ED',
ACCENT_PRIMARY: '#6879EB',

@@ -368,0 +369,0 @@ ERROR: '#E85B46',

9

lib/getItemPath.js
var getItemPath = function getItemPath(item) {
var _item$url;
if (item !== null && item !== void 0 && (_item$url = item.url) !== null && _item$url !== void 0 && _item$url.path) {
var lastDirSeparatorIndex = item.url.path.lastIndexOf('/');
return item.url.path.substr(0, lastDirSeparatorIndex) || '/';
if ((_item$url = item.url) !== null && _item$url !== void 0 && _item$url.path || item.path) {
var _item$url2;
var wholePath = ((_item$url2 = item.url) === null || _item$url2 === void 0 ? void 0 : _item$url2.path) || item.path;
var lastFolderSeparatorIndex = wholePath.lastIndexOf('/');
return wholePath.substr(0, lastFolderSeparatorIndex) || '/';
}

@@ -8,0 +11,0 @@ };

@@ -29,7 +29,9 @@ /**

promise.then(successCallback).catch(function (error) {
errorCallback(error, 'error', 5000);
}).finally(finishCallback);
if (promise instanceof Promise) {
promise.then(successCallback).catch(function (error) {
errorCallback(error, 'error', 5000);
}).finally(finishCallback);
}
};
export default handlePromise;

@@ -6,3 +6,3 @@ {

"types": "types/index.d.ts",
"version": "0.0.0-beta.25",
"version": "0.0.0-beta.27",
"files": [

@@ -15,3 +15,3 @@ "/dist",

"dependencies": {
"@filerobot/icons": "^0.0.0-beta.25",
"@filerobot/icons": "0.0.0-beta.27",
"abortcontroller-polyfill": "^1.4.0",

@@ -18,0 +18,0 @@ "lodash.throttle": "^4.1.1"

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