()
| 65 | } |
| 66 | |
| 67 | function checkAndSetAngularVersion(): void { |
| 68 | const ANGULAR_MINIMUM_VERSION = 14; |
| 69 | |
| 70 | const angularVersion = VERSION?.major && parseInt(VERSION.major, 10); |
| 71 | |
| 72 | if (angularVersion) { |
| 73 | if (angularVersion < ANGULAR_MINIMUM_VERSION) { |
| 74 | IS_DEBUG_BUILD && |
| 75 | debug.warn( |
| 76 | `This Sentry SDK does not officially support Angular ${angularVersion}.`, |
| 77 | `This SDK only supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`, |
| 78 | "If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.", |
| 79 | 'Otherwise, please consider upgrading your Angular version.', |
| 80 | ); |
| 81 | } |
| 82 | setContext('angular', { version: angularVersion }); |
| 83 | } |
| 84 | } |
no test coverage detected