@atlaskit/react-ufo 3.14.11 → 3.14.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 3.14.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#183928](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/183928)
8
+ [`d9580eee2eedc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d9580eee2eedc) -
9
+ Suppress Sentry NotAllowedError on observe PressureObserver
10
+
3
11
  ## 3.14.11
4
12
 
5
13
  ### Patch Changes
@@ -117,7 +117,10 @@ function initialisePressureObserver() {
117
117
  });
118
118
  pressureObserver.observe('cpu', {
119
119
  sampleInterval: 100
120
- }).catch();
120
+ }).catch(function () {
121
+ // Silently handle permission policy restrictions or other observe failures
122
+ // This prevents unhandled promise rejections from being reported to Sentry
123
+ });
121
124
  }
122
125
  } catch (err) {
123
126
  /* do nothing, this is a best efforts metric */
@@ -96,7 +96,10 @@ export function initialisePressureObserver() {
96
96
  });
97
97
  pressureObserver.observe('cpu', {
98
98
  sampleInterval: 100
99
- }).catch();
99
+ }).catch(() => {
100
+ // Silently handle permission policy restrictions or other observe failures
101
+ // This prevents unhandled promise rejections from being reported to Sentry
102
+ });
100
103
  }
101
104
  } catch (err) {
102
105
  /* do nothing, this is a best efforts metric */
@@ -101,7 +101,10 @@ export function initialisePressureObserver() {
101
101
  });
102
102
  pressureObserver.observe('cpu', {
103
103
  sampleInterval: 100
104
- }).catch();
104
+ }).catch(function () {
105
+ // Silently handle permission policy restrictions or other observe failures
106
+ // This prevents unhandled promise rejections from being reported to Sentry
107
+ });
105
108
  }
106
109
  } catch (err) {
107
110
  /* do nothing, this is a best efforts metric */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "3.14.11",
3
+ "version": "3.14.12",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",