design-comuni-plone-theme 11.12.6 → 11.12.7

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.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
 
2
2
 
3
+ ## [11.12.7](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.6...v11.12.7) (2024-06-03)
4
+
5
+
6
+ ### Maintenance
7
+
8
+ * improve cors error logging ([b9d4513](https://github.com/RedTurtle/design-comuni-plone-theme/commit/b9d4513d58101d13315a3cfc1a06cffecb3b0307))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * updated publiccode ([a277894](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a27789465ba8a4f7214ddaf01181573a55ee3664))
14
+
3
15
  ## [11.12.6](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.5...v11.12.6) (2024-05-30)
4
16
 
5
17
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.12.6",
5
+ "version": "11.12.7",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2024-05-30'
230
+ releaseDate: '2024-06-03'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.12.6
232
+ softwareVersion: 11.12.7
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -38,14 +38,14 @@ const Error = (props) => {
38
38
  ...libs.map(([name, lib]) => ({ [name]: lib })),
39
39
  );
40
40
  class MaybeCorsError extends Error {
41
- constructor({ error, ...props }, ...args) {
41
+ constructor(...args) {
42
42
  super(...args);
43
43
  this.name = 'MaybeCorsError';
44
- this.error = error;
45
- this.props = props;
46
44
  }
47
45
  }
48
- libraries.Sentry.captureException(new MaybeCorsError(props, message));
46
+ libraries.Sentry.captureException(new MaybeCorsError(message), {
47
+ props,
48
+ });
49
49
  });
50
50
  };
51
51
 
@@ -222,35 +222,16 @@ class View extends Component {
222
222
  ...libs.map(([name, lib]) => ({ [name]: lib })),
223
223
  );
224
224
  class MaybeCorsError extends Error {
225
- constructor(
226
- {
227
- error,
228
- apiError,
229
- actions,
230
- token,
231
- content,
232
- connectionRefused,
233
- pathname,
234
- versionId,
235
- ...props
236
- },
237
- ...args
238
- ) {
225
+ constructor(...args) {
239
226
  super(...args);
240
227
  this.name = 'MaybeCorsError';
241
- this.error = error;
242
- this.apiError = apiError;
243
- this.actions = actions;
244
- this.token = token;
245
- this.content = content;
246
- this.connectionRefused = connectionRefused;
247
- this.pathname = pathname;
248
- this.versionId = versionId;
249
- this.props = props;
250
228
  }
251
229
  }
252
230
  libraries.Sentry.captureException(
253
- new MaybeCorsError(this.props, message),
231
+ new MaybeCorsError(message, {
232
+ props: this.props,
233
+ isAnonymous: !this.props.token,
234
+ }),
254
235
  );
255
236
  });
256
237
  };