@parca/profile 0.16.159 → 0.16.160

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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.16.160 (2023-04-04)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## 0.16.159 (2023-04-01)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -83,7 +83,7 @@ var ProfileExplorerApp = function (_a) {
83
83
  var _a;
84
84
  var mergeFrom = merge_from_a !== null && merge_from_a !== void 0 ? merge_from_a : undefined;
85
85
  var mergeTo = merge_to_a !== null && merge_to_a !== void 0 ? merge_to_a : undefined;
86
- var labels = (_a = labels_a) !== null && _a !== void 0 ? _a : [''];
86
+ var labels = typeof labels_a === 'string' ? [labels_a] : (_a = labels_a) !== null && _a !== void 0 ? _a : [''];
87
87
  var profileA = ProfileSelectionFromParams(expression_a, from_a, to_a, mergeFrom, mergeTo, labels, filter_by_function);
88
88
  setProfileA(profileA);
89
89
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -92,7 +92,7 @@ var ProfileExplorerApp = function (_a) {
92
92
  var _a;
93
93
  var mergeFrom = merge_from_b !== null && merge_from_b !== void 0 ? merge_from_b : undefined;
94
94
  var mergeTo = merge_to_b !== null && merge_to_b !== void 0 ? merge_to_b : undefined;
95
- var labels = (_a = labels_b) !== null && _a !== void 0 ? _a : [''];
95
+ var labels = typeof labels_b === 'string' ? [labels_b] : (_a = labels_b) !== null && _a !== void 0 ? _a : [''];
96
96
  var profileB = ProfileSelectionFromParams(expression_b, from_b, to_b, mergeFrom, mergeTo, labels, filter_by_function);
97
97
  setProfileB(profileB);
98
98
  // eslint-disable-next-line react-hooks/exhaustive-deps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.159",
3
+ "version": "0.16.160",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.71",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org/"
48
48
  },
49
- "gitHead": "ee6b9671eba8490fc9c3e099ad5c26b2aa5c6ad7"
49
+ "gitHead": "2762c73bf8ebe44bfb04c25f8c4cc47591d40f10"
50
50
  }
@@ -124,7 +124,7 @@ const ProfileExplorerApp = ({
124
124
  useEffect(() => {
125
125
  const mergeFrom = merge_from_a ?? undefined;
126
126
  const mergeTo = merge_to_a ?? undefined;
127
- const labels = (labels_a as string[]) ?? [''];
127
+ const labels = typeof labels_a === 'string' ? [labels_a] : (labels_a as string[]) ?? [''];
128
128
  const profileA = ProfileSelectionFromParams(
129
129
  expression_a,
130
130
  from_a as string,
@@ -142,7 +142,7 @@ const ProfileExplorerApp = ({
142
142
  useEffect(() => {
143
143
  const mergeFrom = merge_from_b ?? undefined;
144
144
  const mergeTo = merge_to_b ?? undefined;
145
- const labels = (labels_b as string[]) ?? [''];
145
+ const labels = typeof labels_b === 'string' ? [labels_b] : (labels_b as string[]) ?? [''];
146
146
  const profileB = ProfileSelectionFromParams(
147
147
  expression_b,
148
148
  from_b as string,