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.7 to 0.0.8

1

lib/constants/constants.d.ts

@@ -25,2 +25,3 @@ export declare enum FilesCommands {

FILE_UPDATED = "FILE_UPDATED",
FILE_OPERATION = "FILE_OPERATION",
}

@@ -27,0 +28,0 @@ export declare enum TaggedType {

@@ -460,2 +460,3 @@ module.exports =

PubsubIdentifier["FILE_UPDATED"] = "FILE_UPDATED";
PubsubIdentifier["FILE_OPERATION"] = "FILE_OPERATION";
})(PubsubIdentifier = exports.PubsubIdentifier || (exports.PubsubIdentifier = {}));

@@ -462,0 +463,0 @@ var TaggedType;

15

lib/interfaces/files.d.ts

@@ -18,3 +18,3 @@ import URI from '@vscode/base-node/vs/base/common/uri';

}
export interface IBaseStat {
export interface ICoreBaseStat {
resource: URI | string;

@@ -25,17 +25,8 @@ name: string;

}
export interface IFileStat extends IBaseStat {
export interface ICoreFileStat extends ICoreBaseStat {
isDirectory: boolean;
hasChildren: boolean;
children?: IFileStat[];
children?: ICoreFileStat[];
size?: number;
}
export interface IContent extends IBaseStat {
value: string;
encoding: string;
newValue: string;
}
export interface IResolveFileResult {
stat: IFileStat;
success: boolean;
}
export interface IFileOperationResult {

@@ -42,0 +33,0 @@ message: string;

export * from './files';
export * from './files-content';
export * from './SUPPORTED_ENCODINGS';

@@ -1,6 +0,6 @@

import { IFileStat } from './interfaces';
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 getChildren: (children: IFileStat[]) => IFileStat[];
export declare const getChildren: (children: ICoreFileStat[]) => ICoreFileStat[];
export declare const getParentResource: (resource: string) => string;
{
"name": "@files-stack/core",
"version": "0.0.7",
"version": "0.0.8",
"description": "files core for higher packages to depend on",

@@ -40,3 +40,3 @@ "main": "lib/index.js",

"devDependencies": {
"jest": "^21.1.0",
"jest": "^21.2.1",
"rimraf": "^2.6.1",

@@ -43,0 +43,0 @@ "webpack": "^3.7.1"

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