@files-stack/core
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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; |
@@ -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
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
38257
11
537