Socket
Socket
Sign inDemoInstall

@files-stack/core

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@files-stack/core - npm Package Compare versions

Comparing version 0.0.27-1 to 0.0.27-2

16

lib/index.js

@@ -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('/');

2

lib/utils.d.ts

@@ -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;

2

package.json
{
"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

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