@testsmith/api-spector 0.5.1 → 0.5.2
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/out/main/index.js +5 -2
- package/out/main/runner.js +1 -1
- package/out/renderer/assets/GraphQLEditor-CMyLKaaQ.js +12408 -0
- package/out/renderer/assets/SoapEditor-COISS5Ms.js +255 -0
- package/out/renderer/assets/{index-CV7iFJoA.js → index-C7kyUDAy.js} +882 -13331
- package/out/renderer/assets/index-DQQavtNF.css +2 -0
- package/out/renderer/index.html +2 -2
- package/package.json +1 -1
- package/out/renderer/assets/index-feMbYxZb.css +0 -2
package/out/main/index.js
CHANGED
|
@@ -5792,7 +5792,7 @@ function isNewer(a, b) {
|
|
|
5792
5792
|
return a2 > b2;
|
|
5793
5793
|
}
|
|
5794
5794
|
async function checkForUpdate() {
|
|
5795
|
-
const current = "0.5.
|
|
5795
|
+
const current = "0.5.2";
|
|
5796
5796
|
try {
|
|
5797
5797
|
const res = await fetch(REGISTRY_URL, { signal: AbortSignal.timeout(4e3) });
|
|
5798
5798
|
if (!res.ok) return null;
|
|
@@ -5851,7 +5851,9 @@ function loadAppIcon() {
|
|
|
5851
5851
|
}
|
|
5852
5852
|
return void 0;
|
|
5853
5853
|
}
|
|
5854
|
+
const MIN_SPLASH_MS = 350;
|
|
5854
5855
|
function createWindow() {
|
|
5856
|
+
const startedAt = Date.now();
|
|
5855
5857
|
const splash = createSplashWindow();
|
|
5856
5858
|
const appIcon = loadAppIcon();
|
|
5857
5859
|
if (appIcon && process.platform === "darwin" && electron.app.dock) {
|
|
@@ -5879,10 +5881,11 @@ function createWindow() {
|
|
|
5879
5881
|
win.loadFile(path.join(__dirname, "../renderer/index.html"));
|
|
5880
5882
|
}
|
|
5881
5883
|
win.webContents.once("did-finish-load", () => {
|
|
5884
|
+
const remaining = Math.max(0, MIN_SPLASH_MS - (Date.now() - startedAt));
|
|
5882
5885
|
setTimeout(() => {
|
|
5883
5886
|
splash.close();
|
|
5884
5887
|
win.show();
|
|
5885
|
-
},
|
|
5888
|
+
}, remaining);
|
|
5886
5889
|
});
|
|
5887
5890
|
if (process.platform === "win32") {
|
|
5888
5891
|
const version = electron.app.getVersion();
|
package/out/main/runner.js
CHANGED
|
@@ -402,7 +402,7 @@ async function main() {
|
|
|
402
402
|
} else if (!envName && workspace.settings?.defaultEnvironment && !env) {
|
|
403
403
|
console.warn(cliCommon.color(`Warning: default environment "${workspace.settings.defaultEnvironment}" not found. Running without environment.`, cliCommon.C.yellow));
|
|
404
404
|
}
|
|
405
|
-
const version = `v${"0.5.
|
|
405
|
+
const version = `v${"0.5.2"}`;
|
|
406
406
|
console.log("");
|
|
407
407
|
console.log(cliCommon.color(" API Test Runner" + (version ? ` ${version}` : ""), cliCommon.C.bold, cliCommon.C.white));
|
|
408
408
|
console.log(cliCommon.color(` Workspace: ${wsPath}`, cliCommon.C.gray));
|