@sentry/minimal
Advanced tools
Comparing version 4.0.0-rc.2 to 4.0.0
@@ -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 |
{ | ||
"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
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
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
17391
207
0
64
+ Added@sentry/hub@4.0.0(transitive)
+ Added@sentry/types@4.0.0(transitive)
+ Added@sentry/utils@4.0.0(transitive)
- Removed@sentry/hub@4.0.0-rc.2(transitive)
- Removed@sentry/types@4.0.0-rc.2(transitive)
- Removed@sentry/utils@4.0.0-rc.2(transitive)
Updated@sentry/hub@4.0.0
Updated@sentry/types@4.0.0