@codecov/bundler-plugin-core
Advanced tools
Comparing version 0.0.1-beta.8 to 0.0.1-beta.9
@@ -71,4 +71,26 @@ import { UnpluginOptions, UnpluginContextMeta } from 'unplugin'; | ||
} | ||
/** | ||
* This type represents a union of possible results from the the function. | ||
* | ||
* @see {@link normalizeOptions} | ||
*/ | ||
type NormalizedOptionsResult = NormalizedOptionsFailure | NormalizedOptionsSuccess; | ||
/** | ||
* This function is used to normalize the options provided by the user. Validating the options | ||
* passed by the user, and providing default values for a given set of options if none were | ||
* provided. | ||
* | ||
* @param {Options} userOptions | ||
* @returns {NormalizedOptionsResult} | ||
*/ | ||
declare const normalizeOptions: (userOptions: Options) => NormalizedOptionsResult; | ||
/** | ||
* This function logs the errors to the console, and will return `shouldExit` if there are errors | ||
* that we should exit the build process for. | ||
* | ||
* @param {NormalizedOptionsFailure} options - The normalized options that failed validation. | ||
*/ | ||
declare const handleErrors: (options: NormalizedOptionsFailure) => { | ||
shouldExit: boolean; | ||
}; | ||
@@ -222,2 +244,2 @@ declare class Output { | ||
export { type Asset, type BundleAnalysisUploadPlugin, type Chunk, type Module, type Options, Output, type ProviderUtilInputs, type UploadOverrides, checkNodeVersion, normalizeOptions, normalizePath, red }; | ||
export { type Asset, type BundleAnalysisUploadPlugin, type Chunk, type Module, type Options, Output, type ProviderUtilInputs, type UploadOverrides, checkNodeVersion, handleErrors, normalizeOptions, normalizePath, red }; |
{ | ||
"name": "@codecov/bundler-plugin-core", | ||
"version": "0.0.1-beta.8", | ||
"version": "0.0.1-beta.9", | ||
"description": "Official Codecov Bundler Plugin Core", | ||
@@ -5,0 +5,0 @@ "author": "Codecov", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
376543
543