kuzzle 2.16.2 → 2.16.3

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.
@@ -265,9 +265,7 @@ class PluginsManager {
265
265
 
266
266
  debug('[%s] plugin started', plugin.name);
267
267
 
268
- if (! plugin.application) {
269
- this.loadedPlugins.push(plugin.name);
270
- }
268
+ this.loadedPlugins.push(plugin.name);
271
269
 
272
270
  return null;
273
271
  });
@@ -54,25 +54,21 @@ const realtime_1 = __importDefault(require("../core/realtime"));
54
54
  const cluster_1 = __importDefault(require("../cluster"));
55
55
  const package_json_1 = require("../../package.json");
56
56
  const BACKEND_IMPORT_KEY = 'backend:init:import';
57
- Reflect.defineProperty(global, '_kuzzle', {
58
- value: null,
59
- writable: true,
60
- });
61
- /* eslint-disable dot-notation */
57
+ let _kuzzle = null;
62
58
  Reflect.defineProperty(global, 'kuzzle', {
63
59
  configurable: true,
64
60
  enumerable: false,
65
61
  get() {
66
- if (global['_kuzzle'] === null) {
62
+ if (_kuzzle === null) {
67
63
  throw new Error('Kuzzle instance not found. Did you try to use a live-only feature before starting your application?');
68
64
  }
69
- return global['_kuzzle'];
65
+ return _kuzzle;
70
66
  },
71
67
  set(value) {
72
- if (global['_kuzzle'] !== null) {
68
+ if (_kuzzle !== null) {
73
69
  throw new Error('Cannot build a Kuzzle instance: another one already exists');
74
70
  }
75
- global['_kuzzle'] = value;
71
+ _kuzzle = value;
76
72
  },
77
73
  });
78
74
  class Kuzzle extends kuzzleEventEmitter_1.default {
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle",
3
- "version": "2.16.2",
3
+ "version": "2.16.3",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.16.2",
4
+ "version": "2.16.3",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "bin": {
7
7
  "kuzzle": "bin/start-kuzzle-server"