New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phosphide

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phosphide - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

1

lib/appshell/plugin.d.ts

@@ -5,2 +5,3 @@ import { Container, Token } from 'phosphor-di';

import { IAppShell, IMainAreaOptions, ISideAreaOptions } from './index';
import './plugin.css';
/**

@@ -7,0 +8,0 @@ * Register the plugin contributions.

4

lib/appshell/plugin.js

@@ -223,3 +223,3 @@ /*-----------------------------------------------------------------------------

return AppShell;
})(phosphor_widget_1.Widget);
}(phosphor_widget_1.Widget));
exports.AppShell = AppShell;

@@ -371,2 +371,2 @@ /**

return SideBarHandler;
})();
}());

@@ -274,3 +274,3 @@ /*-----------------------------------------------------------------------------

return SideBar;
})(phosphor_widget_1.Widget);
}(phosphor_widget_1.Widget));
exports.SideBar = SideBar;

@@ -277,0 +277,0 @@ /**

@@ -219,3 +219,3 @@ /*-----------------------------------------------------------------------------

return CommandPaletteManager;
})();
}());
/**

@@ -222,0 +222,0 @@ * The namespace for the `CommandPaletteManager` class private data.

@@ -135,4 +135,4 @@ /*-----------------------------------------------------------------------------

// Add the new commands to the map and warn for duplicates.
for (var _i = 0; _i < items.length; _i++) {
var _a = items[_i], id = _a.id, handler = _a.handler;
for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
var _a = items_1[_i], id = _a.id, handler = _a.handler;
if (id in this._map) {

@@ -154,4 +154,4 @@ console.warn("Command '" + id + "' is already registered.");

return new phosphor_disposable_1.DisposableDelegate(function () {
for (var _i = 0; _i < added.length; _i++) {
var id = added[_i];
for (var _i = 0, added_1 = added; _i < added_1.length; _i++) {
var id = added_1[_i];
delete _this._map[id];

@@ -167,3 +167,3 @@ }

return CommandRegistry;
})();
}());
exports.CommandRegistry = CommandRegistry;

@@ -170,0 +170,0 @@ /**

@@ -27,4 +27,4 @@ /*-----------------------------------------------------------------------------

var newPlugins = [];
for (var _i = 0; _i < plugins.length; _i++) {
var plugin = plugins[_i];
for (var _i = 0, plugins_1 = plugins; _i < plugins_1.length; _i++) {
var plugin = plugins_1[_i];
if (plugin && !pluginSet.has(plugin)) {

@@ -36,4 +36,4 @@ pluginSet.add(plugin);

// Register the new plugins.
for (var _a = 0; _a < newPlugins.length; _a++) {
var plugin = newPlugins[_a];
for (var _a = 0, newPlugins_1 = newPlugins; _a < newPlugins_1.length; _a++) {
var plugin = newPlugins_1[_a];
if (plugin.register) {

@@ -45,4 +45,4 @@ plugin.register(container);

var promises = [];
for (var _b = 0; _b < newPlugins.length; _b++) {
var plugin = newPlugins[_b];
for (var _b = 0, newPlugins_2 = newPlugins; _b < newPlugins_2.length; _b++) {
var plugin = newPlugins_2[_b];
if (plugin.resolve) {

@@ -49,0 +49,0 @@ var result = plugin.resolve(container);

@@ -414,3 +414,3 @@ /*-----------------------------------------------------------------------------

return Application;
})();
}());
exports.Application = Application;

@@ -417,0 +417,0 @@ /**

@@ -160,3 +160,3 @@ /*-----------------------------------------------------------------------------

return ApplicationShell;
})(phosphor_widget_1.Widget);
}(phosphor_widget_1.Widget));
exports.ApplicationShell = ApplicationShell;

@@ -297,2 +297,2 @@ /**

return SideBarHandler;
})();
}());

@@ -107,3 +107,3 @@ /*-----------------------------------------------------------------------------

return ExtensionRegistry;
})();
}());
exports.ExtensionRegistry = ExtensionRegistry;

@@ -110,0 +110,0 @@ /**

@@ -105,3 +105,3 @@ /*-----------------------------------------------------------------------------

return ServiceRegistry;
})();
}());
exports.ServiceRegistry = ServiceRegistry;

@@ -108,0 +108,0 @@ /**

@@ -5,2 +5,3 @@ import { Message } from 'phosphor-messaging';

import { Title, Widget } from 'phosphor-widget';
import './sidebar.css';
/**

@@ -7,0 +8,0 @@ * A widget which displays titles as a row of exclusive buttons.

@@ -274,3 +274,3 @@ /*-----------------------------------------------------------------------------

return SideBar;
})(phosphor_widget_1.Widget);
}(phosphor_widget_1.Widget));
exports.SideBar = SideBar;

@@ -277,0 +277,0 @@ /**

@@ -30,5 +30,2 @@ /*-----------------------------------------------------------------------------

]);
app.palette.commandTriggered.connect(function () {
app.commands.execute('command-palette:hide');
});
app.shell.addToLeftArea(widget);

@@ -35,0 +32,0 @@ return Promise.resolve();

@@ -53,3 +53,3 @@ /*-----------------------------------------------------------------------------

return ABCCommandRegistry;
})();
}());
exports.ABCCommandRegistry = ABCCommandRegistry;

@@ -99,4 +99,4 @@ /**

// Add the new commands to the map and warn for duplicates.
for (var _i = 0; _i < items.length; _i++) {
var _a = items[_i], id = _a.id, handler = _a.handler;
for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
var _a = items_1[_i], id = _a.id, handler = _a.handler;
if (id in this._commands) {

@@ -118,4 +118,4 @@ console.warn("Command '" + id + "' is already registered.");

return new phosphor_disposable_1.DisposableDelegate(function () {
for (var _i = 0; _i < added.length; _i++) {
var id = added[_i];
for (var _i = 0, added_1 = added; _i < added_1.length; _i++) {
var id = added_1[_i];
delete _this._commands[id];

@@ -151,3 +151,3 @@ }

return CommandRegistry;
})(ABCCommandRegistry);
}(ABCCommandRegistry));
exports.CommandRegistry = CommandRegistry;

@@ -154,0 +154,0 @@ /**

@@ -46,3 +46,3 @@ /*-----------------------------------------------------------------------------

return ABCPaletteRegistry;
})();
}());
exports.ABCPaletteRegistry = ABCPaletteRegistry;

@@ -147,3 +147,3 @@ /**

return PaletteRegistry;
})(ABCPaletteRegistry);
}(ABCPaletteRegistry));
exports.PaletteRegistry = PaletteRegistry;

@@ -171,8 +171,16 @@ /**

/**
* A flag indicating whether the platform is Mac.
*/
var IS_MAC = !!navigator.platform.match(/Mac/i);
/**
* How to format Accel (Cmd on Mac, Ctrl elsewhere)
*/
var ACCEL = IS_MAC ? 'Cmd' : 'Ctrl';
/**
*
*/
function formatSequence(seq) {
return seq.map(function (s) { return s.trim().replace(/\s+/g, '-'); }).join(' ');
return seq.map(function (s) { return s.trim().replace(/\s+/g, '-').replace('Accel', ACCEL); }).join(' ');
}
Private.formatSequence = formatSequence;
})(Private || (Private = {}));

@@ -47,3 +47,3 @@ /*-----------------------------------------------------------------------------

return ABCShortcutRegistry;
})();
}());
exports.ABCShortcutRegistry = ABCShortcutRegistry;

@@ -124,4 +124,4 @@ /**

// Convert the shortcut items into key bindings.
for (var _i = 0; _i < items.length; _i++) {
var _a = items[_i], sequence = _a.sequence, selector = _a.selector, command = _a.command;
for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
var _a = items_1[_i], sequence = _a.sequence, selector = _a.selector, command = _a.command;
// Log a warning if the command already has a shortcut.

@@ -153,4 +153,4 @@ if (command in this._sequences) {

addedResult.dispose();
for (var _i = 0; _i < added.length; _i++) {
var id = added[_i];
for (var _i = 0, added_1 = added; _i < added_1.length; _i++) {
var id = added_1[_i];
delete _this._sequences[id];

@@ -173,3 +173,3 @@ }

return ShortcutRegistry;
})(ABCShortcutRegistry);
}(ABCShortcutRegistry));
exports.ShortcutRegistry = ShortcutRegistry;

@@ -176,0 +176,0 @@ /**

@@ -81,4 +81,4 @@ /*-----------------------------------------------------------------------------

var bindings = [];
for (var _i = 0; _i < items.length; _i++) {
var item = items[_i];
for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
var item = items_1[_i];
var id = item.command;

@@ -158,3 +158,3 @@ var arr = this._commandShortcutMap[id];

return ShortcutManager;
})();
}());
exports.ShortcutManager = ShortcutManager;

@@ -161,0 +161,0 @@ /**

{
"name": "phosphide",
"version": "0.9.2",
"version": "0.9.3",
"description": "Slightly opinionated scaffolding for building plugin-based IDE-style applications.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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