@files-stack/core
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -0,1 +1,2 @@ | ||
export declare const MAX_FILE_SIZE: number; | ||
export declare enum FilesCommands { | ||
@@ -27,6 +28,1 @@ RESOLVE_FILE = "RESOLVE_FILE", | ||
} | ||
export declare enum TaggedType { | ||
LOCAL = "LOCAL", | ||
DOCKER = "DOCKER", | ||
KUBERNETES = "KUBERNETES", | ||
} |
@@ -386,3 +386,3 @@ module.exports = | ||
}; | ||
exports.getChildren = (children) => { | ||
exports.arrangeChildren = (children) => { | ||
let files = []; | ||
@@ -412,2 +412,14 @@ let directories = []; | ||
}; | ||
exports.isDescendant = (older, younger) => (!!older.children && | ||
typeof older.children !== 'function' && | ||
older.children.some(child => child === younger || exports.isDescendant(child, younger))); | ||
exports.checkArrayContains = (arr1, arr2) => { | ||
if (!arr1 || !arr2 || arr1.length < arr2.length) { | ||
return false; | ||
} | ||
return arr2.every((a2, i) => (arr1[i] && arr1[i] == a2)); | ||
}; | ||
exports.getFileExt = name => { | ||
return name.split('.').pop(); | ||
}; | ||
@@ -441,2 +453,3 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MAX_FILE_SIZE = 50 * 1024 * 1024; | ||
var FilesCommands; | ||
@@ -470,8 +483,2 @@ (function (FilesCommands) { | ||
})(PubsubIdentifier = exports.PubsubIdentifier || (exports.PubsubIdentifier = {})); | ||
var TaggedType; | ||
(function (TaggedType) { | ||
TaggedType["LOCAL"] = "LOCAL"; | ||
TaggedType["DOCKER"] = "DOCKER"; | ||
TaggedType["KUBERNETES"] = "KUBERNETES"; | ||
})(TaggedType = exports.TaggedType || (exports.TaggedType = {})); | ||
@@ -478,0 +485,0 @@ |
@@ -21,2 +21,3 @@ import URI from '@vscode/base-node/vs/base/common/uri'; | ||
name?: string; | ||
title?: string; | ||
mtime?: number; | ||
@@ -23,0 +24,0 @@ etag?: string; |
export * from './files'; | ||
export * from './SUPPORTED_ENCODINGS'; | ||
export * from './files-configuration'; |
@@ -5,4 +5,7 @@ import { ICoreFileStat } from './interfaces'; | ||
export declare const getFileName: (resource: string) => string; | ||
export declare const getChildren: (children: ICoreFileStat[]) => ICoreFileStat[]; | ||
export declare const arrangeChildren: (children: ICoreFileStat[]) => ICoreFileStat[]; | ||
export declare const getParentResource: (resource: string) => string; | ||
export declare const getRelativePath: (root: string, resource: string) => string; | ||
export declare const isDescendant: (older: any, younger: any) => any; | ||
export declare const checkArrayContains: (arr1: any, arr2: any) => any; | ||
export declare const getFileExt: (name: any) => any; |
{ | ||
"name": "@files-stack/core", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"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
41323
12
579