Socket
Socket
Sign inDemoInstall

@files-stack/graphql-schema

Package Overview
Dependencies
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@files-stack/graphql-schema - npm Package Compare versions

Comparing version 0.0.55-22 to 0.0.55-23

16

lib/index.js

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

const graphql_subscriptions_1 = __webpack_require__(/*! graphql-subscriptions */ "graphql-subscriptions");
const lodash_1 = __webpack_require__(/*! lodash */ "lodash");
const core_1 = __webpack_require__(/*! @files-stack/core */ "@files-stack/core");

@@ -300,3 +301,3 @@ const uri_1 = __webpack_require__(/*! @vscode/base-node/vs/base/common/uri */ "@vscode/base-node/vs/base/common/uri");

options.logger.debug('subscribe fileData: (%j), variables: (%j)', payload, variables);
if (variables.fileData && variables.fileData.length) {
if (payload.fileData && payload.fileData.length && !lodash_1.isEmpty(payload.fileData[0])) {
return true;

@@ -345,3 +346,3 @@ }

module.exports = "interface IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n}\n\ntype IFileStat implements IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n isDirectory: Boolean\n hasChildren: Boolean\n children: [IFileStat]\n size: Int\n}\n\n\ntype IContent implements IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n value: String\n encoding: String\n}\n\ntype ILineRange {\n startLine: Int\n endLine: Int\n}\n\ntype IStreamContent implements IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n value: String\n encoding: String\n status: String\n linesRange: ILineRange\n}\n\nenum FileOperation {\n CREATE\n DELETE\n MOVE\n COPY\n IMPORT\n}\n\nenum FileChangeType {\n UPDATED\n ADDED\n DELETED\n}\n\ntype IFileChange implements IBaseStat {\n type: Int!\n resource: String\n name: String\n mtime: String\n etag: String\n isDirectory: Boolean\n hasChildren: Boolean\n children: [IFileStat]\n size: Int\n value: String\n}\n\ntype IFileOperation {\n resource: String\n target: IFileStat\n operation: Int\n}\n\ninput IUpdateContentOptions {\n encoding: String\n overwriteEncoding: Boolean\n overwriteReadonly: Boolean\n mtime: String\n etag: String\n}\n\ninput IResolveContentOptions {\n acceptTextOnly: Boolean\n etag: String\n encoding: String\n autoGuessEncoding: Boolean\n}\n\ninput IResolveFileOptions {\n resolveTo: [String]\n resolveSingleChildDescendants: Boolean\n}\n\ntype IImportResult {\n stat: IFileStat\n isNew: Boolean\n}\n\ninput IChangesChangesChunk {\n range: IChangeRange\n rangeLength: Int\n text: String\n part: Int\n}\n\ninput IChunkOptions {\n piece: IChangesChangesChunk\n chunksCount: Int\n chunkPosition: Int\n}\n\ninput IChangeRange {\n startLineNumber: Int\n startColumn: Int\n endLineNumber: Int\n endColumn: Int\n}\n\ninput IChangesChunk {\n range: IChangeRange\n rangeLength: Int\n text: String\n}\n\ntype IDelayFileStat {\n resource: String\n}\n\n# Mutations\nextend type Mutation {\n loadFile(resource: String!, options: IResolveFileOptions): IFileStat\n importFile(source: String!, targetFolder: String!): IImportResult\n updateContent(resource: String!, value: String!, options: IUpdateContentOptions!): IFileStat\n updateContentByChanges(resource: String!, changes: [IChangesChunk]!, options: IUpdateContentOptions!): IFileStat\n updateDelayContentByChanges(resource: String!, changes: [IChangesChunk]!, options: IUpdateContentOptions!): IDelayFileStat\n updateContentChunk(resource: String!, chunk: [IChunkOptions]!, options: IUpdateContentOptions!): IFileStat\n moveFile(source: String!, target: String!, overwrite: Boolean): IFileStat\n copyFile(source: String!, target: String!, overwrite: Boolean): IFileStat\n createFile(resource: String!, content: String): IFileStat\n createFolder(resource: String!): IFileStat\n rename(resource: String!, newName: String!): IFileStat\n touchFile(resource: String!): IFileStat\n del(resource: String!, useTrash: Boolean): Boolean\n watchFileChanges(resource: String!): Boolean\n unwatchFileChanges(resource: String!): Boolean\n unwatchFileChangesFsPath(fsPath: String!): Boolean\n # updateOptions(options: any): Boolean\n}\n\n# Root Query\nextend type Query {\n resolveFile(resource: String!, options: IResolveFileOptions): IFileStat\n existsFile(resource: String!): Boolean\n resolveContent(resource: String!, options: IResolveContentOptions): IContent\n resolveStreamContent(resource: String!, options: IResolveContentOptions): IStreamContent\n resolveContents(resources: [String!]!): [IContent]\n getEncoding(resource: String!): String\n\n}\n\n# Subscriptions\nextend type Subscription {\n fileData(resource: String!): [IFileChange]\n fileOperation(resource: String!): IFileOperation\n fileStreamContent(resource: String!): IStreamContent\n}"
module.exports = "interface IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n}\n\ntype IFileStat implements IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n isDirectory: Boolean\n hasChildren: Boolean\n children: [IFileStat]\n size: Int\n}\n\n\ntype IContent implements IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n value: String\n encoding: String\n}\n\ntype ILineRange {\n startLine: Int\n endLine: Int\n}\n\ntype IStreamContent implements IBaseStat {\n resource: String\n name: String\n mtime: String\n etag: String\n value: String\n encoding: String\n status: String\n linesRange: ILineRange\n}\n\nenum FileOperation {\n CREATE\n DELETE\n MOVE\n COPY\n IMPORT\n}\n\nenum FileChangeType {\n UPDATED\n ADDED\n DELETED\n}\n\ntype IFileChange implements IBaseStat {\n type: Int!\n resource: String\n name: String\n mtime: String\n etag: String\n isDirectory: Boolean\n hasChildren: Boolean\n children: [IFileStat]\n size: Int\n value: String\n}\n\ntype IFileOperation {\n resource: String\n target: IFileStat\n operation: Int\n}\n\ninput IUpdateContentOptions {\n encoding: String\n overwriteEncoding: Boolean\n overwriteReadonly: Boolean\n mtime: String\n etag: String\n}\n\ninput IResolveContentOptions {\n acceptTextOnly: Boolean\n etag: String\n encoding: String\n autoGuessEncoding: Boolean\n}\n\ninput IResolveFileOptions {\n resolveTo: [String]\n resolveSingleChildDescendants: Boolean\n}\n\ntype IImportResult {\n stat: IFileStat\n isNew: Boolean\n}\n\ninput IChangesChangesChunk {\n range: IChangeRange\n rangeLength: Int\n text: String\n part: Int\n}\n\ninput IChunkOptions {\n piece: IChangesChangesChunk\n chunksCount: Int\n chunkPosition: Int\n}\n\ninput IChangeRange {\n startLineNumber: Int\n startColumn: Int\n endLineNumber: Int\n endColumn: Int\n}\n\ninput IChangesChunk {\n range: IChangeRange\n rangeLength: Int\n text: String\n rangeOffset: Int\n forceMoveMarkers: Boolean\n}\n\ntype IDelayFileStat {\n resource: String\n}\n\n# Mutations\nextend type Mutation {\n loadFile(resource: String!, options: IResolveFileOptions): IFileStat\n importFile(source: String!, targetFolder: String!): IImportResult\n updateContent(resource: String!, value: String!, options: IUpdateContentOptions!): IFileStat\n updateContentByChanges(resource: String!, changes: [IChangesChunk]!, options: IUpdateContentOptions!): IFileStat\n updateDelayContentByChanges(resource: String!, changes: [IChangesChunk]!, options: IUpdateContentOptions!): IDelayFileStat\n updateContentChunk(resource: String!, chunk: [IChunkOptions]!, options: IUpdateContentOptions!): IFileStat\n moveFile(source: String!, target: String!, overwrite: Boolean): IFileStat\n copyFile(source: String!, target: String!, overwrite: Boolean): IFileStat\n createFile(resource: String!, content: String): IFileStat\n createFolder(resource: String!): IFileStat\n rename(resource: String!, newName: String!): IFileStat\n touchFile(resource: String!): IFileStat\n del(resource: String!, useTrash: Boolean): Boolean\n watchFileChanges(resource: String!): Boolean\n unwatchFileChanges(resource: String!): Boolean\n unwatchFileChangesFsPath(fsPath: String!): Boolean\n # updateOptions(options: any): Boolean\n}\n\n# Root Query\nextend type Query {\n resolveFile(resource: String!, options: IResolveFileOptions): IFileStat\n existsFile(resource: String!): Boolean\n resolveContent(resource: String!, options: IResolveContentOptions): IContent\n resolveStreamContent(resource: String!, options: IResolveContentOptions): IStreamContent\n resolveContents(resources: [String!]!): [IContent]\n getEncoding(resource: String!): String\n\n}\n\n# Subscriptions\nextend type Subscription {\n fileData(resource: String!): [IFileChange]\n fileOperation(resource: String!): IFileOperation\n fileStreamContent(resource: String!): IStreamContent\n}"

@@ -405,2 +406,13 @@ /***/ }),

/***/ }),
/***/ "lodash":
/*!*************************!*\
!*** external "lodash" ***!
\*************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = require("lodash");
/***/ })

@@ -407,0 +419,0 @@

8

package.json
{
"name": "@files-stack/graphql-schema",
"version": "0.0.55-22",
"version": "0.0.55-23",
"description": "Sample Schema Module",

@@ -48,7 +48,7 @@ "main": "lib/index.js",

"dependencies": {
"@files-stack/core": "^0.0.55-22",
"@files-stack/server-core": "^0.0.55-22"
"@files-stack/core": "^0.0.55-23",
"@files-stack/server-core": "^0.0.55-23"
},
"devDependencies": {
"@files-stack/utils": "^0.0.55-22",
"@files-stack/utils": "^0.0.55-23",
"cross-env": "^5.1.3",

@@ -55,0 +55,0 @@ "jest": "^22.4.2",

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