Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gedit/resource

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gedit/resource - npm Package Compare versions

Comparing version 0.1.66 to 0.1.67

8

lib/browser/resource-autosave-service.d.ts

@@ -25,3 +25,5 @@ import type { TextDocumentContentChangeEvent } from 'vscode-languageserver-protocol';

}>;
protected readonly onDidSaveContentEmitter: Emitter<ResourceChangeEvent<any>>;
protected readonly onDidSaveContentEmitter: Emitter<ResourceChangeEvent<any> & {
content: string;
}>;
readonly toDispose: DisposableCollection;

@@ -40,3 +42,5 @@ protected readonly onDirtyChangedEmitter: Emitter<void>;

}>;
readonly onDidSaveContent: import("@gedit/utils").Event<ResourceChangeEvent<any>>;
readonly onDidSaveContent: import("@gedit/utils").Event<ResourceChangeEvent<any> & {
content: string;
}>;
readonly onDidChangeValid: import("@gedit/utils").Event<void>;

@@ -43,0 +47,0 @@ readonly onSyncContent: import("@gedit/utils").Event<string | undefined>;

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -331,3 +342,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

_a.sent();
this.onDidSaveContentEmitter.fire(lastChanged);
this.onDidSaveContentEmitter.fire(__assign(__assign({}, lastChanged), { content: content }));
console.log("-- save (".concat(this.resource.uri.displayName, ") --"));

@@ -334,0 +345,0 @@ this.contentChanges.length = 0;

{
"name": "@gedit/resource",
"version": "0.1.66",
"version": "0.1.67",
"license": "MIT",

@@ -12,4 +12,4 @@ "main": "lib/common/index",

"dependencies": {
"@gedit/application-common": "^0.1.63",
"@gedit/utils": "^0.1.65",
"@gedit/application-common": "^0.1.64",
"@gedit/utils": "^0.1.66",
"vscode-languageserver-protocol": "^3.15.3"

@@ -32,3 +32,3 @@ },

},
"gitHead": "f76d857b72ca85cb6090328623331a727eaf2815"
"gitHead": "b63ded2ca7a5d825937e4c58fb0b17d471bfb315"
}

@@ -33,3 +33,3 @@ import { injectable, inject } from 'inversify';

protected readonly onPreSaveContentEmitter = new Emitter<{ content: string }>();
protected readonly onDidSaveContentEmitter = new Emitter<ResourceChangeEvent>();
protected readonly onDidSaveContentEmitter = new Emitter<ResourceChangeEvent & { content: string }>();
readonly toDispose = new DisposableCollection();

@@ -228,3 +228,3 @@ protected readonly onDirtyChangedEmitter = new Emitter<void>();

await Resource.save(this.resource, { content, options: {encoding: this.options.encoding, version}}, token);
this.onDidSaveContentEmitter.fire(lastChanged);
this.onDidSaveContentEmitter.fire({ ...lastChanged, content });
console.log(`-- save (${this.resource.uri.displayName}) --`);

@@ -231,0 +231,0 @@ this.contentChanges.length = 0;

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