@sentry/serverless
Advanced tools
Comparing version 5.26.0 to 5.27.0-beta.0
{ | ||
"name": "@sentry/serverless", | ||
"version": "5.26.0", | ||
"version": "5.27.0-beta.0", | ||
"description": "Offical Sentry SDK for various serverless solutions", | ||
@@ -19,6 +19,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/minimal": "5.26.0", | ||
"@sentry/node": "5.26.0", | ||
"@sentry/types": "5.26.0", | ||
"@sentry/utils": "5.26.0", | ||
"@sentry/minimal": "5.27.0-beta.0", | ||
"@sentry/node": "5.27.0-beta.0", | ||
"@sentry/types": "5.27.0-beta.0", | ||
"@sentry/utils": "5.27.0-beta.0", | ||
"tslib": "^1.9.3" | ||
@@ -25,0 +25,0 @@ }, |
@@ -22,3 +22,3 @@ <p align="center"> | ||
*AWS Lambda* | ||
### AWS Lambda | ||
@@ -56,1 +56,33 @@ To use this SDK, call `Sentry.AWSLambda.init(options)` at the very beginning of your JavaScript file. | ||
``` | ||
### Google Cloud Functions | ||
To use this SDK, call `Sentry.GCPFunction.init(options)` at the very beginning of your JavaScript file. | ||
```javascript | ||
import * as Sentry from '@sentry/serverless'; | ||
Sentry.GCPFunction.init({ | ||
dsn: '__DSN__', | ||
tracesSampleRate: 1.0, | ||
// ... | ||
}); | ||
// For HTTP Functions: | ||
exports.helloHttp = Sentry.GCPFunction.wrapHttpFunction((req, res) => { | ||
throw new Error('oh, hello there!'); | ||
}); | ||
// For Background Functions: | ||
exports.helloEvents = Sentry.GCPFunction.wrapEventFunction((data, context, callback) => { | ||
throw new Error('oh, hello there!'); | ||
}); | ||
// For CloudEvents: | ||
exports.helloEvents = Sentry.GCPFunction.wrapCloudEventFunction((context, callback) => { | ||
throw new Error('oh, hello there!'); | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
134755
87
0
2
+ Added@sentry/core@5.27.0-beta.0(transitive)
+ Added@sentry/hub@5.27.0-beta.0(transitive)
+ Added@sentry/minimal@5.27.0-beta.0(transitive)
+ Added@sentry/node@5.27.0-beta.0(transitive)
+ Added@sentry/tracing@5.27.0-beta.0(transitive)
+ Added@sentry/types@5.27.0-beta.0(transitive)
+ Added@sentry/utils@5.27.0-beta.0(transitive)
- Removed@sentry/core@5.26.0(transitive)
- Removed@sentry/hub@5.26.0(transitive)
- Removed@sentry/minimal@5.26.0(transitive)
- Removed@sentry/node@5.26.0(transitive)
- Removed@sentry/tracing@5.26.0(transitive)
- Removed@sentry/types@5.26.0(transitive)
- Removed@sentry/utils@5.26.0(transitive)
Updated@sentry/node@5.27.0-beta.0
Updated@sentry/types@5.27.0-beta.0
Updated@sentry/utils@5.27.0-beta.0