FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sentry-javascript/packages/node/src/nodeVersion.ts at develop · getsentry/sentry-javascript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
getsentry
/
sentry-javascript
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1.8k
Star
8.7k
Code
Issues
542
Pull requests
68
Discussions
Actions
Security and quality
5
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
sentry-javascript
/
packages
/
node
/
src
/
nodeVersion.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
5 lines (4 loc) · 252 Bytes
Breadcrumbs
sentry-javascript
/
packages
/
node
/
src
/
nodeVersion.ts
Copy path
File metadata and controls
5 lines (4 loc) · 252 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
import
{
parseSemver
}
from
'@sentry/core'
;
export
const
NODE_VERSION
=
parseSemver
(
process
.
versions
.
node
)
as
{
major
:
number
;
minor
:
number
;
patch
:
number
}
;
export
const
NODE_MAJOR
=
NODE_VERSION
.
major
;
export
const
NODE_MINOR
=
NODE_VERSION
.
minor
;
Back
|
FazBrowse Home
|
New Git URL