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.64 to 0.1.65

2

lib/browser/index.js

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -66,5 +66,10 @@ "use strict";

};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};

@@ -212,3 +217,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

// TODO 没有触发DidChange
console.log("-- reload (" + this.resource.uri.displayName + ") --");
console.log("-- reload (".concat(this.resource.uri.displayName, ") --"));
this.contentChanges.length = 0;

@@ -318,3 +323,3 @@ this.resourceVersion = this.resource.version;

_a.trys.push([1, 3, , 4]);
changes = __spread(this.contentChanges);
changes = __spreadArray([], __read(this.contentChanges), false);
if (changes.length === 0)

@@ -330,3 +335,3 @@ return [2 /*return*/];

this.onDidSaveContentEmitter.fire(lastChanged);
console.log("-- save (" + this.resource.uri.displayName + ") --");
console.log("-- save (".concat(this.resource.uri.displayName, ") --"));
this.contentChanges.length = 0;

@@ -398,4 +403,4 @@ this.resourceVersion = this.resource.version;

ResourceAutoSaveService = __decorate([
inversify_1.injectable(),
__param(0, inversify_1.inject(exports.ResourceAutoSaveOptions)),
(0, inversify_1.injectable)(),
__param(0, (0, inversify_1.inject)(exports.ResourceAutoSaveOptions)),
__metadata("design:paramtypes", [Object])

@@ -402,0 +407,0 @@ ], ResourceAutoSaveService);

@@ -57,7 +57,7 @@ "use strict";

__decorate([
inversify_1.inject(browser_1.ContextKeyService),
(0, inversify_1.inject)(browser_1.ContextKeyService),
__metadata("design:type", browser_1.ContextKeyService)
], ResourceContextKey.prototype, "contextKeyService", void 0);
__decorate([
inversify_1.postConstruct(),
(0, inversify_1.postConstruct)(),
__metadata("design:type", Function),

@@ -68,3 +68,3 @@ __metadata("design:paramtypes", []),

ResourceContextKey = __decorate([
inversify_1.injectable()
(0, inversify_1.injectable)()
], ResourceContextKey);

@@ -71,0 +71,0 @@ return ResourceContextKey;

@@ -15,5 +15,5 @@ "use strict";

bind(resource_context_key_1.ResourceContextKey).toSelf().inSingletonScope();
utils_1.bindContributionProvider(bind, resource_1.ResourceResolver);
utils_1.bindContributionProvider(bind, resource_ref_1.ResourceRefProviderContribution);
(0, utils_1.bindContributionProvider)(bind, resource_1.ResourceResolver);
(0, utils_1.bindContributionProvider)(bind, resource_ref_1.ResourceRefProviderContribution);
});
//# sourceMappingURL=resource-frontend-module.js.map

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -109,4 +109,5 @@ "use strict";

DefaultResourceRefProvider = __decorate([
inversify_1.injectable(),
__param(0, inversify_1.inject(utils_1.ContributionProvider)), __param(0, inversify_1.named(exports.ResourceRefProviderContribution)),
(0, inversify_1.injectable)(),
__param(0, (0, inversify_1.inject)(utils_1.ContributionProvider)),
__param(0, (0, inversify_1.named)(exports.ResourceRefProviderContribution)),
__metadata("design:paramtypes", [Object])

@@ -113,0 +114,0 @@ ], DefaultResourceRefProvider);

@@ -127,3 +127,3 @@ "use strict";

if (!ResourceError.NotFound.is(e_1) && !ResourceError.OutOfSync.is(e_1)) {
console.error("Failed to apply incremental changes to '" + resource.uri.toString() + "':", e_1);
console.error("Failed to apply incremental changes to '".concat(resource.uri.toString(), "':"), e_1);
}

@@ -217,3 +217,3 @@ return [2 /*return*/, false];

return [7 /*endfinally*/];
case 10: return [2 /*return*/, Promise.reject(new Error("A resource provider for '" + uri.toString() + "' is not registered."))];
case 10: return [2 /*return*/, Promise.reject(new Error("A resource provider for '".concat(uri.toString(), "' is not registered.")))];
}

@@ -224,4 +224,5 @@ });

DefaultResourceProvider = __decorate([
inversify_1.injectable(),
__param(0, inversify_1.inject(utils_1.ContributionProvider)), __param(0, inversify_1.named(exports.ResourceResolver)),
(0, inversify_1.injectable)(),
__param(0, (0, inversify_1.inject)(utils_1.ContributionProvider)),
__param(0, (0, inversify_1.named)(exports.ResourceResolver)),
__metadata("design:paramtypes", [Object])

@@ -270,3 +271,3 @@ ], DefaultResourceProvider);

if (this.resources.has(resourceUri)) {
throw new Error("Cannot add already existing in-memory resource '" + resourceUri + "'");
throw new Error("Cannot add already existing in-memory resource '".concat(resourceUri, "'"));
}

@@ -281,3 +282,3 @@ var resource = new MutableResource(uri, contents, function () { return _this.resources.delete(resourceUri); });

if (!resource) {
throw new Error("Cannot update non-existed in-memory resource '" + resourceUri + "'");
throw new Error("Cannot update non-existed in-memory resource '".concat(resourceUri, "'"));
}

@@ -290,3 +291,3 @@ resource.saveContents(contents);

if (!this.resources.has(uriString)) {
throw new Error("In memory '" + uriString + "' resource does not exist.");
throw new Error("In memory '".concat(uriString, "' resource does not exist."));
}

@@ -296,3 +297,3 @@ return this.resources.get(uriString);

InMemoryResources = __decorate([
inversify_1.injectable()
(0, inversify_1.injectable)()
], InMemoryResources);

@@ -299,0 +300,0 @@ return InMemoryResources;

{
"name": "@gedit/resource",
"version": "0.1.64",
"version": "0.1.65",
"license": "MIT",

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

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

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

},
"gitHead": "d4768cc579938358b825db53ce7c65445a131850"
"gitHead": "db74e452a213a016b3be82938fe68df8fdde2e6b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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