@openfin/core 38.81.41 → 38.81.42

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.
@@ -1645,7 +1645,6 @@ declare type BaseConfig = {
1645
1645
  devToolsPort?: number;
1646
1646
  installerUI?: boolean;
1647
1647
  runtime?: RuntimeConfig;
1648
- services?: ServiceConfig[];
1649
1648
  appAssets?: [
1650
1649
  {
1651
1650
  src: string;
@@ -9268,6 +9267,7 @@ declare namespace OpenFin_2 {
9268
9267
  WindowEvents
9269
9268
  }
9270
9269
  }
9270
+ export { OpenFin_2 as OpenFin }
9271
9271
  export default OpenFin_2;
9272
9272
 
9273
9273
  declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
@@ -12066,11 +12066,6 @@ declare type SentMessage<Value> = Promise<Value> & {
12066
12066
  messageId: ReturnType<Environment['getNextMessageId']>;
12067
12067
  };
12068
12068
 
12069
- declare type ServiceConfig = {
12070
- name: string;
12071
- manifestUrl: string;
12072
- };
12073
-
12074
12069
  /**
12075
12070
  * @interface
12076
12071
  */
@@ -1645,7 +1645,6 @@ declare type BaseConfig = {
1645
1645
  devToolsPort?: number;
1646
1646
  installerUI?: boolean;
1647
1647
  runtime?: RuntimeConfig;
1648
- services?: ServiceConfig[];
1649
1648
  appAssets?: [
1650
1649
  {
1651
1650
  src: string;
@@ -9268,6 +9267,7 @@ declare namespace OpenFin_2 {
9268
9267
  WindowEvents
9269
9268
  }
9270
9269
  }
9270
+ export { OpenFin_2 as OpenFin }
9271
9271
  export default OpenFin_2;
9272
9272
 
9273
9273
  declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
@@ -12066,11 +12066,6 @@ declare type SentMessage<Value> = Promise<Value> & {
12066
12066
  messageId: ReturnType<Environment['getNextMessageId']>;
12067
12067
  };
12068
12068
 
12069
- declare type ServiceConfig = {
12070
- name: string;
12071
- manifestUrl: string;
12072
- };
12073
-
12074
12069
  /**
12075
12070
  * @interface
12076
12071
  */
@@ -1645,7 +1645,6 @@ declare type BaseConfig = {
1645
1645
  devToolsPort?: number;
1646
1646
  installerUI?: boolean;
1647
1647
  runtime?: RuntimeConfig;
1648
- services?: ServiceConfig[];
1649
1648
  appAssets?: [
1650
1649
  {
1651
1650
  src: string;
@@ -9268,6 +9267,7 @@ declare namespace OpenFin_2 {
9268
9267
  WindowEvents
9269
9268
  }
9270
9269
  }
9270
+ export { OpenFin_2 as OpenFin }
9271
9271
  export default OpenFin_2;
9272
9272
 
9273
9273
  declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
@@ -12066,11 +12066,6 @@ declare type SentMessage<Value> = Promise<Value> & {
12066
12066
  messageId: ReturnType<Environment['getNextMessageId']>;
12067
12067
  };
12068
12068
 
12069
- declare type ServiceConfig = {
12070
- name: string;
12071
- manifestUrl: string;
12072
- };
12073
-
12074
12069
  /**
12075
12070
  * @interface
12076
12071
  */
package/out/mock.d.ts CHANGED
@@ -1677,7 +1677,6 @@ declare type BaseConfig = {
1677
1677
  devToolsPort?: number;
1678
1678
  installerUI?: boolean;
1679
1679
  runtime?: RuntimeConfig;
1680
- services?: ServiceConfig[];
1681
1680
  appAssets?: [
1682
1681
  {
1683
1682
  src: string;
@@ -9583,6 +9582,7 @@ declare namespace OpenFin_2 {
9583
9582
  WindowEvents
9584
9583
  }
9585
9584
  }
9585
+ export { OpenFin_2 as OpenFin }
9586
9586
  export default OpenFin_2;
9587
9587
 
9588
9588
  declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
@@ -12459,11 +12459,6 @@ declare type SentMessage<Value> = Promise<Value> & {
12459
12459
  messageId: ReturnType<Environment['getNextMessageId']>;
12460
12460
  };
12461
12461
 
12462
- declare type ServiceConfig = {
12463
- name: string;
12464
- manifestUrl: string;
12465
- };
12466
-
12467
12462
  /**
12468
12463
  * @interface
12469
12464
  */
package/out/mock.js CHANGED
@@ -5,11 +5,28 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var require$$0 = require('events');
6
6
  var require$$3 = require('lodash');
7
7
 
8
+ function _mergeNamespaces(n, m) {
9
+ m.forEach(function (e) {
10
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default' && !(k in n)) {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ });
20
+ return Object.freeze(n);
21
+ }
22
+
8
23
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
24
 
10
- var mock = {};
25
+ function getDefaultExportFromCjs (x) {
26
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
27
+ }
11
28
 
12
- var OpenFin$1 = {};
29
+ var OpenFin$2 = {};
13
30
 
14
31
  var events = {};
15
32
 
@@ -262,9 +279,16 @@ events.WindowEvents = WindowEvents;
262
279
  Object.defineProperty(exports, "__esModule", { value: true });
263
280
  // Deprecated shim to preserve v30 namespace names
264
281
  __exportStar(events, exports);
265
- } (OpenFin$1));
282
+ } (OpenFin$2));
283
+
284
+ var OpenFin = /*@__PURE__*/getDefaultExportFromCjs(OpenFin$2);
285
+
286
+ var OpenFin$1 = /*#__PURE__*/_mergeNamespaces({
287
+ __proto__: null,
288
+ default: OpenFin
289
+ }, [OpenFin$2]);
266
290
 
267
- var fin$1 = {};
291
+ var fin$2 = {};
268
292
 
269
293
  var system = {};
270
294
 
@@ -16843,8 +16867,8 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
16843
16867
  __exportStar(Instance, exports);
16844
16868
  } (snapshotSource));
16845
16869
 
16846
- Object.defineProperty(fin$1, "__esModule", { value: true });
16847
- fin$1.Fin = void 0;
16870
+ Object.defineProperty(fin$2, "__esModule", { value: true });
16871
+ var Fin_1 = fin$2.Fin = void 0;
16848
16872
  const events_1$3 = require$$0;
16849
16873
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
16850
16874
  const index_1 = system;
@@ -16890,7 +16914,7 @@ class Fin extends events_1$3.EventEmitter {
16890
16914
  });
16891
16915
  }
16892
16916
  }
16893
- fin$1.Fin = Fin;
16917
+ Fin_1 = fin$2.Fin = Fin;
16894
16918
 
16895
16919
  var transport = {};
16896
16920
 
@@ -17023,7 +17047,7 @@ var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFie
17023
17047
  };
17024
17048
  var _Transport_wire, _Transport_fin;
17025
17049
  Object.defineProperty(transport, "__esModule", { value: true });
17026
- transport.Transport = void 0;
17050
+ var Transport_1 = transport.Transport = void 0;
17027
17051
  const events_1$1 = require$$0;
17028
17052
  const wire_1 = wire;
17029
17053
  const transport_errors_1 = transportErrors;
@@ -17235,13 +17259,13 @@ class Transport extends events_1$1.EventEmitter {
17235
17259
  return true;
17236
17260
  }
17237
17261
  }
17238
- transport.Transport = Transport;
17262
+ Transport_1 = transport.Transport = Transport;
17239
17263
  _Transport_wire = new WeakMap(), _Transport_fin = new WeakMap();
17240
17264
 
17241
17265
  var mockEnvironment = {};
17242
17266
 
17243
17267
  Object.defineProperty(mockEnvironment, "__esModule", { value: true });
17244
- mockEnvironment.MockEnvironment = void 0;
17268
+ var MockEnvironment_1 = mockEnvironment.MockEnvironment = void 0;
17245
17269
  const me_1 = me;
17246
17270
  class MockEnvironment {
17247
17271
  constructor() {
@@ -17318,12 +17342,12 @@ class MockEnvironment {
17318
17342
  throw new Error('Method not implemented.');
17319
17343
  }
17320
17344
  }
17321
- mockEnvironment.MockEnvironment = MockEnvironment;
17345
+ MockEnvironment_1 = mockEnvironment.MockEnvironment = MockEnvironment;
17322
17346
 
17323
17347
  var mockWire = {};
17324
17348
 
17325
17349
  Object.defineProperty(mockWire, "__esModule", { value: true });
17326
- mockWire.MockWire = void 0;
17350
+ var MockWire_1 = mockWire.MockWire = void 0;
17327
17351
  /* eslint-disable @typescript-eslint/no-unused-vars */
17328
17352
  const events_1 = require$$0;
17329
17353
  class MockWire extends events_1.EventEmitter {
@@ -17347,24 +17371,18 @@ class MockWire extends events_1.EventEmitter {
17347
17371
  super();
17348
17372
  }
17349
17373
  }
17350
- mockWire.MockWire = MockWire;
17374
+ MockWire_1 = mockWire.MockWire = MockWire;
17351
17375
 
17352
- Object.defineProperty(mock, "__esModule", { value: true });
17353
- exports.fin = mock.fin = void 0;
17354
- const OpenFin = OpenFin$1;
17355
- const fin_1 = fin$1;
17356
- const transport_1 = transport;
17357
- const mockEnvironment_1 = mockEnvironment;
17358
- const mockWire_1 = mockWire;
17359
- exports.fin = mock.fin = ((typeof window !== 'undefined' && window?.fin) ||
17376
+ const fin$1 = ((typeof window !== 'undefined' && window?.fin) ||
17360
17377
  (() => {
17361
- const environment = new mockEnvironment_1.MockEnvironment();
17362
- const transport = new transport_1.Transport(mockWire_1.MockWire, environment, {
17378
+ const environment = new MockEnvironment_1();
17379
+ const transport = new Transport_1(MockWire_1, environment, {
17363
17380
  uuid: '',
17364
17381
  name: ''
17365
17382
  });
17366
- return new fin_1.Fin(transport);
17383
+ return new Fin_1(transport);
17367
17384
  })());
17368
- var _default = mock.default = OpenFin;
17369
17385
 
17370
- exports.default = _default;
17386
+ exports.OpenFin = OpenFin$1;
17387
+ exports.default = OpenFin$1;
17388
+ exports.fin = fin$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "38.81.41",
3
+ "version": "38.81.42",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",
@@ -23,7 +23,8 @@
23
23
  "ci:publish": "npm publish",
24
24
  "test": "run-p test:*",
25
25
  "test:sample": "tsc -p test/tsconfig.json",
26
- "test:imports": "ts-node scripts/verify-imports"
26
+ "test:imports": "ts-node scripts/verify-imports",
27
+ "test:mocha": "ts-mocha -R dot --exit \"./src/**/__tests__/**.test.ts\""
27
28
  },
28
29
  "files": [
29
30
  "out/*",