fraim-hub 2.0.249 → 2.0.250
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.
|
@@ -105,7 +105,8 @@ function ensureWordSideload(projectPath, httpPort) {
|
|
|
105
105
|
const FLAG_VERSION = 'v4-dynamic-port';
|
|
106
106
|
const expectedFlag = `${FLAG_VERSION}:${httpPort}`;
|
|
107
107
|
const flagPath = path_1.default.join(electron_1.app.getPath('userData'), 'word-sideloaded.flag');
|
|
108
|
-
|
|
108
|
+
const existingFlag = fs_1.default.existsSync(flagPath) ? fs_1.default.readFileSync(flagPath, 'utf8') : null;
|
|
109
|
+
if ((0, office_sideload_1.shouldSkipSideloadForFlag)(existingFlag, expectedFlag, (0, office_sideload_1.isSideloaded)()))
|
|
109
110
|
return;
|
|
110
111
|
if (httpPort > 0) {
|
|
111
112
|
const result = (0, office_sideload_1.sideloadManifest)(projectPath, { httpPort, userDataDir: electron_1.app.getPath('userData') });
|
|
@@ -23,6 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.manifestXmlForPort = manifestXmlForPort;
|
|
26
|
+
exports.shouldSkipSideloadForFlag = shouldSkipSideloadForFlag;
|
|
26
27
|
exports.winDeveloperManifestSubkey = winDeveloperManifestSubkey;
|
|
27
28
|
exports.isSideloaded = isSideloaded;
|
|
28
29
|
exports.sideloadManifest = sideloadManifest;
|
|
@@ -64,6 +65,9 @@ function generatedManifestPath(entry, userDataDir) {
|
|
|
64
65
|
function manifestXmlForPort(xml, httpPort) {
|
|
65
66
|
return xml.replace(/https?:\/\/(?:localhost|127\.0\.0\.1):43091/g, `http://127.0.0.1:${httpPort}`);
|
|
66
67
|
}
|
|
68
|
+
function shouldSkipSideloadForFlag(existingFlag, expectedFlag, sideloaded) {
|
|
69
|
+
return existingFlag?.trim() === expectedFlag && sideloaded;
|
|
70
|
+
}
|
|
67
71
|
function prepareManifestForSideload(entry, sourcePath, options) {
|
|
68
72
|
if (!options.httpPort)
|
|
69
73
|
return sourcePath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fraim-hub",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.250",
|
|
4
4
|
"description": "FRAIM Hub local companion package.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"fraim-hub": "bin/fraim-hub.js",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"electron": "^41.2.2",
|
|
164
164
|
"electron-updater": "^6.8.9",
|
|
165
165
|
"express": "^5.2.1",
|
|
166
|
-
"fraim": "2.0.
|
|
166
|
+
"fraim": "2.0.250",
|
|
167
167
|
"mongodb": "^7.0.0",
|
|
168
168
|
"node-cron": "4.2.1",
|
|
169
169
|
"node-edge-tts": "^1.2.10",
|