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

atom-ide-base

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-ide-base - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

commons-atom/ProviderRegistry.d.ts

@@ -11,6 +11,8 @@ import { Disposable, TextEditor } from "atom";

removeProvider(provider: Provider): void;
getProviderForEditorQuick(editor: TextEditor): Provider | undefined;
getProviderForEditor(editor: TextEditor): Provider | null;
getAllProvidersForEditor(editor: TextEditor): Iterable<Provider>;
findProviderQuick(grammar: string): Provider | undefined;
findProvider(grammar: string): Provider | null;
findAllProviders(grammar: string): Iterable<Provider>;
}

@@ -27,2 +27,6 @@ "use strict";

}
getProviderForEditorQuick(editor) {
const grammar = editor.getGrammar().scopeName;
return this.findProviderQuick(grammar);
}
getProviderForEditor(editor) {

@@ -36,2 +40,8 @@ const grammar = editor.getGrammar().scopeName;

}
findProviderQuick(grammar) {
return this.providers.find((provider) => {
var _a;
(_a = provider.grammarScopes) === null || _a === void 0 ? void 0 : _a.includes(grammar);
});
}
findProvider(grammar) {

@@ -52,2 +62,2 @@ for (const provider of this.findAllProviders(grammar)) {

exports.ProviderRegistry = ProviderRegistry;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvdmlkZXJSZWdpc3RyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy1jb21tb25zLWF0b20vUHJvdmlkZXJSZWdpc3RyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBNkM7QUFTN0MsTUFBYSxnQkFBZ0I7SUFHM0I7UUFDRSxJQUFJLENBQUMsU0FBUyxHQUFHLEVBQUUsQ0FBQTtJQUNyQixDQUFDO0lBRUQsV0FBVyxDQUFDLFFBQWtCO1FBQzV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KipcclxuICAgKiBJdGVyYXRlcyBvdmVyIGFsbCBwcm92aWRlcnMgbWF0Y2hpbmcgdGhlIGdyYW1tYXIsIGluIHByaW9yaXR5IG9yZGVyLlxyXG4gICAqL1xyXG4gICpmaW5kQWxsUHJvdmlkZXJzKGdyYW1tYXI6IHN0cmluZyk6IEl0ZXJhYmxlPFByb3ZpZGVyPiB7XHJcbiAgICBmb3IgKGNvbnN0IHByb3ZpZGVyIG9mIHRoaXMucHJvdmlkZXJzKSB7XHJcbiAgICAgIGlmIChwcm92aWRlci5ncmFtbWFyU2NvcGVzID09IG51bGwgfHwgcHJvdmlkZXIuZ3JhbW1hclNjb3Blcy5pbmRleE9mKGdyYW1tYXIpICE9PSAtMSkge1xyXG4gICAgICAgIHlpZWxkIHByb3ZpZGVyXHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19

2

package.json
{
"name": "atom-ide-base",
"version": "1.5.0",
"version": "1.5.1",
"main": "package/main.js",

@@ -5,0 +5,0 @@ "types": "./types-packages/main.d.ts",

@@ -36,2 +36,7 @@ import { Disposable, TextEditor } from "atom"

getProviderForEditorQuick(editor: TextEditor): Provider | undefined {
const grammar = editor.getGrammar().scopeName
return this.findProviderQuick(grammar)
}
// TODO deprecate since there can be N providers.

@@ -49,2 +54,8 @@ getProviderForEditor(editor: TextEditor): Provider | null {

findProviderQuick(grammar: string): Provider | undefined {
return this.providers.find((provider) => {
provider.grammarScopes?.includes(grammar)
})
}
findProvider(grammar: string): Provider | null {

@@ -51,0 +62,0 @@ for (const provider of this.findAllProviders(grammar)) {

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