Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/serverless

Package Overview
Dependencies
Maintainers
13
Versions
306
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/serverless - npm Package Compare versions

Comparing version 5.26.0 to 5.27.0-beta.0

10

package.json
{
"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!');
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc