@atlaskit/react-ufo 3.5.1 → 3.5.2
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.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140777](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140777)
|
|
8
|
+
[`8fa57c7e71b24`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8fa57c7e71b24) -
|
|
9
|
+
Filtering out assets with NaN values reported as file size
|
|
10
|
+
|
|
3
11
|
## 3.5.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/assets/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.CHRSummary = exports.CHRReporter = void 0;
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty4 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _selfMeasurements = require("../self-measurements");
|
|
12
13
|
var _utils = require("./utils");
|
|
13
14
|
var _CHRSummary;
|
|
@@ -69,8 +70,9 @@ var CHRReporter = exports.CHRReporter = /*#__PURE__*/function () {
|
|
|
69
70
|
if (!(0, _utils.checkIfTimingsAvailable)(entry)) {
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
var hasNanValues = (0, _platformFeatureFlags.fg)('platform_ufo_assets_check_for_nan') ? entry.encodedSize === undefined || entry.encodedSize === null : false;
|
|
74
|
+
if (entry.encodedSize === entry.decodedSize || hasNanValues) {
|
|
75
|
+
// incorrectly reported or lack of size
|
|
74
76
|
return;
|
|
75
77
|
}
|
|
76
78
|
var type = (0, _utils.getTypeOfRequest)(entry);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
var _CHRSummary;
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { withProfiling } from '../self-measurements';
|
|
4
5
|
import { calculateTransferType, checkIfTimingsAvailable, DISK_KEY, getTypeOfRequest, MEMORY_KEY, NETWORK_KEY, round } from './utils';
|
|
5
6
|
export class CHRSummary {
|
|
@@ -62,8 +63,9 @@ export class CHRReporter {
|
|
|
62
63
|
if (!checkIfTimingsAvailable(entry)) {
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
const hasNanValues = fg('platform_ufo_assets_check_for_nan') ? entry.encodedSize === undefined || entry.encodedSize === null : false;
|
|
67
|
+
if (entry.encodedSize === entry.decodedSize || hasNanValues) {
|
|
68
|
+
// incorrectly reported or lack of size
|
|
67
69
|
return;
|
|
68
70
|
}
|
|
69
71
|
const type = getTypeOfRequest(entry);
|
package/dist/esm/assets/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _CHRSummary;
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { withProfiling } from '../self-measurements';
|
|
6
7
|
import { calculateTransferType, checkIfTimingsAvailable, DISK_KEY, getTypeOfRequest, MEMORY_KEY, NETWORK_KEY, round } from './utils';
|
|
7
8
|
export var CHRSummary = /*#__PURE__*/function () {
|
|
@@ -62,8 +63,9 @@ export var CHRReporter = /*#__PURE__*/function () {
|
|
|
62
63
|
if (!checkIfTimingsAvailable(entry)) {
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
var hasNanValues = fg('platform_ufo_assets_check_for_nan') ? entry.encodedSize === undefined || entry.encodedSize === null : false;
|
|
67
|
+
if (entry.encodedSize === entry.decodedSize || hasNanValues) {
|
|
68
|
+
// incorrectly reported or lack of size
|
|
67
69
|
return;
|
|
68
70
|
}
|
|
69
71
|
var type = getTypeOfRequest(entry);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
"platform_ufo_vc_fix_ignore_image_mutation": {
|
|
185
185
|
"type": "boolean"
|
|
186
186
|
},
|
|
187
|
+
"platform_ufo_assets_check_for_nan": {
|
|
188
|
+
"type": "boolean"
|
|
189
|
+
},
|
|
187
190
|
"platform_ufo_log_attr_mutation_values": {
|
|
188
191
|
"type": "boolean"
|
|
189
192
|
},
|