@eclipse-glsp-examples/workflow-server-bundled 2.4.0-next.120 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp-examples/workflow-server-bundled",
3
- "version": "2.4.0-next.120+867d5a7",
3
+ "version": "2.4.0",
4
4
  "description": "GLSP node server for the workflow example (bundled)",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "867d5a7e4136544e79983e45438f0a4ae051d221"
52
+ "gitHead": "d3a75df3c5a6d12fb9c100bfabb4fd1c7ecc1361"
53
53
  }
@@ -5403,7 +5403,7 @@ var RedoAction;
5403
5403
  "use strict";
5404
5404
 
5405
5405
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5406
- exports.FitToScreenAction = exports.CenterAction = void 0;
5406
+ exports.MoveViewportAction = exports.FitToScreenAction = exports.CenterAction = void 0;
5407
5407
  const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
5408
5408
  const base_protocol_1 = __webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js");
5409
5409
  var CenterAction;
@@ -5441,6 +5441,18 @@ var FitToScreenAction;
5441
5441
  }
5442
5442
  FitToScreenAction.create = create;
5443
5443
  })(FitToScreenAction || (exports.FitToScreenAction = FitToScreenAction = {}));
5444
+ var MoveViewportAction;
5445
+ (function (MoveViewportAction) {
5446
+ MoveViewportAction.KIND = 'moveViewport';
5447
+ function is(object) {
5448
+ return base_protocol_1.Action.hasKind(object, MoveViewportAction.KIND);
5449
+ }
5450
+ MoveViewportAction.is = is;
5451
+ function create(options) {
5452
+ return { kind: MoveViewportAction.KIND, ...options };
5453
+ }
5454
+ MoveViewportAction.create = create;
5455
+ })(MoveViewportAction || (exports.MoveViewportAction = MoveViewportAction = {}));
5444
5456
 
5445
5457
 
5446
5458
  /***/ }),
@@ -7585,6 +7597,16 @@ var Disposable;
7585
7597
  return { dispose: cb };
7586
7598
  }
7587
7599
  Disposable.create = create;
7600
+ /**
7601
+ * Disposes the given object if it is a {@link Disposable}.
7602
+ * @param value The object that should be disposed
7603
+ */
7604
+ function dispose(value) {
7605
+ if (is(value)) {
7606
+ value.dispose();
7607
+ }
7608
+ }
7609
+ Disposable.dispose = dispose;
7588
7610
  })(Disposable || (exports.Disposable = Disposable = {}));
7589
7611
  /**
7590
7612
  * Reusable base class to manage a collection of {@link Disposable}s.
@@ -67825,7 +67847,6 @@ exports.createWinstonInstance = createWinstonInstance;
67825
67847
  * @param baseLoggerCreator The underling global {@link winston.Logger} instance.
67826
67848
  */
67827
67849
  function configureWinstonLogger(context, options, rebind = true, baseLoggerCreator = createWinstonInstance) {
67828
- const baseLogger = baseLoggerCreator(options);
67829
67850
  if (rebind) {
67830
67851
  if (context.isBound(common_1.Logger)) {
67831
67852
  context.unbind(common_1.Logger);
@@ -67834,12 +67855,18 @@ function configureWinstonLogger(context, options, rebind = true, baseLoggerCreat
67834
67855
  context.unbind(common_1.LoggerFactory);
67835
67856
  }
67836
67857
  }
67837
- context.bind(common_1.Logger).toDynamicValue(dynamicContext => new winston_logger_1.WinstonLogger(baseLogger, (0, common_1.getRequestParentName)(dynamicContext)));
67838
67858
  context.bind(common_1.LoggerFactory).toFactory(dynamicContext => (caller) => {
67839
67859
  const logger = dynamicContext.container.get(common_1.Logger);
67840
67860
  logger.caller = caller;
67841
67861
  return logger;
67842
67862
  });
67863
+ // if no logging is enabled, bind the NullLogger
67864
+ if (!options.consoleLog && !options.fileLog) {
67865
+ context.bind(common_1.Logger).to(common_1.NullLogger).inSingletonScope();
67866
+ return;
67867
+ }
67868
+ const baseLogger = baseLoggerCreator(options);
67869
+ context.bind(common_1.Logger).toDynamicValue(dynamicContext => new winston_logger_1.WinstonLogger(baseLogger, (0, common_1.getRequestParentName)(dynamicContext)));
67843
67870
  }
67844
67871
  exports.configureWinstonLogger = configureWinstonLogger;
67845
67872