@dotcom-tool-kit/error
Advanced tools
Comparing version 1.0.0-beta.30 to 1.0.0-beta.31
@@ -5,2 +5,15 @@ export declare class ToolKitError extends Error { | ||
} | ||
export interface ConflictingTask { | ||
task: string; | ||
plugin: string; | ||
} | ||
export interface HookTaskConflict { | ||
hook: string; | ||
conflictingTasks: ConflictingTask[]; | ||
} | ||
export declare class ToolKitConflictError extends ToolKitError { | ||
conflicts: HookTaskConflict[]; | ||
constructor(message: string, conflicts: HookTaskConflict[]); | ||
} | ||
export declare function hasToolKitConflicts(error: unknown): error is ToolKitConflictError; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ToolKitError = void 0; | ||
exports.hasToolKitConflicts = exports.ToolKitConflictError = exports.ToolKitError = void 0; | ||
class ToolKitError extends Error { | ||
} | ||
exports.ToolKitError = ToolKitError; | ||
class ToolKitConflictError extends ToolKitError { | ||
constructor(message, conflicts) { | ||
super(message); | ||
this.conflicts = conflicts; | ||
} | ||
} | ||
exports.ToolKitConflictError = ToolKitConflictError; | ||
function hasToolKitConflicts(error) { | ||
return error instanceof ToolKitConflictError && error.conflicts.length > 0; | ||
} | ||
exports.hasToolKitConflicts = hasToolKitConflicts; |
{ | ||
"name": "@dotcom-tool-kit/error", | ||
"version": "1.0.0-beta.30", | ||
"version": "1.0.0-beta.31", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2421
34
0