Socket
Socket
Sign inDemoInstall

@applitools/core-base

Package Overview
Dependencies
29
Maintainers
53
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.1 to 1.12.1

28

CHANGELOG.md
# Changelog
## [1.12.1](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.12.0...js/core-base@1.12.1) (2024-04-22)
### Bug Fixes
* environment override ([2b296e6](https://github.com/Applitools-Dev/sdk/commit/2b296e61cca6743d8d217ba99f2fba3a260fbdfa))
### Dependencies
* @applitools/utils bumped to 1.7.2
#### Bug Fixes
* trigger release ([88ba29f](https://github.com/Applitools-Dev/sdk/commit/88ba29f358620a5c0f0861eb31e8929d0b611284))
* @applitools/logger bumped to 2.0.16
* @applitools/req bumped to 1.6.7
* @applitools/image bumped to 1.1.11
## [1.12.0](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.11.1...js/core-base@1.12.0) (2024-04-22)
### Features
* ability to override baseline parameters per environment ([#2332](https://github.com/Applitools-Dev/sdk/issues/2332)) ([43b8b18](https://github.com/Applitools-Dev/sdk/commit/43b8b189fb3c9dd19aa3be372e8fcc0fe8edfa50))
## [1.11.1](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.11.0...js/core-base@1.11.1) (2024-04-15)

@@ -4,0 +32,0 @@

64

dist/server/requests.js

@@ -56,3 +56,3 @@ "use strict";

async function openEyes({ settings, heartbeat, logger = mainLogger, }) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
logger = logger.extend(mainLogger, { tags: [`core-request-${utils.general.shortid()}`] });

@@ -98,13 +98,21 @@ const req = (0, req_eyes_1.makeReqEyes)({ settings, fetch, logger });

environment: settings.environment &&
((_g = settings.environment.rawEnvironment) !== null && _g !== void 0 ? _g : {
deviceInfo: settings.environment.deviceName,
os: settings.environment.os,
osInfo: settings.environment.displayOs,
hostingApp: settings.environment.hostingApp,
hostingAppInfo: settings.environment.displayHostingApp,
displaySize: settings.environment.viewportSize
? utils.geometry.round(settings.environment.viewportSize)
: { width: 0, height: 0 },
inferred: settings.environment.userAgent && `useragent:${settings.environment.userAgent}`,
}),
(settings.environment.rawEnvironment
? {
...settings.environment.rawEnvironment,
os: (_g = settings.environment.os) !== null && _g !== void 0 ? _g : settings.environment.rawEnvironment.os,
osInfo: (_h = settings.environment.displayOs) !== null && _h !== void 0 ? _h : settings.environment.rawEnvironment.osInfo,
hostingApp: (_j = settings.environment.hostingApp) !== null && _j !== void 0 ? _j : settings.environment.rawEnvironment.hostingApp,
hostingAppInfo: (_k = settings.environment.displayHostingApp) !== null && _k !== void 0 ? _k : settings.environment.rawEnvironment.hostingAppInfo,
}
: {
deviceInfo: settings.environment.deviceName,
os: settings.environment.os,
osInfo: settings.environment.displayOs,
hostingApp: settings.environment.hostingApp,
hostingAppInfo: settings.environment.displayHostingApp,
displaySize: settings.environment.viewportSize
? utils.geometry.round(settings.environment.viewportSize)
: { width: 0, height: 0 },
inferred: settings.environment.userAgent && `useragent:${settings.environment.userAgent}`,
}),
environmentName: settings.environmentName,

@@ -158,3 +166,3 @@ baselineEnvName: settings.baselineEnvName,

async function openFunctionalSession({ settings, logger = mainLogger, }) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e;
logger = logger.extend(mainLogger, { tags: [`core-request-${utils.general.shortid()}`] });

@@ -189,13 +197,21 @@ const req = (0, req_eyes_1.makeReqEyes)({ settings, fetch, logger });

environment: settings.environment &&
((_f = settings.environment.rawEnvironment) !== null && _f !== void 0 ? _f : {
deviceInfo: settings.environment.deviceName,
os: settings.environment.os,
osInfo: settings.environment.displayOs,
hostingApp: settings.environment.hostingApp,
hostingAppInfo: settings.environment.displayHostingApp,
displaySize: settings.environment.viewportSize
? utils.geometry.round(settings.environment.viewportSize)
: { width: 0, height: 0 },
inferred: settings.environment.userAgent && `useragent:${settings.environment.userAgent}`,
}),
(settings.environment.rawEnvironment
? {
...settings.environment.rawEnvironment,
os: settings.environment.os,
osInfo: settings.environment.displayOs,
hostingApp: settings.environment.hostingApp,
hostingAppInfo: settings.environment.displayHostingApp,
}
: {
deviceInfo: settings.environment.deviceName,
os: settings.environment.os,
osInfo: settings.environment.displayOs,
hostingApp: settings.environment.hostingApp,
hostingAppInfo: settings.environment.displayHostingApp,
displaySize: settings.environment.viewportSize
? utils.geometry.round(settings.environment.viewportSize)
: { width: 0, height: 0 },
inferred: settings.environment.userAgent && `useragent:${settings.environment.userAgent}`,
}),
timeout: settings.abortIdleTestTimeout,

@@ -202,0 +218,0 @@ nonVisual: true,

{
"name": "@applitools/core-base",
"version": "1.11.1",
"version": "1.12.1",
"homepage": "https://applitools.com",

@@ -45,6 +45,6 @@ "bugs": {

"dependencies": {
"@applitools/image": "1.1.10",
"@applitools/logger": "2.0.15",
"@applitools/req": "1.6.6",
"@applitools/utils": "1.7.1",
"@applitools/image": "1.1.11",
"@applitools/logger": "2.0.16",
"@applitools/req": "1.6.7",
"@applitools/utils": "1.7.2",
"abort-controller": "3.0.0",

@@ -51,0 +51,0 @@ "throat": "6.0.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc