Socket
Socket
Sign inDemoInstall

@files-stack/server-core

Package Overview
Dependencies
Maintainers
1
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@files-stack/server-core - npm Package Compare versions

Comparing version 0.0.27-15 to 0.0.27-16

lib/core/merge-service.d.ts

4

lib/interfaces/files-microservice.d.ts
import { IContent, IResolveContentOptions, IUpdateContentOptions } from './files-content';
import { IImportResult, IFileStat, IResolveFileOptions, IResolveFileResult } from './files';
import { IImportResult, IFileStat, IResolveFileOptions, IResolveFileResult, IChunkOptions, IChangesChunk } from './files';
import { TPromise } from '@vscode/base-node/vs/base/common/winjs.base';

@@ -16,2 +16,4 @@ export interface IFileMicroservice {

updateContent(resource: string, value: string, options?: IUpdateContentOptions): Promise<IFileStat> | TPromise<IFileStat>;
updateContentChunk(resource: string, chunks: IChunkOptions[], options?: IUpdateContentOptions): Promise<IFileStat> | TPromise<IFileStat>;
updateContentByChanges(resource: string, changes: IChangesChunk[], options?: IUpdateContentOptions): Promise<IFileStat> | TPromise<IFileStat>;
moveFile(source: string, target: string, overwrite?: boolean): Promise<IFileStat> | TPromise<IFileStat>;

@@ -18,0 +20,0 @@ copyFile(source: string, target: string, overwrite?: boolean): Promise<IFileStat> | TPromise<IFileStat>;

@@ -84,1 +84,26 @@ import { IFileChange } from '@files-stack/core';

}
export interface IChunkOptions {
piece: {
range: {
startLineNumber: number;
startColumn: number;
endLineNumber: number;
endColumn: number;
};
rangeLength: number;
part: number;
text: string;
};
chunksCount: number;
chunkPosition: number;
}
export interface IChangesChunk {
range: {
startLineNumber: number;
startColumn: number;
endLineNumber: number;
endColumn: number;
};
text: string;
rangeLength: number;
}
import { PubSubEngine } from 'graphql-subscriptions';
import * as Logger from 'bunyan';
import { IFileMicroservice, IFileService, IFileStat, IResolveFileResult, IContent, IResolveFileOptions, IResolveContentOptions, IUpdateContentOptions, IImportResult } from '../interfaces';
import { IFileMicroservice, IFileService, IFileStat, IResolveFileResult, IContent, IResolveFileOptions, IResolveContentOptions, IUpdateContentOptions, IImportResult, IChunkOptions, IChangesChunk } from '../interfaces';
import URI from '@vscode/base-node/vs/base/common/uri';

@@ -12,2 +12,4 @@ import { TPromise } from '@vscode/base-node/vs/base/common/winjs.base';

private logger;
private buffer;
private mergeBuffer;
constructor(fileService: IFileService, settings: IFilesSettings, logger: Logger, pubsub: PubSubEngine);

@@ -25,2 +27,6 @@ private handleStreamContent(stream, filter?);

status: string;
linesRange: {
startLine: number;
endLine: number;
};
encoding: string;

@@ -35,2 +41,4 @@ resource: URI;

updateContent(resource: string, value: string, options?: IUpdateContentOptions): Promise<IFileStat>;
updateContentByChanges(resource: string, changes: IChangesChunk[], options?: IUpdateContentOptions): Promise<IFileStat>;
updateContentChunk(resource: string, chunks: [IChunkOptions], options?: IUpdateContentOptions): Promise<any>;
moveFile(source: string, target: string, overwrite?: boolean): Promise<IFileStat>;

@@ -37,0 +45,0 @@ copyFile(source: string, target: string, overwrite?: boolean): Promise<IFileStat>;

@@ -5,1 +5,3 @@ export declare function isEqual(pathA: string, pathB: string, ignoreCase?: boolean): boolean;

export declare function isEqualOrParent(path: string, candidate: string, ignoreCase?: boolean): boolean;
export declare function getlines(value: string): string[];
export declare function foundIndex(fullText: any, chunk: any): any;

@@ -64,3 +64,3 @@ module.exports =

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 67);
/******/ return __webpack_require__(__webpack_require__.s = 73);
/******/ })

@@ -144,4 +144,4 @@ /************************************************************************/

const uri_1 = __webpack_require__(0);
const files_1 = __webpack_require__(5);
const platform_1 = __webpack_require__(4);
const files_1 = __webpack_require__(6);
const platform_1 = __webpack_require__(5);
function toFileChangesEvent(changes) {

@@ -217,3 +217,3 @@ return new files_1.FileChangesEvent(changes.map((c) => {

/***/ 4:
/***/ 5:
/***/ (function(module, exports) {

@@ -225,3 +225,3 @@

/***/ 5:
/***/ 6:
/***/ (function(module, exports) {

@@ -233,3 +233,10 @@

/***/ 67:
/***/ 7:
/***/ (function(module, exports) {
module.exports = require("@vscode/base-node/vs/base/common/strings");
/***/ }),
/***/ 73:
/***/ (function(module, exports, __webpack_require__) {

@@ -242,3 +249,3 @@

const watcherIpc_1 = __webpack_require__(17);
const chokidarWatcherService_1 = __webpack_require__(68);
const chokidarWatcherService_1 = __webpack_require__(74);
const server = new ipc_cp_1.Server();

@@ -252,3 +259,3 @@ const service = new chokidarWatcherService_1.ChokidarWatcherService();

/***/ 68:
/***/ 74:
/***/ (function(module, exports, __webpack_require__) {

@@ -259,12 +266,12 @@

Object.defineProperty(exports, "__esModule", { value: true });
const chokidar = __webpack_require__(69);
const chokidar = __webpack_require__(75);
const fs = __webpack_require__(14);
const gracefulFs = __webpack_require__(70);
const gracefulFs = __webpack_require__(76);
gracefulFs.gracefulify(fs);
const winjs_base_1 = __webpack_require__(2);
const files_1 = __webpack_require__(5);
const files_1 = __webpack_require__(6);
const async_1 = __webpack_require__(16);
const strings = __webpack_require__(7);
const extfs_1 = __webpack_require__(15);
const platform_1 = __webpack_require__(4);
const platform_1 = __webpack_require__(5);
const watcher = __webpack_require__(3);

@@ -359,3 +366,3 @@ class ChokidarWatcherService {

/***/ 69:
/***/ 75:
/***/ (function(module, exports) {

@@ -367,12 +374,5 @@

/***/ 7:
/***/ 76:
/***/ (function(module, exports) {
module.exports = require("@vscode/base-node/vs/base/common/strings");
/***/ }),
/***/ 70:
/***/ (function(module, exports) {
module.exports = require("graceful-fs");

@@ -379,0 +379,0 @@

{
"name": "@files-stack/server-core",
"version": "0.0.27-15",
"version": "0.0.27-16",
"description": "files server services for Node",

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

"dependencies": {
"@files-stack/core": "^0.0.27-15"
"@files-stack/core": "^0.0.27-16"
},

@@ -48,0 +48,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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