Socket
Socket
Sign inDemoInstall

@sentry/minimal

Package Overview
Dependencies
Maintainers
8
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/minimal - npm Package Compare versions

Comparing version 4.0.0-rc.2 to 4.0.0

14

dist/index.d.ts

@@ -40,2 +40,16 @@ import { Scope } from '@sentry/hub';

/**
* Creates a new scope with and executes the given operation within.
* The scope is automatically removed once the operation
* finishes or throws.
*
* This is essentially a convenience function for:
*
* pushScope();
* callback();
* popScope();
*
* @param callback that will be enclosed into push/popScope.
*/
export declare function withScope(callback: ((scope: Scope) => void)): void;
/**
* Calls a function on the latest client. Use this with caution, it's meant as

@@ -42,0 +56,0 @@ * in "internal" helper so we don't need to expose every possible function in

@@ -113,2 +113,19 @@ "use strict";

/**
* Creates a new scope with and executes the given operation within.
* The scope is automatically removed once the operation
* finishes or throws.
*
* This is essentially a convenience function for:
*
* pushScope();
* callback();
* popScope();
*
* @param callback that will be enclosed into push/popScope.
*/
function withScope(callback) {
callOnHub('withScope', callback);
}
exports.withScope = withScope;
/**
* Calls a function on the latest client. Use this with caution, it's meant as

@@ -115,0 +132,0 @@ * in "internal" helper so we don't need to expose every possible function in

6

package.json
{
"name": "@sentry/minimal",
"version": "4.0.0-rc.2",
"version": "4.0.0",
"description": "Sentry minimal library that can be used in other packages",

@@ -18,4 +18,4 @@ "repository": "git://github.com/getsentry/raven-js.git",

"dependencies": {
"@sentry/hub": "4.0.0-rc.2",
"@sentry/types": "4.0.0-rc.2"
"@sentry/hub": "4.0.0",
"@sentry/types": "4.0.0"
},

@@ -22,0 +22,0 @@ "devDependencies": {

@@ -13,3 +13,11 @@ <p align="center">

[![npm dt](https://img.shields.io/npm/dt/@sentry/minimal.svg)](https://www.npmjs.com/package/@sentry/minimal)
[![typedoc](https://img.shields.io/badge/docs-typedoc-blue.svg)](http://getsentry.github.io/sentry-javascript/)
## Links
- [Official SDK Docs](https://docs.sentry.io/quickstart/)
- [TypeDoc](http://getsentry.github.io/sentry-javascript/)
## General
A minimal Sentry SDK that uses a configured client when embedded into an application. It allows library authors add

@@ -16,0 +24,0 @@ support for a Sentry SDK without having to bundle the entire SDK or being dependent on a specific platform. If the user

Sorry, the diff of this file is not supported yet

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