@sentry/ember 7.73.0 → 7.74.0

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.
Files changed (2) hide show
  1. package/index.js +13 -1
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = {
30
30
  included() {
31
31
  const app = this._findHost();
32
32
  const config = app.project.config(app.env);
33
- const addonConfig = config['@sentry/ember'] || {};
33
+ const addonConfig = dropUndefinedKeys(config['@sentry/ember'] || {});
34
34
 
35
35
  if (!isSerializable(addonConfig)) {
36
36
  // eslint-disable-next-line no-console
@@ -101,3 +101,15 @@ function isScalar(val) {
101
101
  function isPlainObject(obj) {
102
102
  return typeof obj === 'object' && obj.constructor === Object && obj.toString() === '[object Object]';
103
103
  }
104
+
105
+ function dropUndefinedKeys(obj) {
106
+ const newObj = {};
107
+
108
+ for (const key in obj) {
109
+ if (obj[key] !== undefined) {
110
+ newObj[key] = obj[key];
111
+ }
112
+ }
113
+
114
+ return newObj;
115
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/ember",
3
- "version": "7.73.0",
3
+ "version": "7.74.0",
4
4
  "description": "Official Sentry SDK for Ember.js",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@embroider/macros": "^1.9.0",
37
- "@sentry/browser": "7.73.0",
38
- "@sentry/types": "7.73.0",
39
- "@sentry/utils": "7.73.0",
37
+ "@sentry/browser": "7.74.0",
38
+ "@sentry/types": "7.74.0",
39
+ "@sentry/utils": "7.74.0",
40
40
  "ember-auto-import": "^1.12.1 || ^2.4.3",
41
41
  "ember-cli-babel": "^7.26.11",
42
42
  "ember-cli-htmlbars": "^6.1.1",