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.13 to 0.0.14-2

lib/interfaces/files-configuration.d.ts

6

lib/constants/constants.d.ts

@@ -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,11 @@ 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));
};

@@ -441,2 +450,3 @@

Object.defineProperty(exports, "__esModule", { value: true });
exports.MAX_FILE_SIZE = 50 * 1024 * 1024;
var FilesCommands;

@@ -470,8 +480,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 +482,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,6 @@ 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;
{
"name": "@files-stack/core",
"version": "0.0.13",
"version": "0.0.14-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