@filerobot/utils
Advanced tools
Comparing version 0.0.0-beta.25 to 0.0.0-beta.27
@@ -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', |
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" |
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
125829
2927
+ Added@filerobot/icons@0.0.0-beta.27(transitive)
- Removed@filerobot/icons@0.0.0-beta.76(transitive)