@files-stack/core
Advanced tools
Comparing version 0.0.27-1 to 0.0.27-2
@@ -386,18 +386,2 @@ module.exports = | ||
}; | ||
exports.arrangeChildren = (children) => { | ||
let files = []; | ||
let directories = []; | ||
children.forEach((child) => { | ||
if (child.isDirectory) { | ||
directories.push(child); | ||
} | ||
else { | ||
files.push(child); | ||
} | ||
}); | ||
const sorter = ramda_1.sortBy(ramda_1.compose(ramda_1.toLower, ramda_1.prop('name'))); | ||
files = sorter(files); | ||
directories = sorter(directories); | ||
return directories.concat(files); | ||
}; | ||
exports.getParentResource = (resource) => { | ||
@@ -404,0 +388,0 @@ let patterns = resource.split('/'); |
@@ -1,6 +0,4 @@ | ||
import { ICoreFileStat } from './interfaces'; | ||
export declare const isChild: (source: string, target: string) => boolean; | ||
export declare const getPath: (resource: string) => string; | ||
export declare const getFileName: (resource: string) => string; | ||
export declare const arrangeChildren: (children: ICoreFileStat[]) => ICoreFileStat[]; | ||
export declare const getParentResource: (resource: string) => string; | ||
@@ -7,0 +5,0 @@ export declare const getRelativePath: (root: string, resource: string) => string; |
{ | ||
"name": "@files-stack/core", | ||
"version": "0.0.27-1", | ||
"version": "0.0.27-2", | ||
"description": "files core for higher packages to depend on", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
45440
617