diff --git a/package-lock.json b/package-lock.json index 7cb21975..b6c9f289 100644 --- a/package-lock.json +++ b/package-lock.json @@ -259,9 +259,9 @@ } }, "@advanced-rest-client/arc-request-ui": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-request-ui/-/arc-request-ui-0.1.10.tgz", - "integrity": "sha512-Rtu67p4nUOYMnZtppso3TbAFKMui4EGjBAGfu2d9H0X6lUtqEbdLIJKnCzQ1VtJx5YJdEB3fjamdGYcplvLhoQ==", + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-request-ui/-/arc-request-ui-0.1.11.tgz", + "integrity": "sha512-Ie++joElUZC4oG2fWjsjp8mFn1nBSLoQ7LcHpysYUJ+sYXrZp60otlPxbzKLZNQMX8DFosEvr07AwozbecHUHA==", "dev": true, "requires": { "@advanced-rest-client/arc-actions": "^0.1.4", @@ -272,7 +272,7 @@ "@advanced-rest-client/arc-marked": "^1.1.0", "@advanced-rest-client/arc-models": "^4.2.9", "@advanced-rest-client/arc-resizable-mixin": "^1.2.0", - "@advanced-rest-client/arc-response": "^0.1.8", + "@advanced-rest-client/arc-response": "^0.1.9", "@advanced-rest-client/arc-types": "^0.2.49", "@advanced-rest-client/arc-url": "^0.1.3", "@advanced-rest-client/arc-websocket": "^0.1.1", @@ -318,14 +318,14 @@ } }, "@advanced-rest-client/arc-response": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-response/-/arc-response-0.1.8.tgz", - "integrity": "sha512-KHI8AFQhZxOs1KxKfFR1T1sSuZhQyssvfhQnO8M4x5iAdg87xe29xUv/dzqBEc2W6m0LZj5+XBUQuCB2juum9A==", + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-response/-/arc-response-0.1.9.tgz", + "integrity": "sha512-tO+KcY/nkqVVArAI4y5wCiGTsd2V6Cr/w9FgPVCYVH/KOB5HnJHFJWjvrsYby6VhDnBa5Hu81k2GUN9SUN+XmQ==", "dev": true, "requires": { "@advanced-rest-client/arc-events": "^0.2.14", "@advanced-rest-client/arc-headers": "^0.1.7", - "@advanced-rest-client/arc-icons": "^3.2.2", + "@advanced-rest-client/arc-icons": "^3.3.0", "@advanced-rest-client/arc-types": "^0.2.49", "@advanced-rest-client/date-time": "^3.0.2", "@advanced-rest-client/prism-highlight": "^4.0.2", @@ -8104,9 +8104,9 @@ } }, "electron-to-chromium": { - "version": "1.3.657", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.657.tgz", - "integrity": "sha512-/9ROOyvEflEbaZFUeGofD+Tqs/WynbSTbNgNF+/TJJxH1ePD/e6VjZlDJpW3FFFd3nj5l3Hd8ki2vRwy+gyRFw==", + "version": "1.3.658", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.658.tgz", + "integrity": "sha512-1sRTaBVbn02sqadml7IchB1VxgRBcrJg55rlNa7dNszT0ZDDAM0/8NVHtbe0yCrOafLVB+lBzapWX1HpS+Knhg==", "dev": true }, "electron-updater": { @@ -10531,9 +10531,9 @@ } }, "jsrsasign": { - "version": "10.1.5", - "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.1.5.tgz", - "integrity": "sha512-xlCtvZ+S2fPnw6YQyPkgMZ1dgMJ02bmK5Rt1umpo/KThBP6Zzq9awzXU71NEw1NYxXmLFnjorpQYKLZzMdF3lg==", + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.1.8.tgz", + "integrity": "sha512-NdMWugkiOXk7dfB8a2PMlnzjf+8mxWgGC9IfWhiYouQa00Qcc4PBrCk4eH+MNB2O/DJ2Cjz1eEzI2usY3BSynQ==", "dev": true }, "jstransform": { @@ -13194,6 +13194,15 @@ "@types/rdf-js": "*" } }, + "rdf-isomorphic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/rdf-isomorphic/-/rdf-isomorphic-1.2.0.tgz", + "integrity": "sha512-Dq+iuWrVuK7q3P4/nychbWhRJ1M5yMAekNJN8f5pjarE8SH9Duy/R0JopVF0I0Q2w0poZlsVKKIBpeG+AdOSAw==", + "requires": { + "rdf-string": "^1.5.0", + "rdf-terms": "^1.6.2" + } + }, "rdf-literal": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/rdf-literal/-/rdf-literal-1.2.0.tgz", @@ -14176,13 +14185,14 @@ "integrity": "sha512-0tF3AGSD1ppQeuffsLDIOWlKUd3lS92tFxcsrh5Pe3ZphhnoK+oXIBTzOAThZCiuINZLvpiLH/1VS1/ANEJVig==" }, "sparqlalgebrajs": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/sparqlalgebrajs/-/sparqlalgebrajs-2.4.0.tgz", - "integrity": "sha512-6glKn1uWBsdPuQ4D+4r5m8mgWZoMfiNgip4uyblULTmgISqcbsQzrlrIhWQoZSX95QLLlWlYJufhelQAIRAWKg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/sparqlalgebrajs/-/sparqlalgebrajs-2.5.0.tgz", + "integrity": "sha512-dNJf4xUj5DFZc/9vQnDU5y9u8l4MfvOkMgx6PAefhTjAK0HHChxLZFF4n6GngWfvEZQ3/HcfmQk3cQo6sT/6bQ==", "requires": { "fast-deep-equal": "^3.1.1", "minimist": "^1.2.5", "rdf-data-factory": "^1.0.0", + "rdf-isomorphic": "^1.2.0", "rdf-string": "^1.5.0", "sparqljs": "^3.1.1" }, diff --git a/package.json b/package.json index 26c62961..beaaf86b 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@advanced-rest-client/arc-menu": "^4.0.3", "@advanced-rest-client/arc-messages": "^0.1.0", "@advanced-rest-client/arc-models": "^4.2.9", - "@advanced-rest-client/arc-request-ui": "^0.1.10", + "@advanced-rest-client/arc-request-ui": "^0.1.11", "@advanced-rest-client/arc-settings": "^0.1.2", "@advanced-rest-client/bottom-sheet": "^3.2.2", "@advanced-rest-client/client-certificates": "^0.1.0", diff --git a/src/app/scripts/apic/ApiConsole.js b/src/app/scripts/apic/ApiConsole.js index 2f393659..6469b52a 100644 --- a/src/app/scripts/apic/ApiConsole.js +++ b/src/app/scripts/apic/ApiConsole.js @@ -582,7 +582,7 @@ export class ApiConsoleApplication extends AmfHelperMixin(ApplicationPage) { headerTemplate() { return html`
- + API Console by MuleSoft. @@ -644,6 +644,7 @@ export class ApiConsoleApplication extends AmfHelperMixin(ApplicationPage) { verticalAlign="top" horizontalAlign="auto" closeOnActivate + class="header-action-button" > diff --git a/src/app/scripts/arc/AdvancedRestClientApplication.js b/src/app/scripts/arc/AdvancedRestClientApplication.js index 7a92c5ce..8f933fca 100644 --- a/src/app/scripts/arc/AdvancedRestClientApplication.js +++ b/src/app/scripts/arc/AdvancedRestClientApplication.js @@ -479,7 +479,8 @@ export class AdvancedRestClientApplication extends ApplicationPage { * @param {ARCConfig} cnf */ setConfigVariables(cnf) { - if (!!cnf.request || (cnf.request && typeof cnf.request.ignoreSessionCookies === 'boolean' && cnf.request.ignoreSessionCookies)) { + const ignoreCookies = !!cnf.request && cnf.request.ignoreSessionCookies === false; + if (!ignoreCookies) { ModulesRegistry.register(ModulesRegistry.request, 'arc/request/cookies', RequestCookies.processRequestCookies, ['events']); ModulesRegistry.register(ModulesRegistry.response, 'arc/response/cookies', RequestCookies.processResponseCookies, ['events']); } diff --git a/src/io/ArcEnvironment.js b/src/io/ArcEnvironment.js index 1d773b02..329ad426 100644 --- a/src/io/ArcEnvironment.js +++ b/src/io/ArcEnvironment.js @@ -342,6 +342,10 @@ export class ArcEnvironment { ignoreWindowSessionSettings: true, noMenu: true, parent: win, + sizing: { + height: 800, + width: 800, + }, }); break; case 'open-privacy-policy': diff --git a/src/io/start.js b/src/io/start.js index 4fe694e7..b6a02299 100644 --- a/src/io/start.js +++ b/src/io/start.js @@ -78,6 +78,10 @@ export default async function start(startTime) { app.commandLine.appendSwitch('enable-experimental-web-platform-features'); app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors'); + // Sets the application version in a global variable so the renderer process + // has this information without querying for it. + process.env.ARC_VERSION = app.getVersion(); + process.on('uncaughtException', (error) => { if (error.message) { logger.error(error.message); diff --git a/src/preload/arc-preload.esm.js b/src/preload/arc-preload.esm.js index 6745b913..74b23331 100644 --- a/src/preload/arc-preload.esm.js +++ b/src/preload/arc-preload.esm.js @@ -17,7 +17,7 @@ import { GoogleDriveProxy } from './GoogleDriveProxy.js'; import { GoogleAnalytics } from './GoogleAnalytics.js'; const env = {}; -const APP_VERSION = process.env.npm_package_version; +const APP_VERSION = process.env.ARC_VERSION; Object.keys(process.env).forEach((key) => { if (key.indexOf('npm_') === 0 || key.indexOf('ARC_') === 0) { return;