@openfin/core 28.71.2 → 28.71.5

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": "@openfin/core",
3
- "version": "28.71.2",
3
+ "version": "28.71.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
@@ -2,11 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateConfig = exports.normalizeConfig = void 0;
4
4
  const fs = require("fs");
5
+ const url_1 = require("url");
5
6
  const wire_1 = require("../transport/wire");
6
7
  const promises_1 = require("./promises");
7
8
  const http_1 = require("./http");
8
9
  async function readLocalConfig(location) {
9
- const txt = await promises_1.promisify(fs.readFile)(location);
10
+ let pathToFile = location;
11
+ if (location.startsWith('file')) {
12
+ pathToFile = url_1.fileURLToPath(location);
13
+ }
14
+ const txt = await promises_1.promisify(fs.readFile)(pathToFile);
10
15
  return JSON.parse(txt.toString());
11
16
  }
12
17
  async function loadConfig(config) {