studiokit-scaffolding-js 7.0.10 → 7.0.11-alpha.1

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.
@@ -1,16 +1,41 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
2
21
  Object.defineProperty(exports, "__esModule", { value: true });
3
22
  exports.getCookies = void 0;
23
+ var Sentry = __importStar(require("@sentry/react"));
4
24
  /** Get the contents of `document.cookie` as a Record with string keys and values. */
5
25
  var getCookies = function () {
6
26
  var cookies = {};
7
27
  if (document.cookie && document.cookie !== '') {
8
28
  var cookieStrings = document.cookie.split(';');
9
29
  cookieStrings.forEach(function (cookieString) {
10
- var cookieParts = cookieString.split('=');
11
- var name = decodeURIComponent(cookieParts[0].replace(/^ /, ''));
12
- var value = decodeURIComponent(cookieParts[1]);
13
- cookies[name] = value;
30
+ try {
31
+ var cookieParts = cookieString.split('=');
32
+ var name_1 = decodeURIComponent(cookieParts[0].replace(/^ /, ''));
33
+ var value = decodeURIComponent(cookieParts[1]);
34
+ cookies[name_1] = value;
35
+ }
36
+ catch (error) {
37
+ Sentry.captureException(error);
38
+ }
14
39
  });
15
40
  }
16
41
  return cookies;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiokit-scaffolding-js",
3
- "version": "7.0.10",
3
+ "version": "7.0.11-alpha.1",
4
4
  "description": "Common scaffolding for Studio apps at Purdue",
5
5
  "repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
6
6
  "license": "MIT",