@xenon-device-management/xenon 1.1.13 → 1.1.14

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenon-device-management/xenon",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Xenon - Intelligent Mobile Infrastructure. A self-healing device orchestration platform for Appium.",
5
5
  "main": "./lib/src/index.js",
6
6
  "exports": {
package/lib/src/index.js CHANGED
@@ -89,7 +89,8 @@ process.on('unhandledRejection', (reason, promise) => {
89
89
  logger_1.default.error('❌ [Xenon] Unhandled Rejection at:', promise, 'reason:', reason);
90
90
  });
91
91
  process.on('uncaughtException', (err) => {
92
- const errorDetails = err instanceof Error ? Object.assign({ name: err.name, message: err.message, stack: err.stack }, (lodash_1.default.omit(err, ['name', 'message', 'stack']))) : err;
92
+ const errorDetails = err instanceof Error
93
+ ? Object.assign({ name: err.name, message: err.message, stack: err.stack }, lodash_1.default.omit(err, ['name', 'message', 'stack'])) : err;
93
94
  logger_1.default.error('❌ [Xenon] Uncaught Exception:', JSON.stringify(errorDetails, null, 2));
94
95
  logger_1.default.error('❌ [Xenon] Stack Trace:', err instanceof Error ? err.stack : new Error().stack);
95
96
  // Give logger time to flush before exiting
@@ -287,7 +287,7 @@ let InspectorService = class InspectorService {
287
287
  (node.attributes.name
288
288
  ? `name == "${node.attributes.name}"`
289
289
  : `label == "${node.text || ''}"`) +
290
- `]`;
290
+ ']';
291
291
  suggestions.push({
292
292
  strategy: '-ios class chain',
293
293
  value: classChain,
@@ -210,7 +210,7 @@ describe('Device Utils', () => {
210
210
  }
211
211
  const foundDevice = (yield getFilteredDevice(allocatedDeviceForFirstSession.udid, allocatedDeviceForFirstSession.host))[0];
212
212
  expect(foundDevice.busy).to.be.true;
213
- let filterDeviceWithSameUDID = (yield db_1.XenonDatabase.DeviceModel)
213
+ const filterDeviceWithSameUDID = (yield db_1.XenonDatabase.DeviceModel)
214
214
  .chain()
215
215
  .find({ udid: allocatedDeviceForFirstSession.udid })
216
216
  .data();
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const chai_1 = require("chai");
4
4
  const prisma_1 = require("../../src/prisma");
5
- const client_1 = require("@prisma/client");
5
+ const client_1 = require("../../src/generated/client");
6
6
  describe('Prisma Client Unit Tests', () => {
7
7
  it('getPrismaClient should return an instance of PrismaClient', () => {
8
8
  const client = (0, prisma_1.getPrismaClient)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenon-device-management/xenon",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Xenon - Intelligent Mobile Infrastructure. A self-healing device orchestration platform for Appium.",
5
5
  "main": "./lib/src/index.js",
6
6
  "exports": {