@sentry/bundler-plugin-core
Advanced tools
Comparing version 0.2.0 to 0.2.1
import { Logger } from "./sentry/logger"; | ||
import { IncludeEntry as UserIncludeEntry, Options as UserOptions } from "./types"; | ||
declare type RequiredInternalOptions = Required<Pick<UserOptions, "release" | "finalize" | "dryRun" | "debug" | "silent" | "cleanArtifacts" | "telemetry" | "injectReleasesMap">>; | ||
declare type RequiredInternalOptions = Required<Pick<UserOptions, "finalize" | "dryRun" | "debug" | "silent" | "cleanArtifacts" | "telemetry" | "injectReleasesMap">>; | ||
declare type OptionalInternalOptions = Partial<Pick<UserOptions, "org" | "project" | "authToken" | "url" | "vcsRemote" | "dist" | "errorHandler" | "setCommits" | "deploy" | "configFile" | "customHeader">>; | ||
@@ -5,0 +5,0 @@ declare type NormalizedInternalOptions = { |
import { InternalOptions } from "../options-mapping"; | ||
import { BuildContext } from "../types"; | ||
export declare function createNewRelease(options: InternalOptions, ctx: BuildContext): Promise<void>; | ||
export declare function cleanArtifacts(options: InternalOptions, ctx: BuildContext): Promise<void>; | ||
export declare function uploadSourceMaps(options: InternalOptions, ctx: BuildContext): Promise<void>; | ||
export declare function setCommits(options: InternalOptions, ctx: BuildContext): Promise<void>; | ||
export declare function finalizeRelease(options: InternalOptions, ctx: BuildContext): Promise<void>; | ||
export declare function addDeploy(options: InternalOptions, ctx: BuildContext): Promise<void>; | ||
export declare function createNewRelease(options: InternalOptions, ctx: BuildContext, releaseName: string): Promise<void>; | ||
export declare function cleanArtifacts(options: InternalOptions, ctx: BuildContext, releaseName: string): Promise<void>; | ||
export declare function uploadSourceMaps(options: InternalOptions, ctx: BuildContext, releaseName: string): Promise<void>; | ||
export declare function setCommits(options: InternalOptions, ctx: BuildContext, releaseName: string): Promise<void>; | ||
export declare function finalizeRelease(options: InternalOptions, ctx: BuildContext, releaseName: string): Promise<void>; | ||
export declare function addDeploy(options: InternalOptions, ctx: BuildContext, releaseName: string): Promise<void>; |
import { Hub, NodeClient, Span } from "@sentry/node"; | ||
import { InternalOptions } from "../options-mapping"; | ||
import { BuildContext } from "../types"; | ||
import { SentryCLILike } from "./cli"; | ||
export declare function makeSentryClient(dsn: string, telemetryEnabled: boolean): { | ||
client: NodeClient; | ||
hub: Hub; | ||
export declare function makeSentryClient(dsn: string, allowedToSendTelemetryPromise: Promise<boolean>): { | ||
sentryHub: Hub; | ||
sentryClient: NodeClient; | ||
}; | ||
@@ -14,10 +13,3 @@ /** | ||
export declare function captureMinimalError(error: unknown | Error, hub: Hub): void; | ||
export declare function addPluginOptionTags(options: InternalOptions, hub: Hub): void; | ||
/** | ||
* Makes a call to SentryCLI to get the Sentry server URL the CLI uses. | ||
* | ||
* We need to check and decide to use telemetry based on the CLI's respone to this call | ||
* because only at this time we checked a possibly existing .sentryclirc file. This file | ||
* could point to another URL than the default URL. | ||
*/ | ||
export declare function turnOffTelemetryForSelfHostedSentry(cli: SentryCLILike, hub: Hub): Promise<void>; | ||
export declare function addPluginOptionInformationToHub(options: InternalOptions, hub: Hub, bundler: "rollup" | "webpack" | "vite" | "esbuild"): void; | ||
export declare function shouldSendTelemetry(options: InternalOptions): Promise<boolean>; |
{ | ||
"name": "@sentry/bundler-plugin-core", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Sentry Bundler Plugin Core", | ||
@@ -53,4 +53,4 @@ "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@sentry-internal/eslint-config": "0.2.0", | ||
"@sentry-internal/sentry-bundler-plugin-tsconfig": "0.2.0", | ||
"@sentry-internal/eslint-config": "0.2.1", | ||
"@sentry-internal/sentry-bundler-plugin-tsconfig": "0.2.1", | ||
"@swc/core": "^1.2.205", | ||
@@ -57,0 +57,0 @@ "@swc/jest": "^0.2.21", |
@@ -9,4 +9,2 @@ <p align="center"> | ||
**WARNING: This package is work in progress! Do not yet use it in production. We're happy to receive your feedback!** | ||
Core package containing the bundler-agnostic functionality used by the bundler plugins. | ||
@@ -13,0 +11,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
396621
3905
34