@uipath/uipath-typescript 1.1.1 → 1.1.3

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.
@@ -549,15 +549,6 @@ class ApiClient {
549
549
  async getDefaultHeaders() {
550
550
  // Get headers from execution context first
551
551
  const contextHeaders = this.executionContext.getHeaders();
552
- // If Authorization header is already set in context, use that
553
- if (contextHeaders['Authorization']) {
554
- return {
555
- ...contextHeaders,
556
- 'Content-Type': CONTENT_TYPES.JSON,
557
- ...this.defaultHeaders,
558
- ...this.clientConfig.headers
559
- };
560
- }
561
552
  const token = await this.getValidToken();
562
553
  return {
563
554
  ...contextHeaders,
@@ -572,8 +563,13 @@ class ApiClient {
572
563
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
573
564
  // Construct URL with org and tenant names
574
565
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
566
+ const isFormData = options.body instanceof FormData;
567
+ const defaultHeaders = await this.getDefaultHeaders();
568
+ if (isFormData) {
569
+ delete defaultHeaders['Content-Type'];
570
+ }
575
571
  const headers = {
576
- ...await this.getDefaultHeaders(),
572
+ ...defaultHeaders,
577
573
  ...options.headers
578
574
  };
579
575
  // Convert params to URLSearchParams
@@ -584,11 +580,15 @@ class ApiClient {
584
580
  });
585
581
  }
586
582
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
583
+ let body = undefined;
584
+ if (options.body) {
585
+ body = isFormData ? options.body : JSON.stringify(options.body);
586
+ }
587
587
  try {
588
588
  const response = await fetch(fullUrl, {
589
589
  method,
590
590
  headers,
591
- body: options.body ? JSON.stringify(options.body) : undefined,
591
+ body,
592
592
  signal: options.signal
593
593
  });
594
594
  if (!response.ok) {
@@ -684,6 +684,7 @@ function filterUndefined(obj) {
684
684
  * Checks if code is running in a browser environment
685
685
  */
686
686
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
687
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
687
688
 
688
689
  /**
689
690
  * Base64 encoding/decoding
@@ -1734,7 +1735,7 @@ class BpmnHelpers {
1734
1735
  // Connection string placeholder that will be replaced during build
1735
1736
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1736
1737
  // SDK Version placeholder
1737
- const SDK_VERSION = "1.1.1";
1738
+ const SDK_VERSION = "1.1.3";
1738
1739
  const VERSION = "Version";
1739
1740
  const SERVICE = "Service";
1740
1741
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -547,15 +547,6 @@ class ApiClient {
547
547
  async getDefaultHeaders() {
548
548
  // Get headers from execution context first
549
549
  const contextHeaders = this.executionContext.getHeaders();
550
- // If Authorization header is already set in context, use that
551
- if (contextHeaders['Authorization']) {
552
- return {
553
- ...contextHeaders,
554
- 'Content-Type': CONTENT_TYPES.JSON,
555
- ...this.defaultHeaders,
556
- ...this.clientConfig.headers
557
- };
558
- }
559
550
  const token = await this.getValidToken();
560
551
  return {
561
552
  ...contextHeaders,
@@ -570,8 +561,13 @@ class ApiClient {
570
561
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
571
562
  // Construct URL with org and tenant names
572
563
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
564
+ const isFormData = options.body instanceof FormData;
565
+ const defaultHeaders = await this.getDefaultHeaders();
566
+ if (isFormData) {
567
+ delete defaultHeaders['Content-Type'];
568
+ }
573
569
  const headers = {
574
- ...await this.getDefaultHeaders(),
570
+ ...defaultHeaders,
575
571
  ...options.headers
576
572
  };
577
573
  // Convert params to URLSearchParams
@@ -582,11 +578,15 @@ class ApiClient {
582
578
  });
583
579
  }
584
580
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
581
+ let body = undefined;
582
+ if (options.body) {
583
+ body = isFormData ? options.body : JSON.stringify(options.body);
584
+ }
585
585
  try {
586
586
  const response = await fetch(fullUrl, {
587
587
  method,
588
588
  headers,
589
- body: options.body ? JSON.stringify(options.body) : undefined,
589
+ body,
590
590
  signal: options.signal
591
591
  });
592
592
  if (!response.ok) {
@@ -682,6 +682,7 @@ function filterUndefined(obj) {
682
682
  * Checks if code is running in a browser environment
683
683
  */
684
684
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
685
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
685
686
 
686
687
  /**
687
688
  * Base64 encoding/decoding
@@ -1732,7 +1733,7 @@ class BpmnHelpers {
1732
1733
  // Connection string placeholder that will be replaced during build
1733
1734
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1734
1735
  // SDK Version placeholder
1735
- const SDK_VERSION = "1.1.1";
1736
+ const SDK_VERSION = "1.1.3";
1736
1737
  const VERSION = "Version";
1737
1738
  const SERVICE = "Service";
1738
1739
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -548,15 +548,6 @@ class ApiClient {
548
548
  async getDefaultHeaders() {
549
549
  // Get headers from execution context first
550
550
  const contextHeaders = this.executionContext.getHeaders();
551
- // If Authorization header is already set in context, use that
552
- if (contextHeaders['Authorization']) {
553
- return {
554
- ...contextHeaders,
555
- 'Content-Type': CONTENT_TYPES.JSON,
556
- ...this.defaultHeaders,
557
- ...this.clientConfig.headers
558
- };
559
- }
560
551
  const token = await this.getValidToken();
561
552
  return {
562
553
  ...contextHeaders,
@@ -571,8 +562,13 @@ class ApiClient {
571
562
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
572
563
  // Construct URL with org and tenant names
573
564
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
565
+ const isFormData = options.body instanceof FormData;
566
+ const defaultHeaders = await this.getDefaultHeaders();
567
+ if (isFormData) {
568
+ delete defaultHeaders['Content-Type'];
569
+ }
574
570
  const headers = {
575
- ...await this.getDefaultHeaders(),
571
+ ...defaultHeaders,
576
572
  ...options.headers
577
573
  };
578
574
  // Convert params to URLSearchParams
@@ -583,11 +579,15 @@ class ApiClient {
583
579
  });
584
580
  }
585
581
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
582
+ let body = undefined;
583
+ if (options.body) {
584
+ body = isFormData ? options.body : JSON.stringify(options.body);
585
+ }
586
586
  try {
587
587
  const response = await fetch(fullUrl, {
588
588
  method,
589
589
  headers,
590
- body: options.body ? JSON.stringify(options.body) : undefined,
590
+ body,
591
591
  signal: options.signal
592
592
  });
593
593
  if (!response.ok) {
@@ -683,6 +683,7 @@ function filterUndefined(obj) {
683
683
  * Checks if code is running in a browser environment
684
684
  */
685
685
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
686
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
686
687
 
687
688
  /**
688
689
  * Base64 encoding/decoding
@@ -1714,7 +1715,7 @@ const PROCESS_ENDPOINTS = {
1714
1715
  // Connection string placeholder that will be replaced during build
1715
1716
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1716
1717
  // SDK Version placeholder
1717
- const SDK_VERSION = "1.1.1";
1718
+ const SDK_VERSION = "1.1.3";
1718
1719
  const VERSION = "Version";
1719
1720
  const SERVICE = "Service";
1720
1721
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -546,15 +546,6 @@ class ApiClient {
546
546
  async getDefaultHeaders() {
547
547
  // Get headers from execution context first
548
548
  const contextHeaders = this.executionContext.getHeaders();
549
- // If Authorization header is already set in context, use that
550
- if (contextHeaders['Authorization']) {
551
- return {
552
- ...contextHeaders,
553
- 'Content-Type': CONTENT_TYPES.JSON,
554
- ...this.defaultHeaders,
555
- ...this.clientConfig.headers
556
- };
557
- }
558
549
  const token = await this.getValidToken();
559
550
  return {
560
551
  ...contextHeaders,
@@ -569,8 +560,13 @@ class ApiClient {
569
560
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
570
561
  // Construct URL with org and tenant names
571
562
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
563
+ const isFormData = options.body instanceof FormData;
564
+ const defaultHeaders = await this.getDefaultHeaders();
565
+ if (isFormData) {
566
+ delete defaultHeaders['Content-Type'];
567
+ }
572
568
  const headers = {
573
- ...await this.getDefaultHeaders(),
569
+ ...defaultHeaders,
574
570
  ...options.headers
575
571
  };
576
572
  // Convert params to URLSearchParams
@@ -581,11 +577,15 @@ class ApiClient {
581
577
  });
582
578
  }
583
579
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
580
+ let body = undefined;
581
+ if (options.body) {
582
+ body = isFormData ? options.body : JSON.stringify(options.body);
583
+ }
584
584
  try {
585
585
  const response = await fetch(fullUrl, {
586
586
  method,
587
587
  headers,
588
- body: options.body ? JSON.stringify(options.body) : undefined,
588
+ body,
589
589
  signal: options.signal
590
590
  });
591
591
  if (!response.ok) {
@@ -681,6 +681,7 @@ function filterUndefined(obj) {
681
681
  * Checks if code is running in a browser environment
682
682
  */
683
683
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
684
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
684
685
 
685
686
  /**
686
687
  * Base64 encoding/decoding
@@ -1712,7 +1713,7 @@ const PROCESS_ENDPOINTS = {
1712
1713
  // Connection string placeholder that will be replaced during build
1713
1714
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1714
1715
  // SDK Version placeholder
1715
- const SDK_VERSION = "1.1.1";
1716
+ const SDK_VERSION = "1.1.3";
1716
1717
  const VERSION = "Version";
1717
1718
  const SERVICE = "Service";
1718
1719
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -548,15 +548,6 @@ class ApiClient {
548
548
  async getDefaultHeaders() {
549
549
  // Get headers from execution context first
550
550
  const contextHeaders = this.executionContext.getHeaders();
551
- // If Authorization header is already set in context, use that
552
- if (contextHeaders['Authorization']) {
553
- return {
554
- ...contextHeaders,
555
- 'Content-Type': CONTENT_TYPES.JSON,
556
- ...this.defaultHeaders,
557
- ...this.clientConfig.headers
558
- };
559
- }
560
551
  const token = await this.getValidToken();
561
552
  return {
562
553
  ...contextHeaders,
@@ -571,8 +562,13 @@ class ApiClient {
571
562
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
572
563
  // Construct URL with org and tenant names
573
564
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
565
+ const isFormData = options.body instanceof FormData;
566
+ const defaultHeaders = await this.getDefaultHeaders();
567
+ if (isFormData) {
568
+ delete defaultHeaders['Content-Type'];
569
+ }
574
570
  const headers = {
575
- ...await this.getDefaultHeaders(),
571
+ ...defaultHeaders,
576
572
  ...options.headers
577
573
  };
578
574
  // Convert params to URLSearchParams
@@ -583,11 +579,15 @@ class ApiClient {
583
579
  });
584
580
  }
585
581
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
582
+ let body = undefined;
583
+ if (options.body) {
584
+ body = isFormData ? options.body : JSON.stringify(options.body);
585
+ }
586
586
  try {
587
587
  const response = await fetch(fullUrl, {
588
588
  method,
589
589
  headers,
590
- body: options.body ? JSON.stringify(options.body) : undefined,
590
+ body,
591
591
  signal: options.signal
592
592
  });
593
593
  if (!response.ok) {
@@ -683,6 +683,7 @@ function filterUndefined(obj) {
683
683
  * Checks if code is running in a browser environment
684
684
  */
685
685
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
686
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
686
687
 
687
688
  /**
688
689
  * Base64 encoding/decoding
@@ -1678,7 +1679,7 @@ const QueueMap = {
1678
1679
  // Connection string placeholder that will be replaced during build
1679
1680
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1680
1681
  // SDK Version placeholder
1681
- const SDK_VERSION = "1.1.1";
1682
+ const SDK_VERSION = "1.1.3";
1682
1683
  const VERSION = "Version";
1683
1684
  const SERVICE = "Service";
1684
1685
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -546,15 +546,6 @@ class ApiClient {
546
546
  async getDefaultHeaders() {
547
547
  // Get headers from execution context first
548
548
  const contextHeaders = this.executionContext.getHeaders();
549
- // If Authorization header is already set in context, use that
550
- if (contextHeaders['Authorization']) {
551
- return {
552
- ...contextHeaders,
553
- 'Content-Type': CONTENT_TYPES.JSON,
554
- ...this.defaultHeaders,
555
- ...this.clientConfig.headers
556
- };
557
- }
558
549
  const token = await this.getValidToken();
559
550
  return {
560
551
  ...contextHeaders,
@@ -569,8 +560,13 @@ class ApiClient {
569
560
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
570
561
  // Construct URL with org and tenant names
571
562
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
563
+ const isFormData = options.body instanceof FormData;
564
+ const defaultHeaders = await this.getDefaultHeaders();
565
+ if (isFormData) {
566
+ delete defaultHeaders['Content-Type'];
567
+ }
572
568
  const headers = {
573
- ...await this.getDefaultHeaders(),
569
+ ...defaultHeaders,
574
570
  ...options.headers
575
571
  };
576
572
  // Convert params to URLSearchParams
@@ -581,11 +577,15 @@ class ApiClient {
581
577
  });
582
578
  }
583
579
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
580
+ let body = undefined;
581
+ if (options.body) {
582
+ body = isFormData ? options.body : JSON.stringify(options.body);
583
+ }
584
584
  try {
585
585
  const response = await fetch(fullUrl, {
586
586
  method,
587
587
  headers,
588
- body: options.body ? JSON.stringify(options.body) : undefined,
588
+ body,
589
589
  signal: options.signal
590
590
  });
591
591
  if (!response.ok) {
@@ -681,6 +681,7 @@ function filterUndefined(obj) {
681
681
  * Checks if code is running in a browser environment
682
682
  */
683
683
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
684
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
684
685
 
685
686
  /**
686
687
  * Base64 encoding/decoding
@@ -1676,7 +1677,7 @@ const QueueMap = {
1676
1677
  // Connection string placeholder that will be replaced during build
1677
1678
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1678
1679
  // SDK Version placeholder
1679
- const SDK_VERSION = "1.1.1";
1680
+ const SDK_VERSION = "1.1.3";
1680
1681
  const VERSION = "Version";
1681
1682
  const SERVICE = "Service";
1682
1683
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -548,15 +548,6 @@ class ApiClient {
548
548
  async getDefaultHeaders() {
549
549
  // Get headers from execution context first
550
550
  const contextHeaders = this.executionContext.getHeaders();
551
- // If Authorization header is already set in context, use that
552
- if (contextHeaders['Authorization']) {
553
- return {
554
- ...contextHeaders,
555
- 'Content-Type': CONTENT_TYPES.JSON,
556
- ...this.defaultHeaders,
557
- ...this.clientConfig.headers
558
- };
559
- }
560
551
  const token = await this.getValidToken();
561
552
  return {
562
553
  ...contextHeaders,
@@ -571,8 +562,13 @@ class ApiClient {
571
562
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
572
563
  // Construct URL with org and tenant names
573
564
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
565
+ const isFormData = options.body instanceof FormData;
566
+ const defaultHeaders = await this.getDefaultHeaders();
567
+ if (isFormData) {
568
+ delete defaultHeaders['Content-Type'];
569
+ }
574
570
  const headers = {
575
- ...await this.getDefaultHeaders(),
571
+ ...defaultHeaders,
576
572
  ...options.headers
577
573
  };
578
574
  // Convert params to URLSearchParams
@@ -583,11 +579,15 @@ class ApiClient {
583
579
  });
584
580
  }
585
581
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
582
+ let body = undefined;
583
+ if (options.body) {
584
+ body = isFormData ? options.body : JSON.stringify(options.body);
585
+ }
586
586
  try {
587
587
  const response = await fetch(fullUrl, {
588
588
  method,
589
589
  headers,
590
- body: options.body ? JSON.stringify(options.body) : undefined,
590
+ body,
591
591
  signal: options.signal
592
592
  });
593
593
  if (!response.ok) {
@@ -702,6 +702,7 @@ function processODataArrayResponse(oDataResponse, successData) {
702
702
  * Checks if code is running in a browser environment
703
703
  */
704
704
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
705
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
705
706
 
706
707
  /**
707
708
  * Base64 encoding/decoding
@@ -1904,7 +1905,7 @@ const TASK_ENDPOINTS = {
1904
1905
  // Connection string placeholder that will be replaced during build
1905
1906
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1906
1907
  // SDK Version placeholder
1907
- const SDK_VERSION = "1.1.1";
1908
+ const SDK_VERSION = "1.1.3";
1908
1909
  const VERSION = "Version";
1909
1910
  const SERVICE = "Service";
1910
1911
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -546,15 +546,6 @@ class ApiClient {
546
546
  async getDefaultHeaders() {
547
547
  // Get headers from execution context first
548
548
  const contextHeaders = this.executionContext.getHeaders();
549
- // If Authorization header is already set in context, use that
550
- if (contextHeaders['Authorization']) {
551
- return {
552
- ...contextHeaders,
553
- 'Content-Type': CONTENT_TYPES.JSON,
554
- ...this.defaultHeaders,
555
- ...this.clientConfig.headers
556
- };
557
- }
558
549
  const token = await this.getValidToken();
559
550
  return {
560
551
  ...contextHeaders,
@@ -569,8 +560,13 @@ class ApiClient {
569
560
  const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
570
561
  // Construct URL with org and tenant names
571
562
  const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
563
+ const isFormData = options.body instanceof FormData;
564
+ const defaultHeaders = await this.getDefaultHeaders();
565
+ if (isFormData) {
566
+ delete defaultHeaders['Content-Type'];
567
+ }
572
568
  const headers = {
573
- ...await this.getDefaultHeaders(),
569
+ ...defaultHeaders,
574
570
  ...options.headers
575
571
  };
576
572
  // Convert params to URLSearchParams
@@ -581,11 +577,15 @@ class ApiClient {
581
577
  });
582
578
  }
583
579
  const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
580
+ let body = undefined;
581
+ if (options.body) {
582
+ body = isFormData ? options.body : JSON.stringify(options.body);
583
+ }
584
584
  try {
585
585
  const response = await fetch(fullUrl, {
586
586
  method,
587
587
  headers,
588
- body: options.body ? JSON.stringify(options.body) : undefined,
588
+ body,
589
589
  signal: options.signal
590
590
  });
591
591
  if (!response.ok) {
@@ -700,6 +700,7 @@ function processODataArrayResponse(oDataResponse, successData) {
700
700
  * Checks if code is running in a browser environment
701
701
  */
702
702
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
703
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
703
704
 
704
705
  /**
705
706
  * Base64 encoding/decoding
@@ -1902,7 +1903,7 @@ const TASK_ENDPOINTS = {
1902
1903
  // Connection string placeholder that will be replaced during build
1903
1904
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1904
1905
  // SDK Version placeholder
1905
- const SDK_VERSION = "1.1.1";
1906
+ const SDK_VERSION = "1.1.3";
1906
1907
  const VERSION = "Version";
1907
1908
  const SERVICE = "Service";
1908
1909
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/uipath-typescript",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "UiPath TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "keywords": [